How to submit the Frame dynamically

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
16 years ago
15 years ago

People

(Reporter: ashok_gce, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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?
(Reporter)

Comment 4

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.