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 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Detection and Display in HTML

    I have a LAN where several boards are connected, each having its own (known) ip adress. I am controlling them through HTML (toggling leds, reading temperature etc). I would also like to add a function which shows which board is connected, so that I don't have to check this manually. How could this be done in HTML?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,927
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    HTML can’t do anything other than giving the content a semantic meaning and structuring it. I suppose all the dynamic functionality is done with JavaScript at least.

  • #3
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the ideea was that I need to see which boards are connected and working correctly in a webpage, not through other external applications like wireshark, is that possible with javascript?

    I'm only interested to know which board is conected at the time of wathcing. I'm not interested in any history. I want to open a webpage and see which board is online. Boards which are connected are constantly sending packets so i just have to somehow identify who sent the packets. And this should be done in a browser.
    Last edited by s3s3; 03-17-2012 at 04:54 PM.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    JavaScript has no capability to access the client's operating system or the Windows registry, or alter the default behaviour of the browser. HTML is a mark-up language and cannot react to anything apart from a web page. You will need to user a server-side language.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    Regular Coder
    Join Date
    Sep 2010
    Location
    Far far away
    Posts
    122
    Thanks
    0
    Thanked 16 Times in 16 Posts
    My five copecks to the topic.

    Yes. JavaScript does not have access to the operating system parameters. HTML is mark-up language, is declarative one serving only to display information structurally.

    But if you develop some kind of standalone application using by HTA (Windows technology of HTNL-applications) or XUL (cross-platform Mozilla's engine for the same purposes) you can achieve this.

    What do you develop or modify? Universal cross-platform application or Windows only application? It is not clear from your question so we can not answer more the qualified.

  • #6
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I want that in my webpage, to have an option to see what ip's are connected to the network and not have to manually check for each Ip to see if it is connected, and to keep it simple let's say windows only app, what approach should I take ? what do I need to do this? I could develop a small app just to cover that extra option I need in my website and include it somehow in the webpage?
    the boards only have a tcp/ip stack, not an operating system on them, I need a simple method to see which of them are online through cgi

    to be more exact:
    I'm only interested to know which board is conected at the time of wathcing. I'm not interested in any history. I want to open a webpage and see which board is online. Boards which are connected are constantly sending packets so i just have to somehow identify who sent the packets. And this should be done in a browser.
    Last edited by s3s3; 03-17-2012 at 04:53 PM.

  • #7
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by s3s3 View Post
    And this should be done in a browser.
    The browser is only going to be able to handle the display part. To handle the rest you'll need to be running something outside the browser that has the ability to gather the information you want and pass it to the browser.

    Probably the simplest way would be to run a local web server somewhere on the network and have a server side script running there that gathers the information.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #8
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any suggestions and/or starting points I should know? what type of local web server would u recommend for someone who just today heard about the notion of server-side scripts?
    As much info as you can offer would be appreciated


  •  

    Posting Permissions

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