Announcement

Collapse
No announcement yet.

dynamically updating HTML w/ ip address

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jebus
    replied
    Do a search for Hunters Slideshow.vbs. The Template file will give you the info for updating a page with Replace function. I have included a small script that I use to call this function.
    Then I use a batch file calling WSFTP, in batch mode, in same event as script, to push updated page to isp provided website. Please change it to fit your needs..........................JG
    I'm online for awhile today
    http://www.crpud.net/~jjgrau/
    click on "Garage is ON Line"

    Leave a comment:


  • lhfarm
    replied
    Do a search on Linksys or router reset (I'm at work, so don't have the name in front of me). Someone wrote a script to get an IP from the router, then update a Web page and FTP it. It has all the code to do what you wish to do (at least the page update.

    Barry T

    Leave a comment:


  • Hunter Green
    replied
    There are VBScript file commands that let your scripts open and write to text files. That's how you'd need to proceed for that. You'd use hs.GetIPAddress to get the IP address (though if you ever might have multiple NICs, be careful about getting the right address).

    Though depending on what you're going to do with that file, you might be better of just using an ASP and not creating an actual file.

    Nucleus Home Automation

    Leave a comment:


  • alevey
    Guest replied
    I want to update a web page (locally in a dir). This web page is built to redirect users from a static web page on the internet to my "home" web server which has a dynamic IP.

    Leave a comment:


  • dkindred
    replied
    I'll tell ya where to put it. [img]/infopop/emoticons/icon_wink.gif[/img]

    --David

    Leave a comment:


  • Hunter Green
    replied
    ...but where the tricky bit comes in is, where do you want to put it?

    Nucleus Home Automation

    Leave a comment:


  • alevey
    Guest started a topic dynamically updating HTML w/ ip address

    dynamically updating HTML w/ ip address

    Goal:
    take an <a href="http://127.0.0.1:81" > and replace the 127.0.0.1 portion and detect the "actual" IP address and replace it with that. Basically, dynamically update the HTML page.

    thanks
Working...
X