Hi All,
I am passing URL paramters using the geturl function to a page.
The param values come from actionscrip variables. However before I
submit the vars to the page I need to somehow encrypt the vars using a
coldfusion function. The problem I am having is that I am not able to
pass the actionscript var value to the coldfusion function.
I have tried everything I could think of but I cant seem to make it
work. Can someone plese help me with this.
Heres my code
----------------------------------
<!--- Form page form.cfm --->
<cfform format="flash" name="myform">
<cfformitem type="script">
function addBldg()
{
var myvar:Number;
myvar=806;
<cfoutput>
<!--- Does not work :(. For demo purposes I have used the reverse
function which should output 608 but outputs ravym instead--->
getUrl("javascript:window.open('formsubmit.cfm?companyid=#reverse("+myvar+")#',
'PopupWin');void(0);");
</cfoutput>
<!---
Thess codes seem to work
<cfoutput>
getUrl("javascript:window.open('formsubmit.cfm?companyid="#"+myvar+"#"',
'PopupWin');void(0);");
getUrl("javascript:window.open('formsubmit.cfm?companyid=#DE("+myvar+")#',
'PopupWin');void(0);");
</cfoutput>
--->
}
</cfformitem>
<cfinput type="button" name="addbuilding" value="Add Building"
onclick="addBldg();"/>
</cfform>
--------------------------------
<!--- Submit page formsubmit.cfm --->
<cfoutput>
#url.companyid#
</cfoutput>
Thanks a heap in advance !
Harkirat