Closed Bug 224089 Opened 21 years ago Closed 21 years ago

How to submit the Frame dynamically

Categories

(SeaMonkey :: General, defect)

x86
OS/2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ashok_gce, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Build Identifier: Mozilla 1.2a

I have a main html with frameset having two frames.  Frame1 has a fixed value 
for src attribute.  But for the Frame2 i have to set the src attribute based on 
some logic.   When I click on any link/button in Frame1, the whole screen gets 
refreshed and brings in new screen.  Along with this new screen some new 
information should be generated in the Frame2.

I am able to make the things work for IE 5.5 but not able to do the same for 
Mozilla on OS/2 system.

For IE following code works:
window.parent.frames["Script"].location.replace("peINFCommon.ASP?
WCI=GenericScript&WCU?SessionKey=" + document.GenericScreen.SessionKey.value);

what should be the Mozilla equivalent for the above code?


I tried to set the SRC attribute for the Frame2 as below :
window.parent.document.getElementsByTagName("Frame")[1].src  = "peINFCommon.ASP?
WCI=GenericScript&WCU?SessionKey=" + document.GenericScreen.SessionKey.value	

but it brings the information on Frame2 for the first time.  From then on the 
information remains the same for all the pages.


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
> For IE following code works:

That code should also work in Mozilla...
what is document.GenericScreen pointing to?  Do you have a testcase somewhere?
window.parent.frames["Script"].contentWindow.location

helps to solve out my problem.It even works in version 1.2a

Thank you all for your support.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.