Friday, April 29, 2011

Problem with javascript (jQuery). Works in firefox but not in IE

Hi!

I have a problem with a site I am working on, available here.

The javascript on the site works as inteded when browsed with firefox. In IE7, however, the javascript does not even get executed.

As I am new to javascript I suspect that I am probably doing an obvious mistake somewhere in the code.

Any help is appreciated!

From stackoverflow
  • here is your problem:

    $.get("ajax.php", {case: caseNr, picturenr: picNr, pictureinfo: true}, function(data){
    

    case is a reserved word. When using hashes, always make keys be strings, and you will never get yourself in to trouble

    $.get("ajax.php", {"case": caseNr, "picturenr": picNr, "pictureinfo": true}, function(data){
    
  • Your problem is on line 43, karlsten.js, on IE8, so you may want to debug it on IE8, if possible, or get the Web Developer Tools. $.get("ajax.php", {case: caseNr,

    But, someone just submitted this before I did, with a good answer. :)

0 comments:

Post a Comment