Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Updating External Variables

    I need a little help, I am still farily new to javascript and am having trouble figuring out a way to update an external variable.

    I have a home automation software package with a built-in web server. On a html page I can view any variable from the automation software using {{variablename}}. Only problem is that if the variable is changed it will not update on the web page unless the page is refreshed. I need help with a script that will constantly update all variables contained in a page without having to reload the page.

    Any suggestions??

  • #2
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Google around AJAX... except there really is no script for it and will have to be written into the code yourself.
    Note: I do not test code. I just write it off the top of my head. There might be bugs in it! But if any thing I gave you the overall theory of what you need to accomplish. Also there are plenty of other ways to accomplish this same thing. I just gave one example of it. Other ways might be faster and more efficient.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •