 |
|
| |
 |
Updating Web Content Dynamically with Java
With a client-side Java applet, a Java-based server application, a little JavaScript, and a DHTML-capable browser, you can build a push technology solution that updates client content dynamically.
by Donepudi S Raghu Kumar
|
|
he most popular Web sites generate revenue from on-line advertising. The space available for ads on a Web page is limited, so advertisers must squeeze a lot of information into a small space and still catch the users' attention to justify the cost of the ads. In most current sites, the server constructs ads that go into the ad banner while the page is built. There is no way to add a new ad dynamically to an already sent page.
The only way to display a new ad is to reload the page, which you can do programmatically. For example, you can reload a page by:
- Using the browser window object setTimeOut function, you can reload the page periodically. However, the user will see a flicker whenever the page reloads. Also, it's difficult to adjust the refresh rate.
- Setting the expiration time of the page for a few seconds duration so that whenever the browser receives the focus (brought to the front) it will reload the page.
Some major Web sites like yahoo.com and msn.com already use these techniques. Each approach has its own pros and cons. Obviously you can write an ad-banner totally in Java with network programming and some user interface programming. But you need to address the problems of download time and refresh delay.
|
|
 |
TALK
BACK |
|
Are you using push techniques for your site? Is the method you're using similar to the one shown in this article? Let us know at web.dhtml.scripting.
|
|
|
|
|
|
|