Problem with IE ajax call ...

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:

  1.  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"}]}';           
  2.  $.ajax({                                                 
  3. type: 'get',                                             
  4. async: false,                                            
  5. dataType: 'jsonp',                                       
  6. url: 'http://open.mapquestapi.com/directions/v1/route',  
  7. data:{json:jlocations},                                  
  8. success: function(response) {                            
  9. if (response.collections) {                              
  10. var col = response.collections;                          
  11. if (!col[1]) {                                           
  12. doInvalidLeg(jlocations);                                
  13. 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,