Atozed Forums
Datatables with Ajax - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Datatables with Ajax (/thread-2841.html)



Datatables with Ajax - matija - 08-16-2022

I have rawtext (IWLabel.Caption) for my json data.  

'{ "data": [ .... ] }'

I want this rawtext include in define of datatables (HTML template).

WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('$(''#examples'').DataTable( {  "ajax": ' + rawtext + ',} );'); 

How? Recipe?


RE: Datatables with Ajax - Alexandre Machado - 08-22-2022

do you have the datatable in your page and wants just to update its data or do you want to render a completely new DataTable on that page? They require different approaches....