Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
local render files
#1
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    


Attached Files Thumbnail(s)
   
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)