PHP ajax call not displaying ie7 or 8

I have the following call that just does not work in ie7 or 8, but is excellent in everything else!

<script> $('#wishlist_icon').load('/add_wishlist.php',{ userfromcookie:"<? echo $userfromcookie; ?>", PRid:"<? echo $PRid; ?>", cat_id:"<? echo $cat_id; ?>", item:"<? echo $title2; ?>" }); </script> 

I also tried the following (adding a random number to the URL) that didn't fix the problem:

 $random_num_for_ie = rand(5, 1500); <script> $('#wishlist_icon').load('/add_wishlist.php?num_ie=<? echo $random_num_for_ie; ?>',{ userfromcookie:"<? echo $userfromcookie; ?>", PRid:"<? echo $PRid; ?>", cat_id:"<? echo $cat_id; ?>", item:"<? echo $title2; ?>" }); </script> 

Any ideas how I can make this work an important part of the page.

0
source share
2 answers

A problem was discovered ... It seems unrealistic to me that a wandering html fragment causes a problem, loving, i.e.!

0
source

Verify that the resulting HTML is valid.

.load is known to work poorly with IE. Use $.get or $.ajax .

0
source

All Articles