Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datatables question
#1
Hello.  I have rawtext (IWLabel.Caption) for my json data.  

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


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

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


How?
...
Reply
#2
Any valid JavaScript should execute using this method. (or WebApplication.ExecuteJS() which will do basically the same, but with a much shorter syntax).

Did you try it that way? Did it work? If not what are the errors showing in the browser console?
Reply
#3
If you have a faulty demo that I can build and run, please feel free to send the *source code* to alexandre at atozed dot com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)