Hey,<br><br>Filling JavaScript with CF is no problem,<br>but making it work in the other direction<br>seems a whole other story,<br><br>Anyone know the answer?<br><br>Thanx
The only way to do it is to put the value of a JS variable inside a form field and post the field. The handler script can then read that variable if the user had javascript turned on. <br><br>If you need to send complex variables, you need to use the WDDX JS library included with cold fusion to serialize the data into wddx first before submitting the form.<br><br>HTH
or you can pass the jscript variable with the url<br>nextpage.cfm?myjscript=any_value<br>and then in the nextpage.cfm you can fill a cf variable <br><cfset mycf=#url.myjscript#><br><br>the hidden field is a good way as well
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.