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");
  }
Member Avatar for LastMitch

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/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.