Page 1 of 1

using javascript or jquery to delete

Posted: Thu May 15, 2014 6:58 am
by Kurt6863778

how do I use javascript or jquery to delete a single collapsible item by means of presenting a dialog box to user confirming deletion that deletes the item if yes or ok is clicked and remains if cancel or no is clicked ?


using javascript or jquery to delete

Posted: Thu May 15, 2014 8:18 am
by Kateryna Grynko

Hi Kurt,

To hide a component use this code:preApperyio("componentName").hide();/pre
To show:preApperyio("componentName").show();/pre

To delete it forever use:preApperyio("componentName").remove();/pre


using javascript or jquery to delete

Posted: Mon May 19, 2014 2:27 am
by Kurt6863778

hey, thanks Katya, but I saw the post by someone else and got it worked.

Also I do have other queries that are really stressing me...

Number 1 :
now i am creating an app that allows users to store data into a database and I would like when I publish the app for others to use I would like get the database to be released with the app onto the user's phone and not online ( each user wherever they are in the world can access their own database records in their phone . can tis be done if so how? thanks ...

Number 2 :
is there a way I can have the user browse songs on their phone and load them into app to play? is there code for that or any way ?

thanks


using javascript or jquery to delete

Posted: Mon May 19, 2014 7:34 am
by Evgene Karachevtsev

Hello Kurt,

You should have internet connection to use Appery.io DB REST API. As an alternative, you can store your data locally with SQLite. Please look at this link: http://docs.appery.io/tutorials/build...
You build HTML5 apps and we use PhoneGap to access the device. You can use any API that PhoneGap provides: http://docs.phonegap.com/en/3.3.0/cor...