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

EddieEddie Member
edited July 2019 in Questions
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);



Comments

  • Moshe KarmelMoshe Karmel Member
    edited December 2014
    Create a snippet of type "Inline", it defaults to the correct setup for running a page load snippet.
  • EddieEddie Member
    edited July 2019
    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

  • edited December 2016
    you have to choose the "inline" option (not "inline (snippet)")
    image
    and:
    (function(skuid){       var $ = skuid.$;
    $(function(){
       alert('test');
    });
    })(skuid);
  • EddieEddie Member
    edited December 2014
    Thanks Moshe that worked a treat
Sign In or Register to comment.