server side processing and IE trusted sites settings, javascript functions is not working.
server side processing and IE trusted sites settings, javascript functions is not working.
Hi Allan
I'm using the following settings for IE.
1. Configure the site as trusted site.(allow scripting only in trusted sites)
2. increase the security settings for "Internet settings" such that ( Scripting --> Active scripting is disabled).
3. Use server side processing in Datatable.
4. The JSON returned from the server side scripting is changed using the "fnRender" to return Ahref which has embedded javascript in it.
This works fine in Firefox but not in any IE using trusted site configuration and disabling active script for internet zone.
All the inbuilt datatable functions such as sorting, filtering etc works but not the functions in the rendered html rows and columns.
Any help will be greatly appreciated.
example code.
"[code]
$(document).ready(function() {
var summaryTbl = jQuery('#example').dataTable(
{ "bAutoWidth": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
//"sDom": '<"top"i>rt<"bottom"ip>',
"bJQueryUI":true,
"sAjaxSource": "datatable/server_processing.jsp",
"aaSorting": [[ 1, "asc" ]],
"aoColumns": [
{ "sName": "renderingEngine",
"sType":"string",
"fnRender": function(obj) {
var engineName = obj.aData[ obj.iDataColumn ];
var sReturn = ""+engineName+"";
return sReturn;
}
} ,
{ "sName": "browser",
"bSortable": false,
"fnRender": function(obj) {
var browserId = obj.aData[ obj.iDataColumn ];
var sReturn = ""+
"";
return sReturn;
}
},
{
"sName": "platform",
"bSortable": false
},
{
"sName": "engineVersion",
"sType":"numeric",
"fnRender": function(obj) {
var engineVersion = obj.aData[ obj.iDataColumn ];
var sReturn = "" +engineVersion+""
return sReturn;
}
},
{ "sName": "CssSupport"}
],
"oLanguage": { "sSearch": "Search all columns:" }
});
});
function getRenderingEngInfo( engineName)
{
alert(" the engine name is " + engineName );
}
function getBrowserInfo( browser)
{
alert(" the browser name is " + browser );
}
[/code]"
I'm using the following settings for IE.
1. Configure the site as trusted site.(allow scripting only in trusted sites)
2. increase the security settings for "Internet settings" such that ( Scripting --> Active scripting is disabled).
3. Use server side processing in Datatable.
4. The JSON returned from the server side scripting is changed using the "fnRender" to return Ahref which has embedded javascript in it.
This works fine in Firefox but not in any IE using trusted site configuration and disabling active script for internet zone.
All the inbuilt datatable functions such as sorting, filtering etc works but not the functions in the rendered html rows and columns.
Any help will be greatly appreciated.
example code.
"[code]
$(document).ready(function() {
var summaryTbl = jQuery('#example').dataTable(
{ "bAutoWidth": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
//"sDom": '<"top"i>rt<"bottom"ip>',
"bJQueryUI":true,
"sAjaxSource": "datatable/server_processing.jsp",
"aaSorting": [[ 1, "asc" ]],
"aoColumns": [
{ "sName": "renderingEngine",
"sType":"string",
"fnRender": function(obj) {
var engineName = obj.aData[ obj.iDataColumn ];
var sReturn = ""+engineName+"";
return sReturn;
}
} ,
{ "sName": "browser",
"bSortable": false,
"fnRender": function(obj) {
var browserId = obj.aData[ obj.iDataColumn ];
var sReturn = ""+
"";
return sReturn;
}
},
{
"sName": "platform",
"bSortable": false
},
{
"sName": "engineVersion",
"sType":"numeric",
"fnRender": function(obj) {
var engineVersion = obj.aData[ obj.iDataColumn ];
var sReturn = "" +engineVersion+""
return sReturn;
}
},
{ "sName": "CssSupport"}
],
"oLanguage": { "sSearch": "Search all columns:" }
});
});
function getRenderingEngInfo( engineName)
{
alert(" the engine name is " + engineName );
}
function getBrowserInfo( browser)
{
alert(" the browser name is " + browser );
}
[/code]"
This discussion has been closed.