Over a million developers have joined DZone.

PhoneGap Hybrid Applications: Populate Controls with Client-side Data Cache

Check out how to populate controls with client-side data caches in PhoneGap hybrid apps with this awesome video!

· Mobile Zone

In a PhoneGap hybrid application, if your UX contains Dropdownbox controls, the choices shown in the Dropdownbox controls will be defined at design time (when the PhoneGap application is built).

However, in your application, you might want the choices in the Dropdownbox controls to be defined at run-time. Your app should make a callback to the server to get current data for the Dropdownbox controls and then persist that data locally so that the next time the app is loaded it already has the data for the Dropdownbox controls. The client-side data cache is ideal for this scenario.

In this video, we show how you can define client-side data cache items for the data to populate Dropdownbox controls.


More Learning Resources for PhoneGap Hybrid Applications

Check out the Expert Series Workshop in which two sessions are dedicated to PhoneGap deployment. Going on now for all current Alpha Anywhere subscribers. Learn more about the Expert Series Workshop

Alpha Anywhere contains powerful integration with PhoneGap Build for developing and deploying hybrid applications. This post is a technical deep dive for Alpha Anywhere developers. Click here for a general overview of Alpha’s PhoneGap integration for building hybrid applications.

Topics:
phonegap ,ux/ui design

Published at DZone with permission of Amy Groden-Morrison, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}