Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by graq (Curate)
on Feb 19, 2007 at 16:33 UTC ( #600879=note: print w/ replies, xml ) Need Help??


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

For completeness, here is the slight syntax change needed to the original perl code:

... print "Content-type: text/javascript\n"; print "X-JSON:$js\n\n";

However, it has been pointed out that IE doesn't like large headers, so it is probably best to return the JSON object in the response body and eval it for oneself.

-=( Graq )=-


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-10-31 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (223 votes), past polls