473,778 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onload doesn't work right with applets in a page

I have a page that loads an applet. It's a cube that is used as a navigation menu. This issue actually happens in both Microsoft Internet Explorer and Netscape. All versions that I know of. And also happens with the Microsoft JVM and Sun's JVM.

Here's the issue:

When the page loads and messages in the status bar about what the applet is doing (like applet initializing that sort of thing) finish, the result when all is said and done is a (blank) status bar. I do have a work around for it where the status bar gets written to 5 secs after the page loads. Less then 5 seconds it doesn't work. So what that means is the onload event doesn't work. In other words if it did then the status bar should get its message because onload means all components in the page are in and ready to go. But no the applet finishes and the status bar is left in a blank state.

So you might say, "Well the applet loading has over written the status bar." That violates the onload event doesn't it? If the onload event was working correctly the applet would be finished loading and that's that.

I tried moving the JavaScript which sets the defaultStatus to the end of the page but same behavior. I see the defaultStatus message appear, the Applet sends its meesages to the status bar, and the status bar is letf blank. And it takes 5 seconds after the messages in the status bar written to by the applet can be populated with the defaultStatus message.

--
George Hester
_______________ _______________ ____
Jul 20 '05 #1
2 1832
On Tue, 13 Jan 2004 05:10:10 GMT, "George Hester"
<he********@hot mail.com> wrote:
So you might say, "Well the applet loading has over written the status =
bar." That violates the onload event doesn't it? If the onload event =
was working correctly the applet would be finished loading and that's =
that.
No, the onload is about elements being loaded, it doesn't include
applet initialisation.

I tried moving the JavaScript which sets the defaultStatus to the end of =
the page but same behavior. I see the defaultStatus message appear, the =
Applet sends its meesages to the status bar, and the status bar is letf =
blank.


Writing to the statusbar is simply unreliable in IE (hook the
onstatusbarchan ge event in MSHTML, and you'll see just how often it's
called and all the weird times.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
Oh cool I'll try that. Yes it is definitely buggy. Thanks for explaining the onload event. I thought the status bar was one of the elements.

--
George Hester
_______________ _______________ ____
"Jim Ley" <ji*@jibbering. com> wrote in message news:40******** *******@news.ci s.dfn.de...
On Tue, 13 Jan 2004 05:10:10 GMT, "George Hester"
<he********@hot mail.com> wrote:
So you might say, "Well the applet loading has over written the status =
bar." That violates the onload event doesn't it? If the onload event =
was working correctly the applet would be finished loading and that's =
that.


No, the onload is about elements being loaded, it doesn't include
applet initialisation.

I tried moving the JavaScript which sets the defaultStatus to the end of =
the page but same behavior. I see the defaultStatus message appear, the =
Applet sends its meesages to the status bar, and the status bar is letf =
blank.


Writing to the statusbar is simply unreliable in IE (hook the
onstatusbarchan ge event in MSHTML, and you'll see just how often it's
called and all the weird times.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3

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

Similar topics

2
6213
by: Bender | last post by:
Hi, I am wanting to capture an onmousedown event without firing the body tags onload event. Also, if anyone could explain why this happens that would be excellent. I can't see how an onmousedown event could bubble up to an onload event. NOTE: If you put an alert() statement in the onmousedown event handler the body onload event doesn't get fired.
7
8874
by: Tery Griffin | last post by:
Hi all, I¹ve been away from Javascript for awhile and am rusty, but this is too simple not to work! I¹m on a Mac, and usually use the Safari browser. I have a very basic web page in a frame. All it does is trigger a Perl script. Works great in Safari, does not work in IE or Netscape. In IE, the onLoad just doesn¹t seem to fire. I¹ve got to be looking right at the reason, but I¹m not seeing it. Help? (The live frameset is at
5
3519
by: Emmanuel Papillon | last post by:
Hello. I've got a page with sound through a swf file, working with an animation with preloaded JPEG files (animated through use of setTimeout). I'm preloading the JPEG files through Javascript in the <head> tag, the Flash animation/sound file being in the <object> & <embed> tags. I'd like to fire the sound and JPEG animation once everything is loaded : the page content, the JPEG files (stored in an array), and the swf file.
4
5017
by: Joe Kehnast | last post by:
I'm running a system on W2K web server with a Professional XP client. I'm opening a window from an asp page using showModalDialog. In the window I open I'm calling the onLoad event from the body tag. The very first thing I put in the beginProcessing() function is an alert saying I "got here." For some reason the event doesn't always fire and my function doesn't run. Any ideas why? I had to abandon this and came up with another...
9
22443
by: nntp | last post by:
Is there anyway to do something exactly like onload, but without the word onload? I am trying to write inline js without onload, so I don't know how to trigger/start the script.
2
7678
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would like mine to run immediately after it. So in the code below, what JS would i need to add to my "myfile.inc" page so that I could guarantee this behavior? <!-- main page --> <html> <head> <script type="text/javascript">
28
2270
by: fred.haab | last post by:
Not having server side scripting, I've been doing this for "last modified" tags on my pages: <div class="modified"> <script type="Text/JavaScript"> <!-- document.write("This page was last modified: " + document.lastModified); --> </script>
6
19313
by: Daz | last post by:
Hello everyone, I would like to open a child window from the parent, and add an onload event listener to the child window which will tell the parent when the document has loaded. As far as I know, this shouldn't be an issue, but I just can't get it to work. The script only needs to work with Firefox/Mozilla, so XP code isn't an issue. I have tried to open a window like so.
20
11913
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for (i=0;i<obj.length;i++) { obj.attachEvent('ondrag', noDrag); }
0
9629
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
9470
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,...
1
10069
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
8957
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
7475
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
6723
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
5370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5500
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3627
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.