It is currently Thu Mar 28, 2024 4:10 am



Reply to topic  [ 1 post ] 
an AJAX post gotcha 
Author Message
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16646
Location: On a slope
Reply with quote
Post an AJAX post gotcha
just ran into this. Basically an ampersand in a post request will screw up your post. I guess I've just never used an ampersand before. It makes sense in retrospect, I just never though about it. Unlike GETing AJAX requests, POSTing is pretty browser-safe.

I use the following to get around it.

content = content.replace('&',escape('&'));

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Fri Nov 30, 2007 3:44 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.