Your Time:
Our Time:
← Back to discussions

jQuery Ordering Hosed

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 3 voices, and was last updated 11 years, 7 months ago by Fem.

  • 2015-01-25 at 11:45 pm
    Support Expired
    #6683
    dehilster
    Participant
    • Topics: 3
    • Replies: 3
    • Total posts: 6
    • Post count: 3

    With the HostMeV2 theme, the jQuery sortable that uses drag and drop goes nuts. I tried the code separated on my server without the them and no problem. With the theme, WOAH! There is an error thrown in jQuery. Here is the code. Try it yourself. I have included a screen shot. When it fails, it appends boxes when the cursor moves. Symptom of where it is failing in the sortable jQuery code.

    <!doctype html>
    <html lang=”en”>
    <head>
    <meta charset=”utf-8″>
    <title>jQuery UI Sortable – Default functionality</title>
    <link rel=”stylesheet” href=”//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css”>
    <script src=”//code.jquery.com/jquery-1.10.2.js”></script>
    <script src=”//code.jquery.com/ui/1.11.2/jquery-ui.js”></script>
    <link rel=”stylesheet” href=”/resources/demos/style.css”>
    <style>
    #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
    #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
    #sortable li span { position: absolute; margin-left: -1.3em; }
    </style>
    <script>
    $(function() {
    $( “#sortable” ).sortable();
    $( “#sortable” ).disableSelection();
    });
    </script>
    </head>
    <body>

    <ul id=”sortable”>
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 1
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 2
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 3
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 4
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 5
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 6
    <li class=”ui-state-default”><span class=”ui-icon ui-icon-arrowthick-2-n-s”></span>Item 7

    </body>
    </html>

    2015-01-28 at 6:29 pm
    #6748
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    If you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.

    2015-02-11 at 10:10 pm
    Support Expired
    #6943
    dehilster
    Participant
    • Topics: 3
    • Replies: 3
    • Total posts: 6
    • Post count: 3

    I have the same problem. I imported some functionality including the sort and it is throwing an error.

    2015-02-11 at 10:52 pm
    Support Expired
    #6944
    dehilster
    Participant
    • Topics: 3
    • Replies: 3
    • Total posts: 6
    • Post count: 3

    Just imbed the sortable code from the jQuery page using the themes jquery files and see it go funky. Some jQuery conflict with the theme.

    Sortable

    2015-02-13 at 12:30 pm
    #6971
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    You should not use the core file of the jquery again if its already there. Can we have a URL to your site please so that we can debug on live or else seeing the screenshot we can’t debug it.

    • This reply was modified 11 years, 7 months ago by Fem.

You must be logged in to reply to this topic.