harold-UIUX / jquery-ui-for-ipad-and-iphone

Automatically exported from code.google.com/p/jquery-ui-for-ipad-and-iphone
0 stars 0 forks source link

Not a problem with code, I just don't know how to implement it #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sorry, I'm rubbish with jquery and javascript. Could you explain what I'm doing 
wrong on this here 

<html>
<head>
<script type="text/javascript" src="jquery.ui.touch.js"></script>
<script language="javascript">
$.extend($.support, {
        touch: "ontouchend" in document
});
//
// Hook up touch events
//
$.fn.addTouch = function() {
    if ($.support.touch) {
        this.each(function(i,el){
            el.addEventListener("touchstart", iPadTouchHandler, false);
            el.addEventListener("touchmove", iPadTouchHandler, false);
            el.addEventListener("touchend", iPadTouchHandler, false);
            el.addEventListener("touchcancel", iPadTouchHandler, false);
        });
    }
};
var lastTap = null; 
$('#dragitem').dialog().addTouch();
</script>
</head>
<body>
<img src='https://www.mozilla.org/img/covehead/plugincheck/background.png' 
id='dragitem' />
</body>
</html>

Original issue reported on code.google.com by adamul...@yahoo.co.uk on 1 Sep 2012 at 8:26

GoogleCodeExporter commented 8 years ago
See issue 13 for a solution to this

Original comment by jackthem...@gmail.com on 22 Jan 2013 at 11:47

GoogleCodeExporter commented 8 years ago
Download entire file, include it in your page and see issue 13

Original comment by jackthem...@gmail.com on 22 Jan 2013 at 11:47