Skip to main content

Search and Top Navigation

#10222 closed bug (invalid)

Opened July 16, 2014 07:39AM UTC

Closed July 31, 2014 08:34AM UTC

Jquery Autocomplete is working in IE11 but is not working IE8 and IE9

Reported by: vineet kumar Owned by: vineet kumar
Priority: minor Milestone: none
Component: ui.autocomplete Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

I am using Jquery Autocomplete . Its working IE11 but not working IE8 and IE9. How will it be able to work in IE8 and IE 9 . Please provide solution as soon as possible.

Attachments (0)
Change History (4)

Changed July 16, 2014 12:36PM UTC by tj.vantoll comment:1

owner: → vineet kumar
status: newpending

The demos on http://jqueryui.com/autocomplete work fine in IE8 and IE9. Please provide a reduced test case that shows the issue.

Changed July 16, 2014 01:29PM UTC by scottgonzalez comment:2

_comment0: Replying to [comment:1 tj.vantoll]: \ > The demos on http://jqueryui.com/autocomplete work fine in IE8 and IE9. Please provide a reduced test case that shows the issue. \ \ \ Hi tj, \ \ I am posting my code which is working in IE11 and not working IE8 and IE9. \ \ JSP page : \ \ $(document).ready(function() { \ \ $('#cityAA').autocomplete({ \ source: function(request, response) { \ $.ajax({ // Ajax call start \ url: "addAddress.action?flag=city", \ dataType: "json", \ data: { \ term : request.term, \ count : $('#countriesAA').val(), \ }, \ success: function(data) { \ response(data); \ }, \ }); //End \ \ }, // Source End \ minLength: 1, \ select : function(event,ui){ \ cityId=splitFunc(ui.item.value); \ } \ }); \ }); \ \ JSp for Handling result coming from server. \ \ <%@ page import="java.sql.*"%> \ <%@ page import="java.util.*" %> \ <%@ page import="com.wipro.vel.feasibility.web.searchAddresses.DummyDB"%> \ <%@ taglib prefix="s" uri="/struts-tags" %> \ <% \ try{ \ String jsonStr; \ DummyDB db=new DummyDB(); \ jsonStr=DummyDB.jsonValues; \ out.print(jsonStr+"\\n"); \ }catch(Exception ex){ \ ex.printStackTrace(); \ } \ %> \ \ Server side program: \ public String ajaxCall() { \ ActionContext ctx= ActionContext.getContext(); \ Map m=ctx.getSession(); \ if(getServiceTypeValue()!=null && m!=null){ \ m.put("sType", getServiceTypeValue()); \ \ System.out.println("Going to List Print"); \ String create_feasibility_sequence=(String) m.get("create_feasibility_sequence"); \ System.out.println("Seq Id::"+create_feasibility_sequence); \ resultList=tempAddressSearchDAO.findField(create_feasibility_sequence); \ System.out.println("Thanks! List gets printed"); \ } \ \ if (term == null || term.trim().equals("")) { \ return "success_mainpage"; \ \ } else { \ try { \ if (flag != null && flag.equals("city")) { \ String cityTerm = term; \ \ System.out.println("First Term::" + cityTerm); \ System.out.println("First Flag::" + flag); \ System.out.println("Temp Value::" + count); \ \ Session sess1 = baseHibernateDAO.getSession(); \ Criteria ctrCity = sess1.createCriteria(Cities.class); \ ctrCity.add(Restrictions.like("ctID.cityName", "%" + cityTerm + "%") \ .ignoreCase()); \ ProjectionList proListCity = Projections.projectionList(); \ proListCity.add(Projections.property("ctID.cityName")); \ ctrCity.setProjection(proListCity); \ jsonValues = gson.toJson(ctrCity.list()); \ System.out.print("JSON"+jsonValues); \ term = null; \ flag = null; \ sess1.close(); \ }else if (flag != null && flag.equals("address")) { \ String addressTerm = term; \ System.out.println("First Term::" + addressTerm); \ \ \ Session sess1 = baseHibernateDAO.getSession(); \ Criteria ctrAddress = sess1.createCriteria(Addresses.class); \ \ if(cityTempId!=null){ \ System.out.println("City ID Is Null::" + cityTempId); \ Criterion buildingId = Restrictions.eq("addID.cityId",cityTempId); \ Criterion addName = Restrictions.like("addID.addressAutoSearch", "%" + addressTerm + "%").ignoreCase(); \ LogicalExpression andExp = Restrictions.and(buildingId,addName); \ ctrAddress.add(andExp); \ ProjectionList proListAddress = Projections.projectionList(); \ proListAddress.add(Projections.property("addID.addressAutoSearch")); \ ctrAddress.setProjection(proListAddress); \ List list=ctrAddress.list(); \ jsonValues = gson.toJson(list); \ System.out.println("Address = " + jsonValues); \ term = null; \ flag = null; \ cityTempId=null; \ sess1.close(); \ }else{ \ System.out.println("City ID Is ::" + cityTempId); \ ctrAddress.add(Restrictions.like("addID.addressAutoSearch", "%" + addressTerm + "%").ignoreCase()); \ ProjectionList proListAddress = Projections.projectionList(); \ proListAddress.add(Projections.property("addID.addressAutoSearch")); \ ctrAddress.setProjection(proListAddress); \ List list=ctrAddress.list(); \ jsonValues = gson.toJson(list); \ System.out.println("Address = " + jsonValues); \ term = null; \ flag = null; \ cityTempId=null; \ sess1.close(); \ } \ } \ else { \ System.out.println("Invalid flag"); \ } \ } catch (Exception e) { \ e.printStackTrace(); \ } \ return "success_ajax"; \ } \ } \ \ 1405518968865469
status: pendingnew

Replying to [comment:1 tj.vantoll]:

The demos on http://jqueryui.com/autocomplete work fine in IE8 and IE9. Please provide a reduced test case that shows the issue.

Hi tj,

I am posting my code which is working in IE11 and not working IE8 and IE9.

*EDIT: Code removed*

Changed July 16, 2014 01:57PM UTC by scottgonzalez comment:3

status: newpending

Please provide a reduced test case using jsFiddle or jsbin as requested in the red box. You can use http://jsfiddle.net/tj_vantoll/hmarM/ as a starting point.

Changed July 31, 2014 08:34AM UTC by trac-o-bot comment:4

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!