Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: submit 2 frames in same function


Message #1 by "Brian Benson" <bcb@p...> on Thu, 31 Aug 2000 14:58:42 -0400
I have a frameset with 2 frames.  When the user selects an item out of a
combobox I
have a Javascript function that submits each of the frames because the data
needs to change for both.  My code looks like the following:
=============================================================
with (document.forms("frmObservationMenu"))
{
   target = 'ObservationMenu';
   action = 'ObservationMenu.asp';
   submit();
}

document.frmObservationMenu.target = 'Observation'
document.frmObservationMenu.action = 'Observation.asp';
document.frmObservationMenu.submit();
=============================================================

This works fine with IE for windows, but when I try it for IE 5 on the
Macintosh  only the
last submit actually gets called.  It appears to ignore the 1st one.

Does anyone have a solution on how to submit both frames when the user
generates 1 event?

Thanks
Brian


  Return to Index