Search
8344 results 281-290
Forum
- 22nd Jan 2012Shorten Columns via php-substr in Server-Side PHP Script?No idea? Anybody?
- 4th Oct 2011Hide ajax server-side php script in sourcecode - Security Issueshort of encoding the data and having it decode in javascript, no. and anyone running your page will have access to the decoding key and/or algorithm, in which case it's not really secure either.
- 9th Aug 2011ColVis script error for column exclusion featureI also had the same problem, Firebug keep throwing this error: "this.dom.buttons[i] is null" -> this.dom.buttons[i].style.width = "auto"; So I added null checks when resizing the buttons and it solved the problem. I have a recent version of ColVis, but I'm gonna guess that there's a new one out already that has this fixed. Anyway, Me and my colleagues love the extra ColVis. I've got tables with at least 40 columns and sometimes we don't want to look at all of them! Simple, and effective.
- 19th Oct 2010Semi threading datatables to stop script duration warnings when server side code is not an optionFYI: I made a few little changes to get this to work (I'm using "bUsePassedData" to provide the matrix to datatables). I made similar changes to _fnDraw; That however tied in with more code and led to unwanted behaviors (e.g. the processing icon need to be driven asynchronously too) that I didn't feel like fixing given that the code below pretty much did what I needed. original code starting line 6665 [code] for ( i=0 ; i<oInit.aaData.length ; i++ ) { _fnAddData( oSettings, oInit.aaData[ i ] ); } [/code] updated code [code] async_load = 1; // JJF edit to allow loading icon when large table is initialized var step_size = 10; i=0; setTimeout(function() { for ( var step=i+step_size; i < step && i<oInit.aaData.length; i++ ) { _fnAddData( oSettings, oInit.aaData[ i ] ); } if (i<oInit.aaData.length) { setTimeout(arguments.callee,0); // not finished yet } else { /* Initialisation complete - table can be drawn */ oSettings.bInitialised = true; /* Copy the data index array */ oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); /* Initialisation complete - table can be drawn */ oSettings.bInitialised = true; /* Check if we need to initialise the table (it might not have been handed off to the * language processor) */ if ( bInitHandedOff === false ) { _fnInitalise( oSettings ); } } },0); [/code]
- 25th Aug 2010A href link using new server-side script for PHP and MySQLThank you, that worked. Not sure why I didn't try that before.
- 20th Jan 2010v1.5.6 add parameter in json string for server side scriptHi paky, Have a look at the example code in the link I posted (or the jQuery documentation): you need a name/value pair: aoData.push( { "name": "more_data", "value": "my_value" } );. So in this case you would need to add year, and month. It's counter intuitive and annoying, but it's just how jQuery works. Allan
- 30th Nov 2016how to search array list of string on perticular column of the java script datatable?HI Team, I have a array list of string and i am performing search operation on single column of datatable. my code is like. rows_selected =["ABest", "ACarpenter", "adenney", "AFletcher"]; microChartTable.columns(0).search(rows_selected).draw(); the above code is work fine but its search for single string.I have seen the documentation of data table search but i didnt find any methods/parameters for my requerment. kindly give some reference or alternative of above code. thank you parag pannase
- 17th Jul 2015How to add java script confirm button for pagination ?I am using datatable and when user click on another page, I need to provide user, a confirm button. If user click on cancel, he should stay on same page else if he click ok, he should be navigated to next page. $('#example').on( 'page.dt', function (e, settings) { var status = confirm("Do you want to proceed ?") if (status == true) { //continue to clicked page } else { // stay on same page } } );
- 25th Feb 2015Is it possible to user script methods as an ajax url ?Hi, I want to use ajax to load data into my dataTable but I want to use it in the following way: from javascript: url: "CarService.aspx/GetAllCars", from server (C#): [WebMethod()] [ScriptMethod()] public static void Test() { }
- 4th Jul 2013Server Side Processing Calls Script 4/5 TimesI'm running server side scripts to retrieve data, I'm