最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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!

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!

Share Improve this question edited Aug 17, 2011 at 9:28 RivieraKid 5,9694 gold badges40 silver badges47 bronze badges asked Apr 16, 2009 at 18:07 Felix AndersenFelix Andersen 1,3912 gold badges15 silver badges26 bronze badges 2
  • 2 You really need to provide bit more info here... for what it's worth, yes, jQuery does (and should) work on modern IE versions. If you see any javascript problems notes by IE (alas, IE js debug support sucks), try to check those first. – StaxMan Commented Apr 16, 2009 at 18:13
  • IE js debug support does suck as much as most people think see: notetodogself.blogspot./2008/08/debug-javascript-in-ie.html The problem is that its MUCH harder to get working than downloading firebug in 15 seconds – mkoryak Commented Apr 16, 2009 at 18:17
Add a ment  | 

2 Answers 2

Reset to default 9

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)

  1. 暂无评论