xml - jQuery - AJAX call returns count, IE8 will not get the value -


using jquery 1.9.1 & doing ajax call stored procedure returns count. in success part of ajax call, processing data supposed returned. works in firefox, not in ie8. i've confirmed stored procedure returning data each time (0 if nothing counted, , positive integer if counted).

success:  function (data) {   notecount = $(data).find("notescounted").text();   if (notecount > 0) {       .... processing       }    } 

in firefox, works & if there x notes counted, if statement processed. in ie8, above code not work - if statement never fires & displays i've had in code in ie8 never show notecount > 0 (even when have manipulated test data force counted).

i doing wrong above code, not know what. appreciate anyone's assistance in getting work same way in both firefox , ie8.

thanks!

-- edit --

the call is:

$.ajax({     type: "get",     url: myurl,     datatype: "xml",     success:  function(data) {                  notecount = $(data).find("notescounted").text();                  if (notecount > 0) {                     .... processing ......                     } // if notecount > 0                  } // success     }); 

there's code in .... processing ...... section, in ie8, it's never getting fired (in firefox, is). code needs run in ie8 in firefox.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -