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!
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
```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(" ");
}
I've googled few days for this issue but to no avail. Hope you guys could help!