Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

bootstrap-ajax json.html response format

Posted on 2012-12-31
2
Medium Priority
?
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

715 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