Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 3    Views: 522

sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
04/12/12 08:26 AM (13 years ago)

How to display JSON data...

I want to add a currency converter page to an app and I came across this: http://josscrowcroft.github.com/open-exchange-rates/ It looks like it is exactly what I need but I am struggling to figure out how to take the raw JSON data and display it on a (HTML) page in my app. This URL gives an hourly updated list of the current rates in JSON format: http://openexchangerates.org/latest.json I am fine with HTML and have done a bit of Java Script, but this is beyond me! Can anyone help? Thanks!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/12/12 09:18 AM (13 years ago)
Hi @sepala, I haven't read through this page very carefully, but check it out: http://www.zachhunter.com/2010/04/json-objects-to-html-table/ Looks like you can, through the use of JavaScript, build an HTML page from JSON code. I guess the approach in buzztouch then, would be to have a Custom HTML or HTML screen, use the JS as indicated in the link above, and generate the page you're looking for? Worth a look I think! Mark
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
04/12/12 10:11 AM (13 years ago)
Thanks so much @GoNorthWest! Looks like that may do the trick & it looks like I have some learning to do! Thanks again & I will keep you updated with my progress...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/12/12 10:12 AM (13 years ago)
Learning is always a good thing, especially when it can be shared with others. Good luck, and post if you need any help! Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.