madrobby / scriptaculous

script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
http://script.aculo.us/
MIT License
2.32k stars 496 forks source link

Autocomplete problem in IE #9

Closed tailangong closed 14 years ago

tailangong commented 14 years ago

Well, I am doing a simple page to test ajax.autocompleter function as in this link --> http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter

However, it only works in Chrome and Firefox. IE7&8 do not give responds no matter what I typed in the text field. (Supposedly, there will be a list of suggestions but it just doesn't show up in IE.)

I am using scriptaculous.js v1.8.2 and prototype.js v1.6.0.3 I'll paste my code here juz in case I miss something.

My JSP page

<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

``` Autocomplete

Autocomplete

```

My AutocompleteServlet

public class AutocompleteServlet extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); System.out.println("Ajax is here!!"); try { System.out.println("Ajax is here!!"); System.out.println(request.getParameter("auto")); out.println(""); out.println("

  • Malaysia
  • "); out.println("
  • India
  • "); out.println("");

        } finally { 
            out.close(); 
        } 
    } 

    }

    I've googled few days for this issue but to no avail. Hope you guys could help!

    tailangong commented 14 years ago

    Sorry. No issue for the ajax.autocompleter. It was my own coding mistake and it has been solved. Please close this thread.