Skip to main content
Nintex Community Menu Bar
Question

Inline JavaScript on page include isn't working

  • Jul 9, 2024 7:39 PM UTC
  • 4 replies
  • 39 views
  • Translate All

Forum|alt.badge.img+4

I have simple inline JavaScript on my skuid page to remove table component which works fine when I preview this Skuid page. But it does not work when I include this page in other Skuid page via Page include component. Any idea?

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+13

In your Inline JavaScript where it says

skuid.$(function(){

Replace this with

skuid.$(document.body).one(‘pageload’,function(){

Translate

Forum|alt.badge.img+18

Just a suggestion for the Skuid…

This question comes up over and over again. Perhaps there is a place in the documentation for the Page Include component where you could provide a warning for users with inline javascript?

Translate

Forum|alt.badge.img+13

Matt, understood. One way we are going to help eliminate this problem in the future is to change the default Inline JavaScript code to stop using $(function(){ as the default and to use $(document.body).one(‘pageload’,function() as the default. 

Translate

Forum|alt.badge.img+4

worked. Thanks Zach!

Translate