Generating Dynamic table in jQuery, and on each dynamic row create another dynamic table
Dear Reader,
This is what I am trying.
I will be calling a RESTful web service, and the response will be in jSON. I will be parsing this jSON object to get the key value pairs which will be divided to display in a tabular format like
Key Value
Key Value
Key Value
Till this I am clear on how to do this.
Now how to display this dynamic data in a table using jQuery. I also need to display another table whenever row in a dynamic table is clicked.
Here is how it will work.
1. call webservice
2. get data parsed
3. display dynamic table using data parsed ( colums are fixed but the rows will be on the data we receive)
4. After dynamic table is displayed using parsed data, and if user clicks on any row, I must start from step 1 ( to call a web service, get the data, parse it, and again display dynamically on the same page)
I am pretty new to jQuery and need direction, code or anything helpful from you guys..
I have searched a lot, i found how to display dynamic table but how to jump back to first step mentioned above on click of each row and repeat calling web service, getting data, parsing and again displaying on the same page as a dynamic table.
Any help will be highly appreciated.
Warm Regards,
Akash Nandankar