on IOS, trying to build JSON Database

You must Login before you can answer or comment on any questions.

I am searching high and low trying to find a tutorial about how build a JSON database and make it functional. The only tutorials I've found so far show how to build the interface, but never touch on how to make it go anywhere.

Say I build my database and have three selections. my dog my house my computer

If the user selects "my dog" I want him to then see a picture of a dog. I can build the raw database, and create the menu interface, but I really don't know how to make the buttons link to js files of their own. I need help seeing how to make the buttons function.

— asked 9 months ago by David Rempel
2 Comments
  • Why don't you post what you've got so far so people can see where you're at. You'll probably get more help.

    — commented 9 months ago by Anthony Decena

  • Okay, I've seen this tutorial:

    Handling Remote Data with HTTPClient and JSON Say I created that database. Say I then created a .js file for Muhammad Ali. When someone taps Muhammad Ali's name, I want him to go to my .js page about Muhammad Ali.

    — commented 9 months ago by David Rempel

1 Answer

Okay, I've seen this tutorial:

Handling Remote Data with HTTPClient and JSON >

Say I created that database. Say I then created a .js file for Muhammad Ali. When someone taps Muhammad Ali's name, I want him to go to my .js page about Muhammad Ali.

— answered 9 months ago by David Rempel
answer permalink
3 Comments
  • You shouldnt make a file for each entry. Just make one generica "details.js" page, and then pass the info to it. Maybe send the database id, and then in the details, make a db call to populate.

    — commented 9 months ago by Josh Lewis

  • This is why I need a tutorial. I understood almost none of that.

    — commented 9 months ago by David Rempel

  • Correction, I understood some of it. Making a large details.js sounds easy enough, but is there some kind of trigger inside the JSON file that I should make to communicate with the app, or should I load all of the event triggers separately? Really I want to know how to load so much as one page from a JSON, I'll figure out how to do multiple from there.

    — commented 9 months ago by David Rempel

Your Answer

Think you can help? Login to answer this question!