Search
18435 results 2821-2830
Forum
- 4th Nov 2012Some help please with Ajax sourceHi - thanks for posting back, and for the railscasts link - I hadn't seen that one before :-). Good to hear you got it sorted. Its worth pointing out that DataTables can consume data from just about any JSON format, as described in this blog post: http://datatables.net/blog/Extended_data_source_options_with_DataTables Allan
- 16th Oct 2012Datatable updating through Ajaxthere was a problem with the routings, thanks!
- 2nd Oct 2012Bug in 1.9.4 with AJAX data source?q
- 13th Sep 2012bind rows on ajax reloadThis would probably work as well: [code] $("#alltickets input[type=checkbox]").click(function() { allTable.fnReloadAjax('get_tickets', createClickableRowsAllTickets); }); [/code] i.e. passing the createClickableRowsAllTickets function, rather than the result of calling it. Good to hear you got it working. Allan
- 10th Sep 2012Expanded rows after ajax refreshWas a tickle to fast stating that the discussion can be closed. I now obviously run into the prob that the Open image is still shown and not the closed one. How do I now get to a level in the row so that I can change the picture similar to: [code] this.src = "images/details_close.png"; [/code] I tried nTr.cells[0] and then change the value but I guess that is not the correct approach as it didn't work Cheers D
- 6th Jul 2012can we pass parameter in server side pagination in ajax callk I got it thanks.
- 12th Jun 2012Using server side ajax request and having trouble getting aoColumnDefs to workI misspelled aoColumnDefs as aoColumnsDefs (I added an "s") Oops!
- 1st Jun 2012ajax row update with images in rowIs there a way to reload the data into the table and only update the fields of each row that are actually different? Yes - you would need to use fnUpdate and fnGetData and check the current value, then update the data if needed. Other options include making sure that the browser is caching the images correctly and thus doesn't need to reload them form the server, or using sprites so its already in memory. Allan
- 17th May 2012Multiple Tables on a page with Serverside ajax and show/hide extrasany ideas?
- 16th May 2012reloading ajax table after editIs there available any documentation for new DTEditor() that DTField array options? Those options aren't actually documented on the web-site yet - I want to add an ASP server-side version first, and then provide documentation in a way that will be useful for both of them. However, they are documented in the source files if you have a look at them. In particular, if you want to do custom validation have a look at the DTValidate class - it has functions in it which can be used to do input validation (it actually has an IP address option already - DTValidate::ip. These functions can then be used with the 'validator' option of the DTField class - for example: [code] new DTField( array( "name" => "ip", "dbField" => "ip", "validator" => "DTValidate::ip" ) ); [/code] One of the things I often do, if I don't directly want to add another static function to the validation class is just use a closure function for the "validator" in DTField: [code] new DTField( array( "name" => "ip", "dbField" => "ip", "validator" => function ( $val, $data, $field ) { return true; // or false depending on logic } ) ); [/code] That's useful for one off validation functions, but of course, adding functions to the DTValidate class is good for code reuse :-) Regards, Allan