I'm trying to create a JSON file with dojo toolkit that need to be saved into local memory of the phone. The app need to be valid for android and IOS. I'm using ECLIPSE with ADT as a IDE. My principal issue is that normally the file created with dojo were saved as cache cause the web-oriented nature of dojo. thanks for the help.
Why use dojo? You can use javascript and HTML5
This is not very clear... If you use ADT how do you make compatible with IOS ? And what is dojo doing here ?
I guess you are using Phonegap for creating your app...
Maybe what you are looking for is:
http://docs.phonegap.com/en/edge/cordova_file_file.md.html
Related
I have some objective C code. I need to integrate it into my cordova project.
How can I run that code in my Cordova IOS app?
Your question is a little vague. But to get you pointed in the right direction:
Open your project in finder and navigate to platforms>ios>[project-name]>Classes.
Here you will find AppDelegate and ViewController files. These are written in objective C. AppDelegate handles a lot of the central processes of your app.
If you want to add something specific in ObjectiveC you have to write a plugin. Here's the doc about it : https://cordova.apache.org/docs/en/5.4.0/guide/hybrid/plugins/index.html
Once you've integrated your new plugin into your cordova app, you just have to execute your native callback from the javascript code. It works the same way as an official plugin.
What exactly do you want to add in ObjectiveC, are you sure that you can't do it from the webView ? (I mean in JS and not as native code)
I am using the Build.Phonegap utility to zip up my HTML, CSS, & JS in order to create an app on my Android phone. I know my code is fully correct as it renders no problem in my browser, but when I zip it up the JS doesn't render at all. My question is:
Can Build.Phonegap render third party Javascript SDKs? i.e. Facebook
I am attempting to use the Facebook JS SDK and do not wish at all to use the Facebook.Connect plugin for Phonegap.
Please do not mix this up the Phonegap/Cordova platform.
Thanks!
I don't believe it can, no. That's the point of the plugins.
Why don't you use the plugin?
Building a Windows 8 application with JavaScript for the new Windows Store I stumbled on the lack of good data storage mechanisms.
I would like my app to use the SQLite3, but I cannot seem to make it work. Closest I can get is an error "Class not registered" when trying to access SQLite3 API through JavaScript.
If you made it work for your app, please share an example. Thanks!
Take a look at the SQLLite-WinRT project on github. I haven't played with it but it's in my queue of things to try out.
https://github.com/doo/SQLite3-WinRT
Here's a tutorial:
http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx
I'm not sure how it works in javascript but in the C# version of using sqlite you have to add the dll to the root folder of your app and make sure that in its properties its set to: content--> copy always
I have an HTML file containing JavaScript code, which is read by PC browsers(like IE).
Now I want to "migrate" those codes to make it part of my iOS app.
Is there an easy way to do this? I now using Titanium is a good way but what if I intend to use Xcode? (Also, the HTML contains some JQuery codes.)
Thank you very much!
Use UIWebView and you can run it as is.
i currently have highcharts realtime graph working on a browser (e.g. http://www.highcharts.com/demo/dynamic-update ), but we now want to an iphone/ipad app so that the users dont have to go and type in the address (instead open an app) and they see the live graph.
is there an easy way to convert the existing webpage (with highcharts.js and jquery. js into an app?) i looked at real time plotting on iPhone using core plot? but looks a bit complex for me (i dont have any prev knowledge on building apps )
Also, http://code.google.com/p/core-plot/issues/detail?id=94 indicates there is a known problem with core-plot dynamically updating the data in real time. any live examples would be of great help.
thanks
You might want to check out Phonegap, on build.phonegap.com you can upload your web-assets and download a ready compiled (web-)app wich will run as a regular app on your device.
For a simple web-app tested on android this worked great (but do not count on anything outside the browser being available to you (phonebook/sms etc)).
I'd suggest to create a iOS web-application, so you can use Highcharts JS like in a normal webpage. The Highcharts homepage says it's compatible with iPhone/iPad.
Web-apps can be designed to look like native apps and can also be started directly from the homescreen without typing the URL.
This answer is very late, but here is a gist that embeds HighCharts into a UIWebView. Embed jQuery (I used jquery-1.9.1.min.js) and the HighCharts .js files in the app bundle and this will load them into the web view.