Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: A Problem with Targets when adressing through frames


Message #1 by amandi@f... on Tue, 26 Feb 2002 13:47:38
The Problem I have is the following:
I have a 3 Frame-Page on which in frame1 I have a list of forms , that are 
supposed to be submitted to frame2 (ASP-document) and frame3 (ASP-
Document).
When submitting one form from frame1, access-database data is displayed in
frame2, which itself is a set of forms that are submitted to frame3.

Everything works out well...only when I submit a form AGAIN from frame1
AFTER having submitted one from frame2, the targetwindow (frame2) cannot
be found again, and is opened in a new window. It seems as if I sent the
forms somewhere?? where the thread in the parentframeset cannot be
followed any more.

Maybe I have a completly wrong syntax, but everything seems to be 
allright. The submition code looks like this:

(DaWolf is a variable that figures which form to submit)

document.forms[DaWolf].action="frame2_dm.asp" ;
document.forms[DaWolf].target="frame2";   // Open in frame2
document.forms[DaWolf].submit();

document.forms[DaWolf].action = "../Steckbrief.asp" ;
document.forms[DaWolf].target = "MeinFenster";   // Open in a new window
document.forms[DaWolf].submit();

Can anyone help, suggest a solution...or is the whole thing hopeless..

Thankx to anybody interested in this problem

Kind regards

Christopher

  Return to Index