Dynamically render data without ajax?

Dynamically render data without ajax?

eggmatterseggmatters Posts: 3Questions: 1Answers: 0
edited February 2015 in Free community support

As a rule, I typically seperate ajax requests from the objects they render. I am curious how I can redraw a table with data fetched from an ajax request, and passed in to the table. The following fiddle shows my table implementation, with a function stub defining data passed in, that would otherwise be the result of an ajax call. The ajax call itself is initiated by a click event listener on the Refresh button.

So, I would like to render data from an external source, but internal to the script driving my application

Fiddle: http://jsfiddle.net/eggmatters/brv5za38/
The documentation is not clear how this would be achieved.
Thanks!

In the fiddle, I have added a click event listener which calls a method which adds 2 more rows to the data I want the table to render. The table is wrapped in a class. I would like to be able to have the table render data passed in, not just when initialized.

This discussion has been closed.