plainblack.com
Username Password
search
Bookmark and Share

    

Debug mode and AJAX

User perlmonkey2
Date 4/24/2009 6:44 pm
Views 672
Rating 0    Rate [
|
]
Previous · Next
User Message
perlmonkey2

You create your nice little JSON message to respond to the AJAX request, but then boom, ErrorHandler appends a bunch of debug info as HTML to your JSON, which is just plain rude.

 

We need a way for the request handler to make sure that debug info is not appended to JSON response.  Survey, Thingy and I'm sure anything else which uses AJAX breaks in debug mode.



Back to Top
Rate [
|
]
 
 
JT
You then haven't set your mime type correctly. If you set it to application/json it will not send debug. 

JT
On Apr 24, 2009, at 7:44 PM, <kaleb@plainblack.com> wrote:

perlmonkey2 wrote:

You create your nice little JSON message to respond to the AJAX request, but then boom, ErrorHandler appends a bunch of debug info as HTML to your JSON, which is just plain rude.

 

We need a way for the request handler to make sure that debug info is not appended to JSON response.  Survey, Thingy and I'm sure anything else which uses AJAX breaks in debug mode.



http://www.webgui.org/webgui/dev/discuss/debug-mode-and-ajax


--

Plain Black&#44; makers of WebGUI
http://plainblack.com


Back to Top
Rate [
|
]
 
 
© 2010 Plain Black Corporation | All Rights Reserved