15.09.2014 Views

JSON

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>JSON</strong> in Ajax<br />

• Dynamic script tag hack.<br />

• Create a script node. The src url<br />

makes the request.<br />

• The server sends the <strong>JSON</strong> text<br />

embedded in a script.<br />

deliver({ ... <strong>JSON</strong>text ... });<br />

• The function deliver is passed<br />

the value.<br />

• The dynamic script tag hack is<br />

insecure.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!