Re: PHP and AJAX

lazaros <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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.

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.