spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column31


Netscape Navigator's Problems

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

As previously mentioned, we have found a few problems during our Internet Explorer's scroller implementation. Although we worked around them, we wanted to summarize what we found. Avoiding these problems in your scripts can save you a lot of debugging and frustration.

The first problem occurred during the external file's onload event handling. The current implementation circumvents the problem by delaying the onload action:

<SCRIPT LANGUAGE="JavaScript1.2">
<!--
var pause = 100; 

function start() {
  setTimeout("parent.fillCanvas()", pause);
}
 
window.onload = start;
//-->
</SCRIPT>

Without a delay, the script calls fillCanvas() two times, instead of the expected one. The following piece of code did not limit the calls to one either:

<SCRIPT LANGUAGE="JavaScript1.2">
<!--
var numberOfCalls = 0; 

function start() {
  numberOfCalls ++;
  if (numberOfCalls == 1) parent.fillCanvas();
}
 
window.onload = start;
//-->
</SCRIPT>

The second problem we have encountered is with placing the scroller in a loaded page, as we have done in our previous column, Scrolling HTML Basics, Part I: Netscape Navigator. This is the reason, by the way, that we launch the scroller to a new window in the current column. We observed that after adding more than two paragraphs of text to the scroller's page, the scroller freezes and does not slide. We did not figure out how to solve this problem yet.

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: December 7, 1998
Revised: December 7, 1998

URL: http://www.webreference.com/js/column31/problems