0

I am using the below code ( PHP - Ajax )
..It works fine on firefox,chrome,
Bu not works on IE...

Please help me as i am new to PHP-AJAX

Thanks in Advance

===============

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
2
Contributors
1
Reply
14
Views
4 Years
Discussion Span
Last Post by LastMitch
1

Please help me as i am new to PHP-AJAX

It's a bug. The code you provided, I can't do anything to it because it looks right.

I don't see any issue.

The issue is that it doesn't work on IE.

So you need to read these article and it will explain why it does that and try to used the code from the link to resolve your own code:

http://www.itworld.com/development/303295/ajax-requests-not-executing-or-updating-internet-explorer-solution

https://devcentral.f5.com/blogs/us/fixing-internet-explorer-amp-ajax#.UWuEB8qXSSo

http://www.dashbay.com/2011/05/internet-explorer-caches-ajax/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.