jQuery $(document).ready() failing in IE6

前端 未结 12 1070
一向
一向 2020-12-06 11:50

I have the following code:

// Creates a timer to check for elements popping into the dom            
timer = setInterval(function ()
{          
    for (p i         


        
12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 12:03

    I ran into this problem on my machine, as was able to find a quick fix. Here's what I did:

    1.Debugged my javascript with nickf's suggestion "alert(typeof $)" and got the "undefined" alert message

    2.I then fully qualified my jQuery script resources.

    3.Reload my page and received the "function" alert message

    BTW, I am using IIS 5.1 on XP. My website is configured to use "Wildcard mapping" to take advatage of the asp.net mvc framework. I think that this configuration caused the broken links.

    For more information on how to setup MVC on old versions of IIS, check out Phil Haack's post: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

提交回复
热议问题