Posted By

arcturus on 11/13/07


Tagged

javascript json


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

vali29
joomla
hans
umang_nine


Simple ajax request with prototype and json


 / Published in: JavaScript
 

  1. new Ajax.Request('test4/data/retrievePicasaData.php?bounds='+ picasabounds, {
  2. method:'get',
  3. requestHeaders: {Accept: 'application/json'},
  4. onSuccess: function(transport){
  5. var json = transport.responseText.evalJSON(true);
  6. alert(json);
  7. }
  8. });

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: gscaglia on April 19, 2008

Goood! I do need it. Thanks

You need to login to post a comment.