Atozed Forums

Full Version: local render files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

My web server is installed on a Robot which for security reasons cannot be connected to the web.
I used the “MultiSessionssNoCookie” example to display a data grid:
With web access

  /// <summary>
  /// Add the files for the grid
  /// </summary>
PageContext.AddLinkFile('https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css');
PageContext.AddScriptFile('https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js');
PageContext.AddToInitProc('$("#tbl1").DataTable();');

It works perfectly.

Locally, with files in:
/bin/wwwroot/css
/bin/wwwroot/js
  PageContext.AddLinkFile('/css/jquery.dataTable.min.css');
  PageContext.AddScriptFile('/js/jquery.dataTables.min.js');
  PageContext.AddToInitProc('$("#tbl1").DataTable();');
I have the following error
"class EIWinvalideRessourceException IW_JS_jquery.dataTables.min not found"

Thanks for your help
Alain[attachment=530]
I made a mistake in the file name
it works correctly Wink


  /// <summary>
  ///  Grid Setup
  /// </summary>
  PageContext.AddLinkFile('css/jquery.dataTables.min.css');
  PageContext.AddScriptFile('js/jquery.dataTables.min.js');


Bonne journée