Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > ColdFusion > Evaluating acti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1632 of 1695
Post > Topic >>

Evaluating actionscript vars in coldfusion

by harkirat10@[EMAIL PROTECTED] Nov 22, 2006 at 12:15 PM

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
 




 1 Posts in Topic:
Evaluating actionscript vars in coldfusion
harkirat10@[EMAIL PROTECT  2006-11-22 12:15:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:07:40 CDT 2008.