Focal Point
[CLOSED] Capturing amper variables in javascript

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/788101652

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,


WF 7.1.1, WF Developer studio 7.1.1, Windows & Mainframe, HTML
October 02, 2009, 06:00 PM
Tom Flynn
dev532,

You really need to start using the SEARCH button. This has been answered dozens of times.
SEARCH on var, look at the 5th post.


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe