Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load Frame with predifend value

 
accnit Jai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
accnit Jai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One flag, based on this flag content of frame 2 will load. This flag is one JavaScript variable
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64712
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution, using the top.variablename you can access the origin page variable in any frames
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic