I have a form - when you click the submit button, it appends a
variable to the URL (e.g. xyz.cgi?inputID =some_dynamic_v ariable)
It also opens a new page. Now, that some_dynamic_va riable is actually
the name of a form element on the parent window.
On the new page, I have this javascript:
----
var var2 = location.search .substring(9);
document.write( var2)
----
This will print out some_dynamic_va riable
I then have the following code
----
function sendValue(var1, var2){
var selvalue = eval('selectfor m.' + var1 + '.value');
window.opener.d ocument.tagging UI.var2.value += selvalue + ', ';
window.close();
----
var1 is no problem. var2 isn't working. I've tried a whole bunch of
things, nothing works!! I need to insert var2 in that spot, and it's
urgent.
If you have an idea, please let me know....
Thanks!
djsphynx insert the at symbol hot mail dot com
variable to the URL (e.g. xyz.cgi?inputID =some_dynamic_v ariable)
It also opens a new page. Now, that some_dynamic_va riable is actually
the name of a form element on the parent window.
On the new page, I have this javascript:
----
var var2 = location.search .substring(9);
document.write( var2)
----
This will print out some_dynamic_va riable
I then have the following code
----
function sendValue(var1, var2){
var selvalue = eval('selectfor m.' + var1 + '.value');
window.opener.d ocument.tagging UI.var2.value += selvalue + ', ';
window.close();
----
var1 is no problem. var2 isn't working. I've tried a whole bunch of
things, nothing works!! I need to insert var2 in that spot, and it's
urgent.
If you have an idea, please let me know....
Thanks!
djsphynx insert the at symbol hot mail dot com
Comment