I have a remote server that serves json, what is the easiest way to implement a jquery mobile app that will display those json data? I want a big picture description of what I should do so I can find out the detail on my own.
If you want to serve the mobile website on your own site, JSON would be enough. If you want to use PhoneGap to make it a mobile app, you should use JSONP to get your data.
You could use a template system were you could drop your JSON data.
In combination with $.mobile.changePage($.tmpl( "<li>${Name}</li>", { "Name" : "John Doe" })); a new page can be shown.
Related
so i need to develop an app using phonegap that creates a graphical display of solar wind data (exciting stuff i know...) from this website http://services.swpc.noaa.gov/text/ace-swepam.txt with a graph being made for 'ion temperature', 'bulk speed' and 'proton denisity' individually, however im clueless as to where to begin... im assuming i need to make use of the charts.js library or something similar, im assuming i can make a variable for the axis as the data will be changing over time but I'm more stuck on how to pull data from this website though to be included in my charts. Any info on this would be greatly appreciated!
Thanks,
Gerrit
Call the web service to get the data, then pass it to the charting library you're using. You'll use AJAX (XMLHTTPRequest) to get the data. There's all sorts of options out there for simplifying this (jQuery and other libraries make AJAX easy).
The service you're using is giving you the data as a text file - this can work, but you'll have to parse the data client-side which is not fun (or a good use of your phone's capabilities). Look for a service that returns the data as a JSON object, then you'll have the data in a format that can be more easily passed to the charting library.
I have an web-application in RoR which calculates some energy values and investment money. I use ajax to send the data from the web-browser to the server. It is something like this: Browser-server-Browser-Server-Browser
This web-application is already integrated in typo3 and I want to implement a PDF button to send the results per email (in other words, a photo of the page with the results).
I have heard an option would be to generate some links in RoR to be used in typo3 (when clicking on it, it would open exactly the web-application with the results already calculated). But as a newbie, I do not really know which would be the best approach.
Any recommendation?
A screenshot of the page can be done client-side:
http://html2canvas.hertzen.com/
You could even have another page with the same results that you use only for the rendering of the result page what you use for making a clean screen-shot (you might not want to have the footer, menu and other elements on that page, only the results)
Once you have your screenshot, you can upload it to your server where you can use it to create a PDF of that image and then send it with any mail API you prefer to use.
info about TYPO3's mail api can be found here:
https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Mail/Index.html
I am writing an iOS app for a web site. This site is built using Wordpress. I have the overall UI structure built but I don't know I can connect to the sites server to get the needed data (posts, post titles, etc) to display through the app.
How can I do this?
To start, if the site is configured in the usual way, you can add ?feed=rss2 to the URL of your WordPress-driven site to request an RSS2 feed.
Basically, you're going to NSURLConnection and the URL Loading System to fetch the RSS feed, and then parse it. You can then use NSXMLParser to read the feed, and turn it into data collections and/or model objects to hold the data. Your UI can then load and display that data as you like.
I have a web site. This is a drupal site using PostgreSQL database.In this web site we can get direction data from one city to another by going to direction tab and giving start and end location.go to this URL and check that. http://www.zoomsrilanka.com/pathfinder .
direction data is loaded to dashboard. I want export that direction data to a iPhone so that this data can be used another application in the iPhone. If I tell in another words I want to send that data and need to store in a iPhone so that it can be used for another task. I want to know that how to store data in iPhone?
If you have control for the website you mentioned, You can create one webservice which will give you the required data in XML format by accepting parameters from iPhone.
i.e. you can call webservice from iPhone passing parameters and your webservice will provide response to that request in the form of XML and on receiving XML you can parse that and use according to your requirement.
It's not possible to share data between different IPhone applications. Each application has it's own "storage".
You can create API if you have access of server which you mentioned, API should give XML/JSON in response, so iPhone can take this response and parse accordingly, and store structure in sqlite local database.
I am unable to decide whether what to use for my blackberry application.
I am developing an application for Blackberry Device. This application send and recieves data from website.
Thats the only functionality.
I wanted to know what the best approach to go with.
Shall i use BrowserField and display html in the application??
OR
Shall i develop the custom controls and update the UI with the data fetched from the web??
Please Suggest, advice.
thanks
SIA
If you don't need to change html, and html is simple enough, it's better to use BrowserField. You will be able to natively represent text and images in html formatting. Even if you go offline you can init it with stored html. Also, you can extract a part of response and use it with BrowserField.
On the other hand, if custom formatting or interactivity is needed, its better to use RIM UI controls.