English 中文(简体)
“数据(......)
原标题:" data(...).options is null or not an object" in jquery-ui

I m使用jquery-ui 1.8,并在互联网探索者中发现这一错误:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Mon, 10 May 2010 06:26:48 UTC


Message:  data(...).options  is null or not an object
Line: 75
Char: 13074
Code: 0
URI: http://localhost:58365/Scripts/Lib/jquery-ui-1.8.custom.min.js

Is this a known bug? Is there a workaround? The error happens when I use droppable/draggable.

问题回答

couple:

如果您尝试ready 左手,但依然照此错误,试着load。 甚至:

$(window).load(function(){
  // your code here
});

或试图在页末放下你的jquery/js代码。

<>jquery.min.js 替换:

stop: function(event, ui) {
    var o = $(this).data( draggable ).options;
    if (o._cursor) $( body ).css("cursor", o._cursor);
}

原文:

stop: function(event, ui) {
    if ($(this).data( draggable )) {
        var o = $(this).data( draggable ).options;
        if (o._cursor) $( body ).css("cursor", o._cursor);
    }
}

问题。 我也有类似之处,因为在我们的退学中,我们确实是ui.draggable.remove()。 这就是说,“贱民”再也没有工作。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签