Two Part Question on JSON Filtering and JSON remote feed !

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

I have created a TableView that populates from a local JSON file and when you click a table it takes you through to a label that displays other information from the JSON file - This much works - however there is a problem with the filter on the table, if you filter results and then click a tab, the label gets populated with the data from the previously viewed label and not the one corresponding to the table that was clicked. It seems to correct itself after a few goes, but I haven't been able to track down the problem.

The second question I have on the same app is this; I have the exact same JSON feed hosted on my webserver, is there a straight forward way to substitute the local file for a remote feed? I think this may involve parsing and XHR requests, but I haven't been able to figure it out.

Use Case/Project files:

app.js: http://pastie.org/1798311

find.js: http://pastie.org/1798314

data.json: http://pastie.org/1798318

Any Help greatly appreciated - Cheers.

— asked 2 years ago by Terry Harmer
1 Comment
  • Hi, I finally managed to get the live feed working, thanks to the Remote Data wiki page: http://bit.ly/ekdPt4

    However I am still having the same problem with the filter, I am thinking I may need to use some sort of "refresh on reload" function ?

    — commented 2 years ago by Terry Harmer

Your Answer

Think you can help? Login to answer this question!