Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:03:53+00:00 2026-06-05T17:03:53+00:00

I am using knockoutjs with the jquery drag & drop and it works well

  • 0

I am using knockoutjs with the jquery drag & drop and it works well in Chrome, Firefox, IE9 but not IE8. I can’t post the actual code but I created a jsfiddle example where the bug can be reproduced. Please take a look http://jsfiddle.net/wired1/P9hns/20/
It works great in the latest Firefox, Chrome and IE9. However in IE8 when attempting to drag I get the following error:

IE8 error #1

SCRIPT5007: Unable to get value of the property ‘options’: object is null or undefined
jquery-ui.1.8.18.js, line 1412 character 13

Here is the referenced code in jquery ui:

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

        var o = $(this).data('draggable').options;
        if (o._cursor) $('body').css("cursor", o._cursor);

}
});

It is the declaration of variable o in the stop function: var o = $(this).data(‘draggable’).options;

If I comment out those two lines in jquery ui I get the following error:

IE8 error #2

SCRIPT5007: Unable to get value of the property ‘options’: object is null or undefined
jquery-ui.1.8.18.js, line 1439 character 38

That points to:

$.ui.plugin.add("draggable", "scroll", {
start: function(event, ui) {
    var i = $(this).data("draggable");
    if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset();
},
drag: function(event, ui) {

    var i = $(this).data("draggable"), o = i.options, scrolled = false;
........................

It is the last line from the above snippet where o = i.options.

If I set {scroll: false} as an option for the jqueryui draggable the error goes away, but it still won’t work.

It seems that as I start to drag all events fire in order one after the other even though the mouse click was not released (when running the code test in jsfiddle look at the console to see the logs).

Is it a jquery ui issue or am I doing something wrong? Any help with this is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:03:54+00:00Added an answer on June 5, 2026 at 5:03 pm

    The problem is that you removed the student from your observableArray in the ‘start’ callback, which in turn causes KO to remove/detach the associated DOM element. But the code for draggable is counting on the dragged element to still be available (even if you specify a helper).

    I’m guessing that IE<9 handles the detached element differently, causing the error to surface. It can be solved by only removing the student from the observableArray when the associated draggable element is definitely no longer needed (i.e. when dragging has stopped).

    Here’s the updated fiddle: http://jsfiddle.net/P9hns/32/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using KnockoutJS and MVVM in a page and most if it works, but
I'm building web a javascript application using jquery, knockoutjs and less (for css). Works
I Am trying to fill jquery mobile listivew using knockoutjs library, but my problem
I've been using quite a bit of JQuery, KnockoutJS and other JavaScript stuff for
I'm using Selenium's webdriver, but I've hit upon a problem. I'm using KnockoutJS to
I'm using knockoutjs 2.0 I've been trying to have this table work in IE8
Using KnockoutJS, how can I remove an item from an observable array? I want
I'm using a combination of Knockout.js + the Knockout mapping plugin + jQuery in
I'm using both Knockout (version 2.0) and jQuery Mobile (version 1.0.1) in the same
I'm using KnockoutJS with ASP.NET MVC, and I'm having a problem with broken bindings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.