Page 1 of 3

does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 10:48 pm
by Ram

Dear Appery,

is it possible for a mobile web app to allow the user, for ex., to drag a component (label, list, collapsible or any other specific component) that is holding some string, lets say "Appery's support rocks!" to another component, say that component is a button, once the user fires the drop event on the button then the button caption will changed to "Appery's support rocks!"...

if the above is possible then i'd love to get some pointers on how to get this done!

Thank you all in advance!!
Cheers,
R.


does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 10:50 pm
by maxkatz

Is this when you are developing the app or running the final app?


does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 10:54 pm
by Ram

for running the final app, meaning, for the end user benefits.


does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 11:03 pm
by maxkatz

You probably can.. but this requires very strong JavaScript expertise. You can build anything that the browser will support. The app that you build in Appery.io simply runs in the browser.

http://docs.appery.io/getting-started


does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 11:05 pm
by Ram

thanks.


does Drag & Drop for mobile web app is possible?

Posted: Mon Oct 21, 2013 11:39 pm
by Ram

Max,

I see that most users use the following lib hjQuery UI Touch Punch is a small hack that enables the use of touch events on sites using the jQuery UI user interface library to get the drag drop functionality, i tried their samples using my mobile it it works very well, their implementation supposed to be only one line of code, however i get an error when trying to use that lib, here's what i did:

  1. added the lib as a JS asset

  2. placed a button on the page

  3. on page load JS:

    code
    Appery('mobilebutton_1').draggable();
    /code

    i get the this error: "TypeError: Appery(...).draggable is not a function"

    I'd love to get your input on that!
    Thx much,
    R.


does Drag & Drop for mobile web app is possible?

Posted: Tue Oct 22, 2013 12:00 am
by maxkatz

Appery(..) is just a wrapper to a jQuery select: http://docs.appery.io/javascript-api/. You can try using it directly.


does Drag & Drop for mobile web app is possible?

Posted: Tue Oct 22, 2013 1:05 am
by Ram

got it to work, thx max.


does Drag & Drop for mobile web app is possible?

Posted: Thu Jan 30, 2014 10:55 pm
by Matt

Ram,

Care to enlighten the rest of us?

Thanks!


does Drag & Drop for mobile web app is possible?

Posted: Fri Jan 31, 2014 7:53 am
by Maryna Brodina

Hello Matt! Perhaps Ram didn't add jquery UI, should be working if add it.