Click to See Complete Forum and Search --> : Pop-up form data sent to wrong window


rpp124
07-29-2005, 02:01 PM
I am working on a site which allows a user to open multiple windows and work in different areas of the site at the same time. The site uses frames and here is what is happening. The main frame that holds the content is named "content." If a user has multiple windows open and enters data into the form that popped up from window A, the results of that form submission are sometimes sent to window B. Is there a fix for this? using the different target tage (_parent, etc) didn't work. The only thing I can think of now is to dynamically create the frame names for each window (content1, content2, etc). Would this be possible? If so, how would i go about doing this?

Mr J
07-30-2005, 07:09 AM
Can you attach your files so we can take a look at the code

rpp124
08-01-2005, 07:03 AM
I don't think I should attach the files because I am working for a company and I don't own the code. Basically, the site uses a pop up window with a form to get the info. When it is submitted, the content frame in the main page is redirected to a new page using target="content". The problem is that when multiple sessions are open, the wrong window is sometimes redirected. I am not sure if there is a better fix, but dynamically creating the frame names, if this is even possible, based on the number of open windows, would require ALOT of code modification.

Is there any way that a pop-up could be "attached" to its parent window and the data sent back to only that window (I tried using target="_parent" but that had no effect whatsoever...just a shot in the dark).

Mr J
08-01-2005, 08:09 AM
You can reference the page that opened the popup as opener

So you would go something like

onsubmit = opener.redirect to whatever page