Marcus Eby - 2008-02-12 08:09:22
Whenever I post through phpajax some text box with double quotes, it wasn't adding slashes to the values, just before it turns it into JSON arrays and sends it through to the server.
I found this piece of code in phpajax.js
variable = params[i].value ? params[i].value : getObjValue(params[i].source);
And added the line right after it:
variable=variable.replace(/\"/g,'\\"'); // MARCUS ADDED REPLACE HERE
Everything seems to work fine now.
But I thought I'd post it here, so you can do what you want with it.
It's really bringing down dev time for small apps.
Thanks again man.
Awesome class.
Marcus