15.09.2014 Views

JSON

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

• Secret <br />

• Request data using form.submit to the<br />

target.<br />

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

embedded in a script in a document.<br />

<br />

document.domain = 'penzance.com';<br />

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

<br />

• The function deliver is passed the<br />

value.

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

Saved successfully!

Ooh no, something went wrong!