0

This works perfectly in FF and Safari but not in IE... Here is the function:

  function my_totals(){
 $.ajax({
     type: "GET",
     url: "ajax.php",
    data: "action=my_items",
    success: function(data){
      $("#usage").html(data);
     }
 });
}
  • 1
    what/where is my_totals being called from? – Rob Allen Mar 26 '10 at 18:12
  • Yes, I did. I can't believe I forgot to add the error... long day. I get '$' is undefined. my_totals() is being called from an button onclick. – user302764 Mar 26 '10 at 18:55
  • It seems that there is a problem when you import the jquery.js. Perhaps an unclosed tag? (http://groups.google.com/group/jquery-en/browse_thread/thread/b79cf59b7d40f8f0) – Aito Mar 26 '10 at 19:52

1 Answers1

0

You can look here

Karl Swedberg said:

one possibility is that you're trying to inject invalid markup with .html(). I noticed this causing problems with a plugin I wrote. For example, inserting something like <div>this is a div with no closing div tag caused IE to churn

Also see this post

I hope it helps you...

Community
  • 1
  • 1
Aito
  • 6,812
  • 3
  • 30
  • 41