Get JavaScript to pass NULL to CF in a way CF understands
Is there a way for JavaScript to pass NULL to CF9 in a way CF9 understands?
null didn't work; neither did undefined.
^_^
Is there a way for JavaScript to pass NULL to CF9 in a way CF9 understands?
null didn't work; neither did undefined.
^_^
WolfShade wrote:
CFAJAXPROXY is giving JavaScript access to a CFC called "query.cfc":
IT IS VERY VERY VERY important to understand that CFAJAXPROXY is just a wrapper|wizard to creating JavaScript xmlHttpRequest object and response handlers
The xmlHttpRequest object is just a wrapper to create a normal HTTP request that is no different then if you click a link or submit a form. It is just done in the background of the browser.
WolfShade wrote:
z.setHTTPMethod("POST");
In other words. You are submitting a form (aka post) HTTP request. Now have you ever submitted an HTML form with a NULL field? I never have. The best you can get is an empty string. Which is pretty much all ColdFusion knows as a NULL value, though CF 9 is a tiny bit smarter about NULLS then earlier editions.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.