[jQuery] Re: how to load(text with the + sign in it)

2009-03-21 Thread Alexandre Plennevaux
well the missing + sign is in the returned (loaded) html data, not in the url variables. there are none. basically i do a $('#container').load(href); what gets display in the container is A magazine instead of A+ magazine . if in my php script i urlencode($string) the data, then the + sign is

[jQuery] Re: how to load(text with the + sign in it)

2009-03-20 Thread Martijn Houtman
On Mar 20, 2009, at 3:59 PM, Alexandre Plennevaux wrote: i'm doing an ajax call via the load() function. The fetched string contains the + sign, and it gets removed in the resulting html. Why is that? note: i'm using php. The only way i found to have the string shown, is to urlencode() it.

[jQuery] Re: how to load(text with the + sign in it)

2009-03-20 Thread Alexandre Plennevaux
Hello, i tried that, but htmlentities(A+) echos A+, so it does not convert it. On Fri, Mar 20, 2009 at 4:06 PM, Martijn Houtman martijn.hout...@gmail.com wrote: On Mar 20, 2009, at 3:59 PM, Alexandre Plennevaux wrote: i'm doing an ajax call via the load() function. The fetched string

[jQuery] Re: how to load(text with the + sign in it)

2009-03-20 Thread James
Could you post how you're doing the .load() jQuery part? It sounds like you're passing it through the url, like: $.load(page.php+myVar); In this case, you should use some kind of Javascript function to encode the variable: $.load(page.php?q=+encodeURIComponent(myVar)); Else, it's recommended you