473,395 Members | 1,462 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,395 software developers and data experts.

Pushing data to web page

Hi,
i have a server that recieves data often from a third party data provider
often. I would like to PUSH this data to the client webpage, WITHOUT having
to force the user to hit refresh or without having to use client side polling
and autorefresh. Once recieved on the client, i can use something like DHTML
to add it to a table.

Any suggestions on how to go about this or what is the best technology to
use for doing this? Any sample applications out there doing this today?

thank you very much.
Nov 19 '05 #1
3 1935
One general approach is to include a hidden IFRAME with a META REFRESH
tag or JavaScript timeout which calls a page on the server. If the data
hasn't changed, the server page returns an empty string. If the server
data has changed, the page returns a Javascript function that updates
the page.

This is the equivalent of client side polling, but without the downside
of page refreshes - it's invisible to the user. I believe GMail does
this now, as well as many web based chat programs.

As far as I know, you can't push data from server to client without
some sort of client side polling mechanism, since browser connections
are stateless and based on server response to client requests.

- Jon
http://weblogs.asp.net/jgalloway

Nov 19 '05 #2
Hi,

Using this javascript function:

function GetData(url) {
try{
ob_url = ""
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", url, false);
xmlhttp.send("");
/*var obj =document.getElementById("myspan")
obj.innerText = url;*/
return xmlhttp.responseText;
}catch(err){
return "nothing"
alert(err.description)
}
}

This returns the data that the url that you give to the function would
display, the only one thing is that only works in Internet Explorer.

The only problem with this is where do you want to call the function, for
that you could have a javascript timer of some sort that would do the job,
incrementing the text of an existing object as a <span>, for example...

Joaquin

"TheFarSeer" <Th********@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Hi,
i have a server that recieves data often from a third party data provider
often. I would like to PUSH this data to the client webpage, WITHOUT
having
to force the user to hit refresh or without having to use client side
polling
and autorefresh. Once recieved on the client, i can use something like
DHTML
to add it to a table.

Any suggestions on how to go about this or what is the best technology to
use for doing this? Any sample applications out there doing this today?

thank you very much.

Nov 19 '05 #4

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

Similar topics

6
by: Graeme Matthew | last post by:
Hi all, I just wanted to tell someone :-) I was previously a perl programmer and have been a visual basic frustrated developer for a number of years, only for the reason that corporates are so...
1
by: TheFarSeer | last post by:
Hi, i have a server that recieves data often from a third party data provider often. I would like to PUSH this data to the client webpage, WITHOUT having to force the user to hit refresh or...
3
by: John Wood | last post by:
Maybe it's just my imagination, but I don't really see Microsoft pushing the ..Net runtime out there... you'd think they'd be including it in every download and new product they ship. How are...
7
by: DW | last post by:
Hi, Here is my question. I want to push security prices to the desktop from the server. Whenever there is a new price in the database, the server notifies the client. How can this be done in...
9
by: James Macbell | last post by:
I think I have pushed ASP.NET to the limit, I am not sure if I have done anything wrong in the code because I am trying to make 2 pieces of code (C# vs PHP) using the same algorithm. Anyways, here...
6
by: eXseraph | last post by:
Hi, As we know,in normal asp.net application, a browser need to send a request to a server first to refresh its page. Now I need to design a asp.net application with real-time capability like the...
1
by: ryan | last post by:
I have a question about pushing realtime stock quotes to clients through the Internet. Is this even possible in .NET environment without creating serious network bottleneck problems? The...
4
by: =?Utf-8?B?VW1lc2huYXRo?= | last post by:
I have a web application, it is running and have control (.NET control /Activex) which has to capture data from other application probably windows application. The data send by the windows...
3
by: BobRoyAce | last post by:
I am using Visual Studio 2008 w/ VB.NET. For the database, I am using SQL Server 2005, which is running on a dedicated server box. I am creating a WinForms application for a client. It is run...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
marktang
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,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.