Click to See Complete Forum and Search --> : javascript question


boku
04-01-2003, 03:16 PM
I have a page that is pulling a result set back from a database and what it does is creates 2 sets of variables into a table. This in turn is used to create a link to another framed page. I want to pass both variables to the framed pages. so I can create the new page but am not sure how to do it. I cant use session parramaters because I won't know what number goes to what variable. is there a way to do this? :confused:

khalidali63
04-01-2003, 03:51 PM
to set a variable to value of your choice from a frame to another...

frame1 from where you want to send the value to frame2

parent.frames[1].document.variablename=value;

or to set a value to a form field

parent.frames[1].document.formName.fieldname.value="value"

Hope this helps

Khalid

boku
04-01-2003, 03:59 PM
The only problem is the first page is in it's own window so that won't work I was trying to put it into the url but I can't get this to work. here is my code. but I dont know how to pull it from the url

out.println("<td><a href=\"http://168.178.107.131:8080/supervisory/acrobat.jsp?seq_no="+rprts[i][1]+"&cit_no="+rprts[i][2]+" \"target=\"_blank\" return=\"false\">"+rprts[i][2]+"</a></td>");