• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

jQuery.ajax() issue with chrome and IE 8

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am working on an application in which I need to populate dropdowns on the basis on previous selection from drop down. code is working fine in mozilla but it fails in Internet explorer and chrome

here is the explained scenario


above javascript function calls a java method and in return receives a json of format name:value

i have checked the json on multiple websites and they say it is correct but i'm not able to populate the select list in IE8, it goes to error and give the alert Unexpected server error.

i have tried setting cache: false, async:false

contentType in java is set to application/json.

don't know where I'm going wrong.

also in chrome above function works fine but there is a similar function for another dropdown which fails.
in case of chrome request does not even goes to the servlet.

both function are working fine in mozilla

any help would be appreciated.

PS: IE version is 8 and chrome version is 17.0.963.56

thanks.
 
Gaurav Chander
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on checking the data in firebug i found a special character 'é' was there which was casing parsing issues in IE. so it is resolved..
 
Gaurav Chander
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so now i'm only stuck with chrome issue.. chrome is not sending request to controller..


please suggest for that..
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post an SSCCE.
 
Gaurav Chander
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


well issue is resolved as i was passing a parameter in url with name 'advertiser' and had a select tag on the same page with name 'advertiser' so got issues in chrome.

but it would be nice if you could explain me why it worked in mozilla and not chrome.

below is the code


because of the same name chrome was not sending request to controller
but the URL was called in ajax only and select tag was passed on submit

so why it didn't worked?

i know i should not have same names but it would be better if i know the reason for the failure.

thank you for your time.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic