admin管理员组文章数量:1404923
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
2 Answers
Reset to default 9here 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. :)
本文标签: Problem with javascript (jQuery) Works in firefox but not in IEStack Overflow
版权声明:本文标题:Problem with javascript (jQuery). Works in firefox but not in IE - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744879181a2630101.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论