#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    4
    Rep Power
    0

    Dashboard Dashcode Widget Re_Initialise button


    Good Morning

    i am trying to create a button that would reinitialise the widget .
    basically to restart it from from start instead of close / remove and readd.

    is there a way to do it?
    if so what would be the javascript code for that?

    thanks
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,169
    Rep Power
    184
    If your referencing the code; from your previous thread; I would wrap all of that in .ready() API; like so (that way it is accessible beyond the initial page load):
    Code:
    $("document").ready(function(){
     // add your code here
    });

IMN logo majestic logo threadwatch logo seochat tools logo