www.webdeveloper.com
Results 1 to 4 of 4

Thread: problem with IE & AJAX

  1. #1
    Join Date
    Jan 2003
    Posts
    69

    problem with IE & AJAX

    Hi all,

    IE has done it again. It drives me crazy.
    I have a simple code that takes the value of a field and sends it to php page
    Code:
    function update_field(field_name,job_id);
    var field_value = document.getElementById(field_name).value;
    var Str = "update_field.php?job_id="+job_id+"&field_name="+field_name+"&field_value="+field_value
    
    var oXmlHttp = zXmlHttp.createRequest();
    oXmlHttp.open("get", Str , true);
    oXmlHttp.onreadystatechange = function () {
    
            if (oXmlHttp.readyState == 4) {
    		if (oXmlHttp.status == 200) {
                           view(oXmlHttp.responseText);
    		} else {
                           view("An error occurred: " + oXmlHttp.statusText); 
                    }
             }
     	} ;
    	oXmlHttp.send(null);
    the php is simple update mysql statement.

    It works fine both on Firefox and IE with English. But when I am using Hebrew I get ???? any ideas why?

    thanks!

  2. #2
    Join Date
    Dec 2008
    Posts
    79
    do you mean, the return (responseText) is "????" ?

    maybe it's the encoding ...

    try this in your php:

    Code:
    echo htmlentities($yourText);

  3. #3
    Join Date
    Jan 2003
    Posts
    69
    yes this is what I meant but htmlentities didn't help

  4. #4
    Join Date
    Feb 2008
    Posts
    87

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles