×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    83

    jQuery draggable()?

    Is there any workaround to set objects draggable with jQuery in s60 wrt?
    For some reason a simple
    Code:
    $('#something').draggable();
    is not working (while everything works great in firefox and other desktop browsers)

    Thanks
    Best regards,
    Dusan

  2. #2
    Regular Contributor
    Join Date
    May 2009
    Location
    sydney
    Posts
    117

    Re: jQuery draggable()?

    hey powerpixels, no.... JQuery is not fully supported in WRT yet. like some of the fancy effect will actually kill the app.
    better way is just use pure javascript codings.

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    83

    Re: jQuery draggable()?

    Thanks Wenz,
    1. Does anyone know some example code or demo widget of draggable objects that actually works on phones? I've tried with common scripts I've found on google, and none of them seems to work on a phone.
    2, Are draggable objects in wrt widgets good option at all? Would it be better to move objects with arrow buttons instead (something like up-down-left-right virtual keyboard?
    Best regards,
    Dusan

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: jQuery draggable()?

    Hello,

    Dragging is a bit problematic operation from the browser perspective. Current Symbian WRT touch devices does not support dragging as dragging gesture is interpreted as page scrolling.

    -Ilkka

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: jQuery draggable()?

    Hello again,

    This time I have some good news. I just prove myself wrong about this matter. There was one previously undocumented feature that allows you to get mousemove events and thus enable dragging.
    Adding following lines will enable draggable support and at least the jQuery draggable example works now. For now I can say that at least browser 7.1 and 7.2 should support this. (tested with 5800xm, N97 and N8)

    Code:
    widget.setNavigationType("none"); 
    document.body.style.webkitUserSelect = "none";
    http://wiki.forum.nokia.com/index.ph..._touch_devices

    Happy hacking
    -Ilkka

  6. #6
    Registered User
    Join Date
    Jan 2006
    Location
    Argentina
    Posts
    24

    Re: jQuery draggable()?

    Ilkka this is so cool!

    I have just tried it on the google maps sample and it works like a charm
    Tested on a X6 device.

    Thanks!
    Mario

Similar Threads

  1. jQuery mobile
    By lucassp in forum Symbian
    Replies: 8
    Last Post: 2010-11-22, 10:18
  2. WRT and jQuery UI
    By rafiton in forum Symbian
    Replies: 2
    Last Post: 2009-07-24, 18:42
  3. JQuery slideToggle issue
    By tbertram in forum Symbian
    Replies: 3
    Last Post: 2009-06-22, 22:11
  4. jQuery Selectors Crashing App
    By alexheyd in forum Symbian
    Replies: 6
    Last Post: 2009-05-05, 07:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×