File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Browser not supporting Autocomplete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Browser not supporting Autocomplete" Watch "Browser not supporting Autocomplete" New topic

Browser not supporting Autocomplete

darshan karle

Joined: May 09, 2008
Posts: 28
hi everybody,

I am implementing Ajax Autocomplete in my project. problem is Internet Explorer 7.0 is not supporting Ajax.It works fine with Firefox.Can any body please tell me what is the problem.i will paste java script here.

[ May 30, 2008: Message edited by: Eric Pascarello ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
What does it not support? The XMLHttpRequest Object? What error messages are you getting? Have you tried to debug it and see where the code is failing? Does it work for one letter and stop working after that?

A little bit more details will go a long way to help you getting an answer.

darshan karle

Joined: May 09, 2008
Posts: 28
hello eric,

sorry for the delay.

before using Firefox i was trying with IE7.0 and it was failing to create XMLhttp request object.i figured it by putting alert messages inside try catch where i was creating Http was displaying error messaga saying "browser dosenot support AJax " . After that i installed firefox and it created XMlHttp request object and my code is working fine.
Even now if i try to create XMLHttp request Object using IE7.0 it is not working .

do tou any idea why it is not working

Angelo Quaglia

Joined: May 22, 2005
Posts: 1
One problem is that the script you posted does not set the variable isIE.
You should add this as the first line of the init() function:
isIE = (window.ActiveXObject);

Once isIE is set it will create the request as:
req = new ActiveXObject("Microsoft.XMLHTTP");
instead of:
req = new XMLHttpRequest();
I agree. Here's the link:
subject: Browser not supporting Autocomplete
It's not a secret anymore!