October 02, 2009, 05:25 PM
dev532[CLOSED] Capturing amper variables in javascript
Hi
I tried !IBI.AMP.
variable to capture the &er variable within the javascript but it does not work. Any suggestions?
-SET &wfvar=&country ;
-HTMLFORM BEGIN
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
function myfunc()
{
var new_var = !IBI.AMP.wfvar;
alert(new_var);
myform.submit();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM name="myform" method="post" action="test.html" >
<INPUT type="button" name="Submit" value="Submit" onclick="myfunc();">
</FORM>
</BODY>
</HTML>
-HTMLFORM END
Thanks.
This message has been edited. Last edited by: Kerry, October 02, 2009, 06:00 PM
Tom Flynndev532,
You really need to start using the SEARCH button. This has been answered dozens of times.
SEARCH on var, look at the 5th post.