Search
18461 results 2831-2840
Forum
- 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
- 15th May 2012How can customize the Processing dialog that is shown when AJAX source is usedAwesome plug-in Allan. Thanks for the hard work here. Just want to add a little note here regarding processing message, even if this tread is a bit old. This may help other in the future. I have found that we can put html code in the sProcessing string. With Firebug just check the css format to overwrite what is not necessary and store your html processing message in oLanguage table. Here is my example [code]"sProcessing": " "[/code] ajax-loader.gif is my waiting message aka company logo + progress bar and myWaitingMessage is a css definition to put the image at the correct place. and it works...
- 10th May 2012Using dataTables in Ajax JQuery TabsAllan, I'm sorry for asking so much of you - your tool is truly wonderful, unfortunately, I am just a designer and no programmer, so I am needing more than most in getting this to work to my needs. Please look at the example in the link (under the LMH tab) and see the issues I am having, such as the spacing and the other Datatables not working properly like the first one is. Thank you in advance. http://michael.benefitharbor.com/dev/Employer/JqueryScrollingTabs.htm
- 10th May 2012[Solved] Static Number Column with Ajax Source.Ended up fixing this a different way.
- 28th Mar 2012AJAX sort descending on loadHi Allan. What am I looking for in Firebug specifically?
- 28th Mar 2012reload ajax sourceHi John, To remove the "Processing..." display, just remove, or set to false the bProcessing in your init object. Allan
- 16th Mar 2012Using fnRender with ajax source datatableGreat thank you very much! I really think that the examples on fnRender reference should be updated ;) Regards, Jimmy Rivera
- 26th Feb 2012Cannot custom sort with Ajax DataChange "sSortDataType" for your "orderstatus" to "sType". Its a bit confusing I know, but sSortDataType is not actually what you where here. If that doesn't solve it, could you run your table through the DataTables debugger ( http://debug.datatables.net ) and let me know what the debug code is. Allan
- 16th Feb 2012DataTables AJAX source example - array of objects as a data source is not fully complete?Sorry! Problem solved, I was using an older version of datatables that did not allow for an array of objects to be passed as its datasource
- 12th Jan 2012ajax data source with objects and Java, Jersey, JAXBHere is my JSON. This leaves the table stuck at "Processing. {"sEcho":0,"iTotalRecords":"0","iTotalDisplayRecords":"0","aaData":[]}. If I modify it to this: {"sEcho":0,"iTotalRecords":"0","iTotalDisplayRecords":"0","aaData":[{}]} The table columns are defined using mDataProp: fieldName, so the table is expecting objects, so it will try to parse the empty list of objects, complains that it couldn't find one of the named columns, then adds an empty row.