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
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.
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
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
4 matches
Mail list logo