Search code examples
jquery-mobileibm-mobilefirstjquery-ui-touch-punch

JQMobile App with Touchpunch not working


I am trying to get a Worklight 6.2 app JQueryMobile 1.4 mobile app working which has draggable widgets. I have included js from touchpunch http://touchpunch.furf.com/ , where I have a button that I am trying to make draggable

<script>$('#draggableButton').draggable();</script>

I was wondering if anyone had tried getting touchpunch working with Worklight/jqm or if they ended up taking some other approach to create a draggable widget. Thanks!

Jeff


Solution

  • It worked for me after:

    1. adding missing jquery-ui.js
    2. adding missing class="ui-widget-content" declaration on the a href
    3. I also moved the .draggle() to wlCommonInit()

    Modified HelloDraggable sample project.