File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes why the window doesn't close and bring the item to the main form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "why the window doesn Watch "why the window doesn New topic
Author

why the window doesn't close and bring the item to the main form?

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi there,

the javascript function below is taken from struts-layout. a new window is opened with a list of items, the end-user chooses from the list (drop down box) and clicks SELECT. what it need to do is to select the item of the user and move it to the main form.

for some reason the opened-window doesn't close! I tested it (with alert("point 1") any debugger?~) and realized that the problem is in this line:



the complete function is:

[ February 19, 2007: Message edited by: Bear Bibeault ]
Ashish K Sharma
Ranch Hand

Joined: Aug 22, 2006
Posts: 31
Try
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
if it is a <input type="file" ..> you can not set its value.

How are you opening this pop up from the parent?

Eric
Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
thank you guys,

Eric: "How are you opening this pop up from the parent?"

the code below. thanks again

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
oh... and the open/close is from


open:



close:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why the window doesn't close and bring the item to the main form?
 
Similar Threads
Update select list from a callee page
getting values from popup
Mixed data from other user
Page section does not update after call of a4j:support in IE 9
Problem with Struts and javascript