Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: [OT] Syntax for: AJAX Prototype JSON response

by derby (Abbot)
on Feb 19, 2007 at 13:13 UTC ( [id://600836]=note: print w/replies, xml ) Need Help??


in reply to [OT] Syntax for: AJAX Prototype JSON response

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.

  • Comment on Re: [OT] Syntax for: AJAX Prototype JSON response

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://600836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found