Z
Zalek Bloom
Hello,
Here is my problem:
I am displaying to a user a row of buttons. Depending on which button
user presses, I want to go to a different URL and to give a different
value to a hidden variable.
My code is:
<FORM NAME=FORM1 ACTION="">
<input type="button" name="B1" onclick="ModC('1')">
<input type="button" name="B2" onclick="ModC('2')">
<input type="button" name="B3" onclick="ModC('3')">
<input type="hidden" name="property_key" value="0">
function ModC(a)
document.form1.property_key.value = a
document.form1.submit()
End Function
Now, I want also to change ACTION parm on the FORM, so depending on
some calculation ACTION=MODIFY.ASP or ACTION=SHOW.ASP
I tried:
<input type="button" name="B1"
onclick="document.form1.action ='MODIFY.ASP' ; ModC('1')">
this didn't work. Any ideas how to solve this problem?
Thanks,
Zalek
Here is my problem:
I am displaying to a user a row of buttons. Depending on which button
user presses, I want to go to a different URL and to give a different
value to a hidden variable.
My code is:
<FORM NAME=FORM1 ACTION="">
<input type="button" name="B1" onclick="ModC('1')">
<input type="button" name="B2" onclick="ModC('2')">
<input type="button" name="B3" onclick="ModC('3')">
<input type="hidden" name="property_key" value="0">
function ModC(a)
document.form1.property_key.value = a
document.form1.submit()
End Function
Now, I want also to change ACTION parm on the FORM, so depending on
some calculation ACTION=MODIFY.ASP or ACTION=SHOW.ASP
I tried:
<input type="button" name="B1"
onclick="document.form1.action ='MODIFY.ASP' ; ModC('1')">
this didn't work. Any ideas how to solve this problem?
Thanks,
Zalek