spacer

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

home / experts / javascript / column31


Netscape Navigator's Problems

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


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

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