Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing variable from script function

shilpa Aswath
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody
I am seriously stuck in accessing variable from script function..
I have hidden fields in one jsp and i am storing value in those inside script function. I want to access these variables in another jsp.

<input id="t" type="hidden" name="temp" value="">
<input id="c" type="hidden" name="count" value="">

<script language="JavaScript" >
function fnOpen(S2, j)

this.form1.temp.value = S2;
this.form1.count.value = j;

In above function how can i access the two variables temp and count in another jsp.
I used request.getparameter(temp) but didnot work.
please help me in solving this
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic