Get your own customer support community
 

Javascript Quote Escaping Problems

Whenever I try to load up my lifestream, it doesn't get very far. My Javascript gets caught up in an error due to an escaping quotes problem. Here is the line of code:

ident = JSON.parse('{"name" : "Type Lauren Herndon's Full Name Here", "identity": 188}');

You see the single quote is ending the parameter to the parse() function early. If it is a problem here, I am sure it is a problem in several places. Whenever you receive data from your database, you should escape things so that it will not interfere with your client-side code.

I'd be willing to bet that if anyone put a single quote when they try to name someone, the next time that person's name comes back up in the LifeStream a Javascript error will be thrown.

An error like this keeps a person completely locked out of there LifeStream.

Keep up the good work! I am enjoying SocialThing!. I am finding things I didn't usually see before.
 
sad I’m not getting to use SocialThing!
Inappropriate?
1 person has this problem

User_default_medium