793Re: [json] Re: Problem with Prototype's JSON Implementation and Ajax.Request.
- Apr 30, 2007Hello Crawford,
I am not using any for..in loops. I went on to find the exact problem using Script Debugger. It was reported in the Rails Bug Tracker. Please find the link below:
Also the information in Prototype's site acknowledges this. (http://prototypejs.org/learn/json)
My primary need is to work with Ajax.Request and when I use the original json.js of yours, the request doesnt get completed.
So, I decided to use Prototype's json which uses only the eval and is not supporting parseJSON as in your library. I was wondering there are any workarounds for this situation without using the patches given in the Rails tracker.
Hope its clear. Please revert for any clarification.
Douglas Crockford <douglas@...> wrote: --- In email@example.com, "Pradeep" <prad_kris@...> wrote:
> I am a rookie in Web Technologies and had to do a small work withSince you are a rookie, I'm guessing that your problem is that you are
> Prototype's json and Ajax.request functions.
> I had problems with the json.js available in here -
> http://www.json.org/json.js (Ajax.request fails). So had to use the
> Prototype's json implementation.
> I found out that prototype.js uses eval on the input String given. As
> we all know that this is not secure is there any workaround for this
> within the protoype and json libraries?
not writing your for..in loops correctly. See
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>