Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why this doesn't work with asp.net
it's a code jquery to apply on list to make it drag and drop...
JavaScript
<script type="text/javascript">
    $(function (o) {
        o = $("#overscroll").overscroll({
            cancelOn: '.no-drag',
            hoverThumbs: true,
            persistThumbs: true,
            showThumbs: false,
            scrollLeft: 200,
            scrollTop: 100
        }).on('overscroll:dragstart overscroll:dragend overscroll:driftstart overscroll:driftend', function (event) {
            console.log(event.type);
        });
        $("#link").click(function () {
            if (!o.data("dragging")) {
                console.log("clicked!");
            } else {
                return false;
            }
        });
    });
</script>

this is the whole code.....https://dl.dropbox.com/u/28084245/Test.txt[^]
Posted
Updated 22-Jun-12 4:05am
v2
Comments
ZurdoDev 22-Jun-12 11:49am    
It looks like you are wiring up overscroll, which I have never used, to the div which encompasses the whole body of the page. What exactly are you trying to do and have you read documentation on overscroll?

Try an extra slash when loading overscroll:
<script src="/Islands/jquery.overscroll.js" type="text/javascript"></script>

Good luck!
 
Share this answer
 
As far as I can diagnose the problem, I think you have interchanged the lines. First include JQuery and then the plugin.


XML
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>

<script src="Islands/jquery.overscroll.js" type="text/javascript"></script>



You can check out the demo over here[^]

Please make sure that you are able to load the jquery.overscroll.js file. You can check it out by using FireBug (if using Firefox) or Developer Tools (If using IE) Both can be invoked by F12.
 
Share this answer
 
Comments
Mhd Sami Almouhtasb 24-Jun-12 4:50am    
thanx, this work :)
Pankaj Nikam 24-Jun-12 4:52am    
You are welcome :) Happy to help :)
1-Move the js sections to the head tag under the css file and make sure you add your plugin after the jquery-latest,js the order is very important:
<script src="Islands/jquery.overscroll.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>

2- Check the Page_load event it contains an invalid tag, probably it is generating an error
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900