Jump to content

php_developer

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by php_developer

  1. I have two select boxes, one for country and other for time zone...depending upon the country the time zone will apper in second select box... my code is working well on mozilla, chrome..but not at all working on IE6... I have used different ajax codes but every code works properly on browsers except for IE6... Here are the ajax code... first is.. I have used the code fromhttp://www.w3schools...uest_create.asp next time I used as follows. try{ // Opera 8.0+, Firefox, Safari xmlhttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer Browsers try{ return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) { try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { // Something went wrong alert("Your browser broke!"); return false; } } } }xmlhttp.open("GET","process.php?q="+str,true);xmlhttp.send(); and the other is ... // Needed for IE6 and older to replicate the standard XMLHttpRequest objectif (window.ActiveXObject && !window.XMLHttpRequest){window.XMLHttpRequest = function(){progIds=new Array("Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP", "Microsoft.XMLHTTP");for(i in progIds){try{return new ActiveXObject(progIds);}catch(ex){alert(progIds);}}return null;};} xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("timezone").innerHTML=xmlhttp.responseText; } }xmlhttp.open("GET","process.php?q="+str,true);xmlhttp.send(); ( These all are not woking only on IE6)I have used POST rather than using GET also...
  2. But it is not working at all on IE6...Should I create any other xml object that work for IE6 ( if Yes Please tell me how )?
  3. Hi, I just want to know that "Do ajax work on IE6 or not ?". as I have used the code fromhttp://www.w3schools...uest_create.asp but my code is not workin on IE6... IF it can work then please tell me how...
  4. create a column in database with the field type "timestamp" it have a timestamp on it automatically when a new row inserted or updated an exited one
  5. $name;$email;$query = mysql_query("select * from table_name where name=$name and email=$email");$num_of_row=mysql_num_rows($query);if($num_of_row <= 0){$another_query=mysql_query("insert into table_name (name, email) values ($name, $email)");}
  6. first print $fields variable and get its value and then place that actual value in the query at place of $fields after that copy the whole query in phpmyadmin and run this query. you'll definately get the answer
×
×
  • Create New...