Welcome Guest, Not a member yet? Register   Sign In
not working in IE
#1

[eluser]php beginner[/eluser]
this is my code working in mozilla but not working in IE
var xmlhttp;
if (window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
else
{
try {
alert('try1');
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try
{
alert('try2');
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert('try3');
xmlhttp = false; } }
}
#2

[eluser]Zeeshan Rasool[/eluser]
Why don't you use simple Jquery ajax calling methods? i think thats easy and workable for all browsers
#3

[eluser]php beginner[/eluser]
yes but my jquery also not working in IE
#4

[eluser]Zeeshan Rasool[/eluser]
If your Jquery is not working too then check your browser settings, may be it doesn't support javascript. Enable your javscript in IE.
#5

[eluser]php beginner[/eluser]
yes i m enable javascript
but still not working
#6

[eluser]Zeeshan Rasool[/eluser]
Just find out why your jquery is not working. Im sure you are doing some thing wrong. Do it step by step and test a simple file to verify it
#7

[eluser]php beginner[/eluser]
actually same code is working in mmozilla




Theme © iAndrew 2016 - Forum software by © MyBB