cf = server-side
these are 2 parallel worlds only connected by http request/response
path... unless you stay on that path, you will never reach the other
ColdFusion data to HTML.
<cfset myCFvar = "Say goodnight Gracie.">
var myJSvar = #myCFvar#;
The <cfwddx...> tag with its' CFML2JS option makes it easier to convert
complex data structures from CF to JS forms.
request. You can submit it as a get request in the URL, as a post
with XMLHttpRequest commonly called 'AJAX'.
Originally posted by: Rouset
Care to elaborte on that first sentence with particular emphasis on the word "passed".
with XMLHttpRequest commonly called 'AJAX'. This sounds like what I would need to do to pass the data values back to Cold fusions and then write them to the database.
Your best first port of call would be to read up on <cfajaxproxy>, because CF does most of this for you automatically.1 person found this helpful
Great.. Thanks, Adam. I will check it out. -Ros
cfajaxproxy is great.. But it is only available on CF8.. We are running CF 7. So, how would you do it in that case?
One more question for you regarding CFAjax.. Can 2 parameters be passed to the DWREngine._execute?
All the examples that I have found only have one parameter. I figure the back up option would be to concat the variables into one string to pass them to the engine and separate them in the CFfunction, but I did not want to go down that path if there is a better way.
OK, it all works great! :-)
For those that may be looking for this answer, multiple parameters can be passed to the DWREngine._execute command by a comma separator.
DWREngine._execute(_cfscriptLocation, null, doQuery, Par1, Par2, Par3,...,doQueryResult);
Where Par1, Par2, Par3 are the parameteres being passed to the doQuery cffunction.
Thanks for everyone's help.