How to use HTML5shiv with ajax call data results

I am making an ajax call like this:

$.ajax({
          type: "POST",
      url: action,
      cache:false,
      success: function(data){

                  alert($(data).find("*").html());

    }

});

      

all browsers (except IE 8 and 7) correctly display the warning I entered in SUCCESS. in IE I get "undefined".

the data contains some HTML5 tags and I know that it doesn't work for this reason.

I already put HTML5shiv in my header, but it works for normal pages and not for ajax calls.

How can I call HTML5shiv on my "data"?

I've already tried using innerShiv, but the author says it is no longer recommended as html5shiv now fixes the innerHTML issue ( http://jdbartlett.com/innershiv/ )

Thanks a lot, I'm going crazy with this problem ...

+3
html5 internet-explorer html5shiv


source to share


No one has answered this question yet

Check out similar questions:

1399
How do I create a placeholder for the select field?
889
How to clear the canvas for redrawing
853
Element selection by data attribute
390
How can I submit FormData objects using Ajax requests in jQuery?
five
Node.js, Ajax sending and receiving Json
3
jquery ajax call in ie8 / 9 not working
1
HTML5 html5shiv and IE7
1
IE not returning results of jQuery ajax () call
1
Getting JSON data with Ajax from PHP + Zend does not work only in IE
0
jQuery Ajax Get does not pass received data to success function in Internet Explorer


Loading...
X
Show
Funny
Dev
Pics