473,698 Members | 2,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1948
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.XMLHT TP");
xmlhttp.open("G ET", url, false);
xmlhttp.send("" );
/*var obj =document.getEl ementById("mysp an")
obj.innerText = url;*/
return xmlhttp.respons eText;
}catch(err){
return "nothing"
alert(err.descr iption)
}
}

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********@dis cussions.micros oft.com> wrote in message
news:E6******** *************** ***********@mic rosoft.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
2247
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 obsessed with using proprietary marketing focused computer languages and not using true computer science oriented solutions written by computer science engineers and not a marketing panel. The amount of frustration I have experienced using visual...
1
2187
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 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...
3
1376
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 people going to have Internet downloadables written using .Net if the user has to also find, download and install the .Net framework also??
7
5112
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 the following situations using MS .NET Winforms on the desktop: 1. Using .NET Web Services on server 2. Using Java Web Services on server
9
1720
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 is the my test. How: Create a HTML page with 2 hyper links to these files (posted below). Right click, Save target As. Tested: On my P4 1.6 GHz , 1 GB Ram server, Windows 2000 IIS 5 and Apache 1.3 for win32, 100 Mbps LAN Sample Size: 150 MB...
6
1720
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 MSN Web Messenger. That means once the session between browser and server has been established, the browser can get real-time messages with out sending requests periodically.(Or How to tell the browser that you need to send a new request to...
1
1570
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 clients may go in and out of the server zone. I am leaning towards client-initiated posts to a web service (every x milliseconds) -about 500 clients.
4
1676
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 application has to read by web application with out the page refreshing or using AJAX. Is there any control (.NET control /Activex) available? Ajax is a kind of pooling, I am looking some thing pushing into a web
3
4120
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 on any of several employees' desktop PCs. Now, they want to be able to "push" some of the data from the SQL Server database up to a database on a website (also SQL Server 2005).
0
8674
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, 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...
0
8603
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,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
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,...
0
7723
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
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...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.