OK, thanks for clearing that up for me Peter. I'm looking at docs for the XMLHttpRequest object right now and it does look promising. Thanks for pointing me in the right direction.
-Pete On 1/25/07, Peter Ritchie < [EMAIL PROTECTED]> wrote:
Yes, that's wrong. You can use the XMLHttpRequest's open method to open a connection to a URL (including port #) and wait for a response. The default is to do it "asynchronously" (it's asynchronous to the client code) and process state change via the onreadstatechange event [1]. See http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/methods/open.asp for the documentation of the open method. see http://support.microsoft.com/kb/290591 for example of client accessing classic ASP server (with implementation) with XmlHTTPRequest. See http://support.microsoft.com/kb/893659 for example of client accessing ASP.NET Web Service with XmlHTTPRequest. [1] http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/properties/onreadystatechange_1.asp -- Peter On Thu, 25 Jan 2007 12:58:38 -0500, Peter Vertes <[EMAIL PROTECTED]> wrote: >Thanks for the quick response Peter. What I meant by the line "...with AJAX >you can't have an open socket" is that I don't think it is possible for me >to connect to a remote machine on a specific port and wait for updates on >that port to come. Am I wrong in assuming this ? > >-Pete > >P.S.: Thanks for the XMLHttpRequest article; I'll take a look at it... > >On 1/25/07, Peter Ritchie < >[EMAIL PROTECTED]> wrote: >> >> What do you mean by "...with AJAX you can't have an open socket"? Without >> opening a socket AJAX can't do much. >> >> At the lowest level AJAX uses an XMLHttpRequest object (in IE6, this *is* >> technically using an ActiveX object) in the client-side Javascript to open >> a connection to a server to get an XML response. The client-side then >> processes that XML to update objects in the DOM. see >> http://www.xml.com/pub/a/2005/02/09/xml-http-request.html for an overview >> of the low-level process. >> >> Atlas for ASP.NET wraps all this up in their interface and utility >> classes/js files. >> >> So far, you haven't described anything that you couldn't do with AJAX. >> Keep in mind the server doesn't respond with HTML with an AJAX request... >> >> On Thu, 25 Jan 2007 12:14:09 -0500, Peter Vertes <[EMAIL PROTECTED]> >> wrote: >> >> > I've been presented with an interesting project but after doing some >> >research into it I believe it is impossible to do with the requirements >> >given by the client. The client would like to stream data to a webpage >> and >> >the webpage should display the updates delivered by the data as close to >> >real-time as possible. For instance imagine a DataGrid that has 10 >> ticker >> >symbols in it. Whenever the price changes for a symbol the backend >> pushes >> >the changed prices and symbols into a DataSet and the DataGrid (which is >> >bound to the DataSet) shows the updated prices. The requirements of the >> >client are that the users should not have to download/install anything >> onto >> >their computers and no ports should be needed to be opened on the >> firewall >> >besides ports 80. I've been doing some research into this but I'm not >> >getting too far. I've tried opening a socket from ASP.NET but I can't >> get >> >updates without a refresh to the page. I've looked into an AJAX solution >> >but with AJAX you can't have an open socket. To be honest I think the >> only >> >way this could be possibly done is either via a Java applet or with some >> >ActiveX component (although I'd prefer Java over ActiveX programming). >> >Before I told the client that besides a Java Applet solution the project >> >could not be done I thought I'd check with the list and ask for opinions >> or >> >other words of wisdom. Am I right by thinking this can only be done with >> a >> >Java applet or is there another solution out there that I haven't >> explored >> >? Better yet; has anyone done anything like this before ? Thanks for >> all >> >ideas/comments in advance... >> >> =================================== >> This list is hosted by DevelopMentor(r) http://www.develop.com >> >> View archives and manage your subscription(s) at >> http://discuss.develop.com >> > >=================================== >This list is hosted by DevelopMentor(r) http://www.develop.com > >View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com