freak Posted July 28, 2009 Report 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
cucumber Posted July 28, 2009 Report Posted July 28, 2009 Nav kas ar shito saistits http://www.w3schools.com/jsref/jsref_encodeURI.asp Quote
v3rb0 Posted July 28, 2009 Report Posted July 28, 2009 '?parametrs=' + escape("glāžšķūņu rūķīši"); Quote
freak Posted July 28, 2009 Author Report Posted July 28, 2009 '?parametrs=' + escape("glāžšķūņu rūķīši"); paldies. Jā, tur bij vaina. Quote
freak Posted July 28, 2009 Author Report 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
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.