If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

How to submit the Frame dynamically

RESOLVED WORKSFORME

Status

SeaMonkey
General
RESOLVED WORKSFORME
14 years ago
13 years ago

People

(Reporter: Ashok Kumar Ramachandran, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 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...

Comment 2

14 years ago
-> OS/2
(after reading the description and comment #1)

Is it correct you canĀ“t get this code working on OS/2 with Mozilla 1.2a?

Can you please retest with Mozilla 1.5 or 1.4.1?
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.5/mozilla-os2-1.5.zip
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.4.1/contrib/
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.4.1/contrib/mozilla-os2-1.4.1-installer.exe
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.4.1/contrib/mozilla-os2-1.4.1.zip
OS: other → OS/2

Comment 3

14 years ago
what is document.GenericScreen pointing to?  Do you have a testcase somewhere?
(Reporter)

Comment 4

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