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

  • Home
  • SEARCH
  • 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 6377451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:52:31+00:00 2026-05-25T01:52:31+00:00

This is strange problem. I want to use easyuis drad-and-drop capabilities, so I need

  • 0

This is strange problem. I want to use easyuis drad-and-drop capabilities, so I need to import jquery and easyui libs in aspx page. This should be fairly easy, but…

I tried many times with code like this

<head>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="Scripts/drag_and_drop.js" type="text/javascript"></script>
</head>

where drag_and_drop.js is

function OnDrag() {
    $('module1').draggable();

};

and i call function here

<body>
    <div id="module1" runat="server" oninit="OnDrag()">
        <asp:Panel ID="Panel1" runat="server">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Resources/mickey.jpg" />
        </asp:Panel>
    </div>
</body>

This all do not work for some reason.

I tried pasting entire libs of jquery and easyui in script tag inside head tag, and everything worked fine. This made me understand that there is problem with importing libs to aspx.

What I am doing wrong? Thank you in advance…

  • 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-05-25T01:52:31+00:00Added an answer on May 25, 2026 at 1:52 am

    Remove the oninit from the div tag, then add this bit of code in your head of the page.

    <script type="text/javascript">
        $(function(){
            $('module1').draggable();
        });
    </script>
    

    This will run the draggable() method when the DOM is ready, and should work

    EDIT
    Try using the jQuery-UI draggable instead.
    http://jqueryui.com/demos/draggable/

    You can then get rid of your jquery.easyui.min.js and drag_and_drop.js scripts.

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

Sidebar

Related Questions

OK, this problem is strange and I want to know if I am accidentally
I’ve got this strange problem whereby the content within a scroll viewer increases in
i have this strange problem with the PHP function CTYPE_ALNUM if i do: PHP:
Starting from Android 3.2 I have this strange problem. It's very easy to reproduce:
This is a strange problem I'm having, I've downloaded the WebSharingAppDemo sample from Microosfts
This is a strange problem.I init sem and destory it first,then i init it
This is a really strange problem, that appears to be somewhat intermittent (although it
This is a very strange problem, and I just hope that I can clearly
This is a strange LINQ-to-SQL problem which can't evaluate as an Enumerable (in SQL)
This problem is very strange and I'm hoping someone can help me. For the

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.