Skip to main content
Nintex Community Menu Bar
Question

Create Javascript alert when the page has fully loaded using: $(document).ready(function() {

  • July 9, 2024
  • 4 replies
  • 18 views

Forum|alt.badge.img+4

How can I create a javascript alert from an inline snippet when a Skuid page has fully loaded, something like the below:

(function(skuid){

var $ = skuid.$;

$(document).ready(function() {

        $(function(){          

                alert(‘test’);     

});

})(skuid);





4 replies

Forum|alt.badge.img+9

Create a snippet of type “Inline”, it defaults to the correct setup for running a page load snippet.


Forum|alt.badge.img+4
  • Author
  • July 9, 2024

Hi Moshe I created a snippet of type inline and have this:

var params = arguments[0],
    $ = skuid.$;
   
    alert(‘test’);

and when I load the page, the javascript alert doesn’t show, any thoughts


Forum|alt.badge.img+7

you have to choose the “inline” option (not “inline (snippet)”)
d88a425c4e5374a43f662beedf4b1507e483ea2e.png
and:

(function(skuid){ var $ = skuid.$;<br> $(function(){<br> &nbsp; &nbsp;alert('test');<br> });<br>})(skuid);

Forum|alt.badge.img+4
  • Author
  • July 9, 2024

Thanks Moshe that worked a treat