Think about Loose Coupling | |
PerlMonks |
Re: [OT] Syntax for: AJAX Prototype JSON responseby derby (Abbot) |
on Feb 19, 2007 at 13:13 UTC ( [id://600836]=note: print w/replies, xml ) | Need Help?? |
I use a content type of "application/json" and I normally use the header methods provided by CGI or CGI::Application rather than hand coding. If you want the onFailure to trigger, you'll need to set the appropriate http status (4xx, 5xx).
-derby
update: and by 'normally', I mean by following rfc 4627.
In Section
Seekers of Perl Wisdom
|
|