Re: PHP and AJAX

From: Date: Thu, 12 Apr 2007 23:17:03 +0000
Subject: Re: PHP and AJAX
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1060@lists.php.net to get a copy of this message
Thank you very much for the reply. I have been working with this problem for a while with a co-worker in the company that I work. The conclusion is that IE is here to make our work harder :). When the $_GET value was send to the php page, Firefox handled it right because it can do utf encoding(am I right?),but IE can't.So what we had to do is to encode the value before it was sent to php. So in showCustomer.js we added this simple line: var url="showCustomer.php?flag="+flag url=url+"&initial="+str url=url+"&customer_radio="+customer_radio url=url+"&is_prospect="+is_prospect url = encodeURI(url) //---->That's the new line we have added xmlHttp.onreadystatechange=stateChanged xmlHttp.open("GET",url,true) xmlHttp.send(null) I can't say if this is the right way to deal with that thing, but it works fine.Anyway Anirudh thanks for the reply.I think you were also on the right way :))) -- View this message in context: http://www.nabble.com/PHP-and-AJAX-tf3562272.html#a9970283 Sent from the Php - Internationalization (i18n) mailing list archive at Nabble.com.

« previous php.i18n (#1060) next »