hi all, here a snip of prototype code: if ((this.getHeader('Content-type') || 'text/ javascript').strip(). match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)) this.evalResponse();
that I changed localy to: if ((this.getHeader('Content-type') || 'text/ javascript').strip(). match(/^(text|application)\/(x-)?(java|ecma)script(;.*)?$/i)) json = this.evalResponse(); in order to get it pass me a json object from the response body (transport.responseText) have I missed something and my changes were pointless or is this a bug? here the call that worked after I made changes: (responseText some string like '({"a":1})' new Ajax.Request( 'get_json.php', { method: 'get', onComplete: function (transport, json) { alert(json); } } ); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---