Hi,

please consider this stripped down example:

new Ajax.Request('foo.php', {
  onSuccess: function(t, json) {
    alert(json.myParam);
  }
});

According to http://www.sergiopereira.com/articles/prototype.js.html, the 
second param is supposed to be the evaluated json object IF the X-JSON header 
is send in the response. I send the header in my script. However, the json 
var is always undefined and i have to evaluate t.responseText myself.

Am i missing anything important?

Best Regards,
Dirk Eschler

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to