Solved

bootstrap-ajax json.html response format

Posted on 2012-12-31
2
804 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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…
Suggested Courses

623 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