Problem with IE ajax call ...
Hello,
The good people at microsoft have again led me to this forum.
I have an ajax request that is working fine in FF and Chrome. But the ubiquitous IE "workaround" is again needed. Isnt that nice ...My hats off to them.
I have the following code:
- jlocations = '{"locations" : [{"street":"EAST 7TH ST, LONG BEACH, CA"},{"street":"9830 NORWALK BLVD. SUITE 1, SANTA FE SPRINGS, CA"},{"street":"7223 E. ALONDRA BLVD., PARAMOUNT, CA"}]}';
- $.ajax({
- type: 'get',
- async: false,
- dataType: 'jsonp',
- url: 'http://open.mapquestapi.com/directions/v1/route',
- data:{json:jlocations},
- success: function(response) {
- if (response.collections) {
- var col = response.collections;
- if (!col[1]) {
- doInvalidLeg(jlocations);
- return false;
jlocations is a string build inside the server program and substituted into the html page
It works great in chrome and ff but IE is returning the following error:
Do I need to encode/decode the url or something?
Thanx,