473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Your opinions please. RE Internet Application

Hi all,

I am new to web development and have been asked if the following is
possible, I was hoping some people with more experience than me could
confirm if this is possible and what technologies would be required to
realise it, so that I can then investigate how to do it.

I have a "black box" of electronics with an ADSL connection, the "black box"
has 4 buttons and 4 lights on it.

Basically all I want to do is to be able to view the status of the "black
boxes" buttons and lights in real time (say a 20 - 40 second delay would be
acceptable). I would also need to be able to switch the lights on or off. I
need to do this using only Internet Explorer, a small (activex ???) download
the first time this was used would be acceptable, but if it can be avoided
that would be better, also I would PREFER (but this is not a requirement) to
use a technology that would allow as many browsers (ie netscape, mozilla
etc) as possible to use this service.

The "black box" does not have the ability to host a server on it so it could
only send/receive http requests, therefore I assume that I need a seperate
web server? A database (SQL Server 2000) would be at the webserver that
would log button presses, light activations, connections to the web server
etc. again these would be viewable by IE, this can be a html web page with
data dynamically embedded ito it before it is sent to IE, so not a problem
there I think.

The problem is that the web pages are static, so if a button was pressed the
whole page that was being viewed in IE would have to be refreshed and the
new data displayed, this is unacceptable for the application unfortunately,
I need to update a single part of the web page, this could be thought of as
a label control on a standard windows form, when you change the text on it
the whole form is not refreshed just the labels text changes.

example:

User1 connects to web server with IE and logs in and selects view status of
device and is shown the current status of black box.

User2 presses button 1 on black box.

User1 sees only the label referring to button 1 change to "button
pressed".(no refresh)

User1 clicks activate light 1 button on page in IE.

User2 sees light 1 activiate on the black box.

User1 now sees the light 1 label change to "lit".

Any thoughts or recomendations on this subject would be greatly appreciated,
we have an MSDN Universal subscription and would like to use the
technologies that are available within that scope.

Many thanks

Joe
Nov 18 '05 #1
2 1395
Hi Joe,

The easiest way is to create your web page and then have it use the
webservice.htc to hit a web service on the server. Have that web service
interact with your black box and return results. The webservice.htc only
works with IE. I've seen messages that say FireFox can call a web service
but have yet to see any code of it doing so. It works great with XP SP2 so
you don't have to worry about that. Another way of doing this would be
using this:

http://www.codeproject.com/aspnet/Al...asp#xx848063xx

It is pretty cool and works well, it also works with most browsers. The
entire page won't refresh but whenever it makes a request you will see the
request flash at the bottom left corner of the browser. The drawback to
this, is that you will need to put functions on every ASPX page for which
you want the functionality. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"JoeBlack" <Jo******@newsgroup.nospam> wrote in message
news:O2**************@TK2MSFTNGP15.phx.gbl...
Hi all,

I am new to web development and have been asked if the following is
possible, I was hoping some people with more experience than me could
confirm if this is possible and what technologies would be required to
realise it, so that I can then investigate how to do it.

I have a "black box" of electronics with an ADSL connection, the "black box" has 4 buttons and 4 lights on it.

Basically all I want to do is to be able to view the status of the "black
boxes" buttons and lights in real time (say a 20 - 40 second delay would be acceptable). I would also need to be able to switch the lights on or off. I need to do this using only Internet Explorer, a small (activex ???) download the first time this was used would be acceptable, but if it can be avoided
that would be better, also I would PREFER (but this is not a requirement) to use a technology that would allow as many browsers (ie netscape, mozilla
etc) as possible to use this service.

The "black box" does not have the ability to host a server on it so it could only send/receive http requests, therefore I assume that I need a seperate
web server? A database (SQL Server 2000) would be at the webserver that
would log button presses, light activations, connections to the web server
etc. again these would be viewable by IE, this can be a html web page with
data dynamically embedded ito it before it is sent to IE, so not a problem
there I think.

The problem is that the web pages are static, so if a button was pressed the whole page that was being viewed in IE would have to be refreshed and the
new data displayed, this is unacceptable for the application unfortunately, I need to update a single part of the web page, this could be thought of as a label control on a standard windows form, when you change the text on it
the whole form is not refreshed just the labels text changes.

example:

User1 connects to web server with IE and logs in and selects view status of device and is shown the current status of black box.

User2 presses button 1 on black box.

User1 sees only the label referring to button 1 change to "button
pressed".(no refresh)

User1 clicks activate light 1 button on page in IE.

User2 sees light 1 activiate on the black box.

User1 now sees the light 1 label change to "lit".

Any thoughts or recomendations on this subject would be greatly appreciated, we have an MSDN Universal subscription and would like to use the
technologies that are available within that scope.

Many thanks

Joe

Nov 18 '05 #2
Hi Ken,

Thanks for the information, I think the web services is the way to go
for what I want to achieve, many thanks for the quick response.

Joe

Ken Dopierala Jr. wrote:
Hi Joe,

The easiest way is to create your web page and then have it use the
webservice.htc to hit a web service on the server. Have that web service
interact with your black box and return results. The webservice.htc only
works with IE. I've seen messages that say FireFox can call a web service
but have yet to see any code of it doing so. It works great with XP SP2 so
you don't have to worry about that. Another way of doing this would be
using this:

http://www.codeproject.com/aspnet/Al...asp#xx848063xx

It is pretty cool and works well, it also works with most browsers. The
entire page won't refresh but whenever it makes a request you will see the
request flash at the bottom left corner of the browser. The drawback to
this, is that you will need to put functions on every ASPX page for which
you want the functionality. Good luck! Ken.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kim André Akerř | last post by:
I'm currently revamping my personal website, and I need some opinions: http://www.neonnero.com/nn2preview/ None of the links on the right-hand navigation menu work yet, so don't bother. This is...
4
by: Tat | last post by:
Hello, I have a weird show stopper here. I created a Windows application (.NET 1.1). My dev. machine is not hooked up to the Internet, neither it has firewall. I installed the app on a...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
43
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on...
3
by: Andrej Hristoliubov | last post by:
I am the best c++ programmer in the whole wide world. Trust ME! My reference is Victor Bazarov,Valentin Samko,Alf P.Steinbach( Me and Alf actually intern together at Microsoft), and Bjarne...
7
by: Emmet Caulfield | last post by:
In the course of examining the code for an Internet-connected authentication server, I came across the following code (twice in one function with different constants in the "if") in a file of some...
3
by: wASP | last post by:
Hi, Apparently, I have a permissions issue. I am logged in as administrator, and my C: drive is accessible. Under the "Security" tab for Properties for Inetpub, for my "Internet Guest Account,"...
13
by: Miro | last post by:
Ok I have been slowely - and ever so slowely teaching myself VB.net Currently I have created an MDB file by code, and added fields to the MDB file by code. I like this solution because, ( im...
2
by: Jay Loden | last post by:
All, In studying Python, I have predictably run across quite a bit of talk about the GIL and threading in Python. As my day job, I work with a (mostly Java) application that is heavily threaded....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.