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 2 1409
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******@newsg roup.nospam> wrote in message
news:O2******** ******@TK2MSFTN GP15.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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 just a basic preview with the actual XHTML code in place.
I've managed to conform to known standards (valid XHTML and CSS code), but
it look slightly odd in Internet Explorer 6.0 (latest with all updates). It
looks fine in Opera 7.54 (my main...
|
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 different machine with Internet connection and
Norton Security Family Edition 2001.
|
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 poor man's
DBMS, a broken email server and various other /application/ servers to
try and crack the Internet and IS markets.
In the case where they didn't spend their own money to get companies to
|
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 system:
I'm not going to divulge the exact aims of the application but the purpose
of it is to allow multiple client applications to retrieve data from a
database (on a db server) and feed this data into another Windows
|
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 Stroustrup (he
actually asked me for help to design C++ ; still unsure why he didn't
give me enought credit - probably a poor design choice to have Russian
name near c++),Branimir Maksimovic,Vladimir Kouznetsov . Me and Victor
went to the same...
| |
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 2000
non-comment lines written by a "C" expert:
if( elem->tag == SOME_MANIFEST_CONSTANT ) /* Alt */
{
char *tempValue = malloc(32);
strcpy(tempValue, elem->value);
while( tempValue == '0' )
|
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," the "Allow" boxes
for , , and are checked
- BUT they are greyed out - I cannot clear them - and nothing else
is checked.
Now that I look further, the same thing is the case for every folder
|
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 assuming ) if I create an EXE and I load
an MDB file, I can
see if certain fields are there, and if not add them.
Kinda like an Update that is imbeded into the EXE, so you dont always have
to create an Install shield.
|
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. As such our application takes good advantage of multiple processors and we can often scale through simply adding processing power to a server.
I was hoping for some experiences that some of you on the list may have had in dealing with Python in a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |