freak Posted July 28, 2009 Report Share Posted July 28, 2009 Man ir tāda problēma, ka nododot parametru caur ajax, kas ir ar garumzīmēm, uz IE viņš garumzīmes noņem nost. Kas tur par vainu? ... var url="meklet.php"; var url=url+"?parametrs="+parametrs; url=url+"&sid="+ new Date().getTime(); xmlHttp444.onreadystatechange=f444; xmlHttp444.open("POST",url,true); xmlHttp444.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); xmlHttp444.send(url); .... meklet.php skripts: echo "parametrs".$_REQUEST["parametrs"]; Quote Link to comment Share on other sites More sharing options...
cucumber Posted July 28, 2009 Report Share Posted July 28, 2009 Nav kas ar shito saistits http://www.w3schools.com/jsref/jsref_encodeURI.asp Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted July 28, 2009 Report Share Posted July 28, 2009 '?parametrs=' + escape("glāžšķūņu rūķīši"); Quote Link to comment Share on other sites More sharing options...
freak Posted July 28, 2009 Author Report Share Posted July 28, 2009 '?parametrs=' + escape("glāžšķūņu rūķīši"); paldies. Jā, tur bij vaina. Quote Link to comment Share on other sites More sharing options...
freak Posted July 28, 2009 Author Report Share Posted July 28, 2009 '?parametrs=' + escape("glāžšķūņu rūķīši"); Pēc tam to iegūto rezultātu atkodē ar urldecode? Man kautkā nestrādā/ echo "parametrs".urldecode($_REQUEST["parametrs"]); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.