Debugging ajaxCFC
Categories: AJAX
Rey Bango posted this to cf-talk,and I thouht wothy of blogging.
Here's a tip that I wanted to share within everyone here. It may be
known but I only found out about it today and wanted to share.
If you ever get the dreaded "Invalid Reply from Server" message from
AjaxCFC, spark up Firefox/FireBug and call your site from your local IP.
This will give you the actual message that DWR is sending back.
Put a stop point at about line 517 (or immediately after
"batch.req.send(query);") of engine.js and look for the "batch" object.
In the there you'll find the "req" (XMLHttpRequest request) object which
has a standard attribute called responseText. That will give you all of
the details of your error but for security reasons, it only shows it via
your local IP address (127.0.0.1).
Rey...
Posted by rickroot at 5:53 PM | Link | 2 comments
Subscription Options
You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
Re: Debugging ajaxCFC
Thanks for the mention Rick! Very cool. :)
Posted by rey bango on September 6, 2006 at 5:20 PM
Re: Debugging ajaxCFC
Hi Rey!
Hey, another hot tip.
Fiddler HTTP Sniffer did wonders for me. Lets you actually inspect and see the actual HTTP request, headers, response, response headers, etc. Pretty sweet.
Hey, another hot tip.
Fiddler HTTP Sniffer did wonders for me. Lets you actually inspect and see the actual HTTP request, headers, response, response headers, etc. Pretty sweet.
Posted by rickroot on September 6, 2006 at 6:31 PM
Post a comment (login required)
