...

View Full Version : Detection and Display in HTML



s3s3
03-17-2012, 01:34 PM
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?

VIPStephan
03-17-2012, 01:36 PM
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.

s3s3
03-17-2012, 02:09 PM
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.

Philip M
03-17-2012, 02:32 PM
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.

siberia-man
03-17-2012, 02:56 PM
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.

s3s3
03-17-2012, 03:46 PM
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.

felgall
03-17-2012, 11:08 PM
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.

s3s3
03-18-2012, 01:14 AM
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 :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum