08-17-2012 07:35 PM
08-18-2012 04:20 AM
I want to point out some things possible or not to help a little bit on you questions.
For the client-side storage of information you can use different solutions directly on the device within your app to store informations:
For your question about PHP/CGI: both are server-side techniques that could be used when connecting to them using XMLHTTPRequest between WebWorks app and a server, but they do not run directly on the device.
For your question about BB-native things like accessing the calendar or the GPS you should investigate through the HTML5 WebWorks API documentation. Until now, not all the APIs are implemented in BB10, but in the future you should be able to access calendar (hopefully!). GPS API (HTML5 geolocation) is working but since BB10 is heavily in Beta it seems also to be in Beta at this time, IMHO.
If you are familiar with C/C++ you can also follow the BB10 WebWorks Extensions thread here in the forum where I pointed to the example extension to be able to access native features of the device using WebWorks.
Hopefully the informations above are a starting point for you.
08-20-2012 09:39 AM
Great post! Welcome to the forums.
> I want to know what languages will work in the boundaries of Webworks.
However you can also continue to use server-side web technologies like PHP, ASP. This content will have to remain on your remote server, but you can access it from a webworks application. You simply whitelist the domain name you wish to access and then you can load that URL just as you would from a browser.
Finally - you can use a combination of both! For example, have a local index.html page in your WebWorks app that uses a local style.css file to provide CSS definitions, and then call some AJAX from your HTML page to download a remote data feed and display that content in the app.
>>Whoever made it this far, thanks and please help!!
You will find the BlackBerry development community is an awesome place to be. There are many great developers who want to help.
08-20-2012 12:05 PM
08-21-2012 02:51 AM
IMHO, depending on the amount of data together with the searchability you want to provide on the client-side I would start using HTML5 Database. You can use statements in SQL-like manner to search database and this will be much easier and faster, in terms of search through the data I think, than using persistent HTML5 Local Storage. I worked in a client project we needed to use HTML5 Local Storage with uge amount of data and searchability isn't quite good and also will result in long times for those searches.
I think with the HTML5 database you can do much more in less time when using SQL-like search terms supported by it. On the other hand you could also use transactions in HTML5 database what makes error handling a lot easier when working with your persistent data.
For a starting point, next to the WebWorks API documentation, have a closer look to this HTML5Rocks tutorial.