Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

bootstrap-ajax json.html response format

Posted on 2012-12-31
2
Medium Priority
?
819 Views
Last Modified: 2012-12-31
I'm reading eldarion's bootstrap-ajax, and it talks about the json html return to get back that feeds the ajax response:

https://github.com/eldarion/bootstrap-ajax


does anyone have an example of the format for the json.html?  I'm a bit confused on what it's supposed to look like.

Thanks.
0
Comment
Question by:Evan Cutler
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 38733929
just : { "html":"yourhtml" }
example for adding a new task here : http://uk013.o1.gondor.io/ 
{
    "html": "<tr class=\"\">\n    <td>\n        <div class=\"btn-toolbar\">\n            <div class=\"btn-group\">\n                \n                    <a href=\"/tasks/5699/done/\" class=\"btn ajax\" data-method=\"post\" data-refresh=\"#done-count\" data-replace-closest=\"tr\"><i class=\"icon-ok\"></i></a>\n                \n                <a href=\"/tasks/5699/delete/\" class=\"btn ajax\" data-method=\"post\" data-replace-closest=\"tr\" data-refresh=\"#done-count\"><i class=\"icon-trash\"></i></a>\n            </div>\n        </div>\n    </td>\n    <td>\n        <div class=\"task-label\">\n            test\n        </div>\n    </td>\n</tr>"
}

Open in new window

0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 38733967
Thanks much.
A picture is worth a 1000 words
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question