Search
18435 results 2761-2770
Forum
- 7th Jan 2016Including html/html-like content in data attribute for child row without AJAXThat does work!
- 6th Jan 2016How to pass or render a html in Ajax call?I have something almost identical, so I think I can help! In the initialization, I use the columns option. If I'm not mistaken, aoColumns is the same thing, using legacy nomenclature. My columns for one of my tables looks like this: "columns": [ {"data": "username", "title": "User Name" }, {"data": "homeDirectory", "sortable": false, "title": "Home Directory"}, {"data": null, "sortable": false, "defaultContent": fcapp.render.tools("user"), "createdCell": function (td, cellData, rowData, row, col) { $(td).addClass('toolcell'); } } } ] So, the first two columns contain data found in the JSON, with the keys "username" and then "homeDirectory". The third column contains action buttons like yours. So the difference with this column is that the data attribute has a null value and defaultContent is populated with markup. The method fcapp.render.tools("user") that I supply to defaultContent is just an HTML concatenator and returns a string of HTML. I also add the class "toolcell" to the entire cell in the createdCell callback so that I can potentially bind a click listener to the whole cell instead of the contents, as well as streamline any CSS that goes into that cell.
- 31st Dec 2015Within Ajax, determine which record is in dialogHi Thanks, that works. Peter
- 26th Dec 2015JSON object as a datasource without AJAXWorking! You're awesome :-)
- 10th Nov 2015Ajax Call not working for URL but works for same TextSorry about the double thread btw :/
- 5th Nov 2015BUG: scroller + state saving + ajaxI'm a bit slow on this one - sorry - however, the good news is that it is fixed in the nightly version of Scroller and should be released as a stable version tomorrow. Allan
- 3rd Oct 2015Qwery Ajax to View Sql server 2008 do not workHow does this relate to DataTables?
- 30th Sep 2015how to get column detected as numeric when using ajax + sort + orthogonal data?Worked like a charm :-) Thank-you for the quick response and help.
- 8th Sep 2015Override default AJAX error behaviorYou are correct - this is a global configuration. At the moment this is really the only way. I wonder if I should make the error event cancellable. That would, at least on initial thought, seem to solve the issue. You would add an event listener and then return false from it. I'm not immediately seeing any downsides... Regards, Allan
- 12th Aug 2015DataTable with live updates via AJAXIll check it out and give it a shot, thanks!