Close

Results 1 to 2 of 2

Thread: HTML Help

  1. #1
    DF VIP Member TotallyRandom's Avatar
    Join Date
    Apr 2007
    Location
    Scotland
    Posts
    1,915
    Thanks
    177
    Thanked:        84
    Karma Level
    370

    Default HTML Help

    Hey all got a bit of a Idea at work would love a wee bit of help with.

    at work we use VoIP phones

    there is a central text file that updates every 5 seconds that is stored on a server
    that shows each every one that is logged in and what they are doing i.e on a call , on break.

    I was looking to bash up a wee HTML file that i could set to refresh every 5 secs that reads this text document so i can quickly see who is doing what.

    here is example of what i want to read

    Login ID State AUX Reason Time Login ID Direction
    123 AVAILABLE 0 1053 TotallyRandom IN
    321 AUX 9 952 Jimmy OUT

    How do i set a HTML to read this Text document to pull only the information i need ?

  2. #2
    DF VIP Member BBK's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    12,422
    Thanks
    234
    Thanked:        128
    Karma Level
    1083

    Default Re: HTML Help

    If you only have HTML available then I would use javascript, there's an activex object that allows you to read a file, though I've never used this. The trouble is it sounds like what you want to do is something that would usually need to be done server side, and it would be a piece of piss to do via php or .net.

    A javascript example would be (and this is totally googled, I take no credit):

    Code:
    <script type="text/javascript">
    var activeXO = new ActiveXObject("Scripting.FileSystemObject");
    var f = activeXO.OpenTextFile("c:/testing123.txt", 1);
    alert(f.ReadAll());
    </script>
    If you were to use php there's a whole series of commands for controlling files.

Similar Threads

  1. HTML for MAKE HOMEPAGE button
    By hitmandk1985 in forum Website Coding & Graphics
    Replies: 1
    Last Post: 26th May 2003, 01:36 PM
  2. html
    By hitmandk1985 in forum Website Coding & Graphics
    Replies: 0
    Last Post: 25th May 2003, 11:52 AM
  3. (X)HTML standards
    By graham.edmon in forum Website Coding & Graphics
    Replies: 0
    Last Post: 1st February 2003, 02:20 AM
  4. Palm os + html editor
    By digidump in forum PC Software
    Replies: 0
    Last Post: 20th November 2002, 02:15 PM
  5. html question
    By p i m p in forum The Dog and Duck
    Replies: 27
    Last Post: 17th October 2002, 08:52 AM

Social Networking Bookmarks

Posting Permissions

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