wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Load Frame with predifend value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Load Frame with predifend value" Watch "Load Frame with predifend value" New topic
Author

Load Frame with predifend value

accnit Jai
Ranch Hand

Joined: Feb 15, 2011
Posts: 33
I have frameset like below
<frameset rows="0%,100%" frameborder="no" framespacing="0" border="0" noresize="noresize" id="pFrame">
<frame name="stateClientPane" src="" />

<frame name="contentPane" src="stateClientContent.jsp" >

</frameset>

My questions is: is there any way that we can pass the value to 2nd frame (contentPane) . so that content of second frame should load with the logic of passed value?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Frames? Hmm, quaint.

accnit Jai wrote:I have frameset like below
is there any way that we can pass the value to 2nd frame ...

What value?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
accnit Jai
Ranch Hand

Joined: Feb 15, 2011
Posts: 33
One flag, based on this flag content of frame 2 will load. This flag is one JavaScript variable
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Well, then JSP isn't going to be of much use, is it? Where's the JavaScript variable combing from? I see no script in the page.
accnit Jai
Ranch Hand

Joined: Feb 15, 2011
Posts: 33
we have content.js file which has the call back function this callback function return the flag.

code is like this:
<script>
var client = new clientSatus(callBackFunction);
var statucheck;
callBackFunction(status)
{
statucheck = status;
}
</script>

<frameset rows="0%,100%" frameborder="no" framespacing="0" border="0" noresize="noresize" id="pFrame">
<frame name="stateClientPane" src="" />

<frame name="contentPane" src="stateClientContent.jsp" >


statucheck variable i want to pass to 2nd Frame. so that based on the value of statuscheck stateClientContent.jsp should load.
accnit Jai
Ranch Hand

Joined: Feb 15, 2011
Posts: 33
Sorry for that, Please find the correct format.


<frameset rows="0%,100%" frameborder="no" framespacing="0" border="0" noresize="noresize" id="pFrame">
<frame name="stateClientPane" src="" />

<frame name="contentPane" src="stateClientContent.jsp" >
</frameset>
accnit Jai
Ranch Hand

Joined: Feb 15, 2011
Posts: 33
I found the solution, using the top.variablename you can access the origin page variable in any frames
 
 
subject: Load Frame with predifend value