[Proto-Scripty] parsing json strips slashes before quotes - can I avoid this?

2008-10-09 Thread pancakes
Hi. I'm using prototype for my ajax routines. I'm returning a json object from the server containing user information. Some of the information contains user descriptions with quotes and other weird characters that need to be escaped. for example 'I'm going to the store, don't 'cha know?' is

[Proto-Scripty] Re: parsing json strips slashes before quotes - can I avoid this?

2008-10-09 Thread pancakes
with the database, you should not need to keep your data escaped. Once javascript is done with the data, and sends it back to the server, the server should then re-escape the unescaped data before inserting into the database. -Hector On Thu, Oct 9, 2008 at 11:22 AM, pancakes [EMAIL

[Proto-Scripty] Re: parsing json strips slashes before quotes - can I avoid this?

2008-10-09 Thread pancakes
, you should not need to keep your data escaped. Once javascript is done with the data, and sends it back to the server, the server should then re-escape the unescaped data before inserting into the database. -Hector On Thu, Oct 9, 2008 at 11:22 AM, pancakes [EMAIL PROTECTED]wrote

[Proto-Scripty] pass object as function argument - bind?

2008-10-17 Thread pancakes
I have searched around for some answer to this and I have a feeling I could make it work using bind(), but I'm not sure - I'm not exactly understanding the examples and explanations in regard to my example. I am returning a json object from the server/ajax. I am building some page elements