Refreshing Gadget Content problem

EDIT: I have the gadget refreshing now, but how do I make it refresh only certain elements I'd be great to have just the SSID refresh when needed, or the Signal Strength.



Answer this question

Refreshing Gadget Content problem

  • Helio D

    How are you currently refreshing it

    Setup a refresh function, running on a timer, that only updates the elements you want to update. eg

    window.setInterval(myRefreshFunction, 5000); //5 secs
    ...
    function myRefreshFunction() {
    // update the elements
    }

  • Mannequin666

    window.setInterval(myRefreshFunction, 5000); //5 secs
    ...
    function myRefreshFunction() {
    tester.innerText = "...";
    }

  • NeederOfVBHelp

    That is the way the gadget currently refreshes, but how do I make it refresh only certain elements Example:

    <span id="tester">[javascript innertext that changes]</span>

    What would you put in the myRefreshFunction() for code =P That's what I don't know.


  • Refreshing Gadget Content problem