Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Drag Objects similar to jQuery UI

I'm looking to replicate the jQuery UI draggable effect

 

http://jqueryui.com/draggable/

 

It's not possible to use it with jQuery mobile. 

 

I've found other methods of drag and drop but they seem to rely on click events and getting mouse position.

 

Has anyone been able to do something like this with webworks?

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Drag Objects similar to jQuery UI

Yup

 

Depends on what you wanna do though

 

If you've got a DevAlpha it illustrates it perfectly by trying Vexed

 

You simply need the drag and drop points - if they overlap its a drop

 

The logic, however, is rather awkward

 




Click the like button if you find my posts useful!
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Drag Objects similar to jQuery UI

What do you mean when you say 'trying Vexed'? Is that the name of a JS library?
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Drag Objects similar to jQuery UI

BB10 DA AppWorld and search for it

 

I use every technique he's talking about in it

 

In HTML Smiley Happy

 

Classic will mess your brain ...

 

A bit sluggish on DA but smooth on a B

 

Bedtime




Click the like button if you find my posts useful!
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Drag Objects similar to jQuery UI

Found this library to be the best solution and works really quickly.

http://threedubmedia.com/code/event/drag
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis