Click to See Complete Forum and Search --> : help required regarding frames


Karthikk
07-06-2006, 11:20 AM
Hi
I wanted some details of coding using frames

The page i am displaying are dynamic,i.e some attributes are passed to the page depending on which the page contents are displayed.

My main page is somewhat like this
----------------mainPage.jsp--------------
<html>
<frameset rows="40%,60%">
<frame src="first.jsp" name=first>
<frame src="second.jsp" name=second>
</frameset>
<html>
----------------------------------------------

now if i call the using

mainPage.jsp?name=karthik&password=programmer

How can i pass the attributes to the first.jsp as these are used by the first.jsp.

can any one help me

pacerier
08-04-2006, 01:51 PM
give the frameset and the frame names. so you can try when the main page loads:
document.framesetname.framename2.window.location = document.framesetname.framename2.window.location.toString() + "?" + document.framesetname.framename1.window.location.toString().substring( document.framesetname.framename1.window.location.toString().indexOf("?"))


this will transfer name=karthik&password=programmer to the other frame's url.