REST Data Source Page Load Event

  • 1
  • Question
  • Updated 2 years ago
  • (Edited)
https://community.skuid.com/skuid/topics/update-page-load-snippet

I checked the previous support question that were answered including the above.

I would like to enable some UI only checkboxes upon page load from a REST data source.
I understand the Jquery page load event and can tinker with the HTML/XML. But I would prefer to use SKUID snippet like this:

 (function(skuid) {
$('.nx-page').one('pageload',function(){   
alert("Page Loaded"); })

But don't know where to call this snippet.

Any suggestions?
Photo of Murthy Gandikota

Murthy Gandikota

  • 200 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Murthy Gandikota

Murthy Gandikota

  • 200 Points 100 badge 2x thumb
It seems Javascript->Resource Location ->Inline (not snippet)  will apply the javascript upon page load. But this won't run when the pagination is used. For example, I have 100 rows or 10 pages of data. When viewing the first page the inline javacode is called. When next page is clicked, the inline javascript is not run. It seems the only way to get it to work is to make the table component show all the rows.

Any suggestions?