Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Antw: RE: Safari 125 problems with onload events & applets



Sure.  You can verify the bug with something like this:

<html>
<head>
<script>

function testAtStart()
{
    alert ("document.applets[0] = " + document.applets[0]);

	setTimeout ("testLater();", 2000);
}

function testLater()
{
    alert ("document.applets[0] = " + document.applets[0]);
}

</script>

</head>

  <body onLoad="testAtStart();">

      <applet ...> Insert your applet here.  </applet>

  </body>
</html>

The first alert will incorrectly show the applet description as undefined, the second alert (assuming the VM is up after two seconds) will correctly show the applet string description.

- Richard

On Sep 3, 2004, at 12:18 AM, Mark Thomas wrote:

Sorry about the basic question, but is there way to test this in javascript,
as most of my javascript code thinks the applet is there :-(. Unless I
missed something.


Thanks
Mark.

The latest Java update does indeed have a problem with LiveConnect.
With the update the JavaScript applet value will be undefined until the
VM is up and running. Prior to this update your JavaScript would block
until the applet was ready. So, doing stuff in the onload handler is
likely to fail. Doing stuff later is likely to succeed. The Java team
is aware of the problem and is working towards a solution.
- Richard



On Sep 2, 2004, at 6:04 AM, Andre Schild wrote:

Hello Mark,

the java console window shows JRE 1.4.2_05

I have now changed the code to let the applet grabb the javascript
variables
in the start() method of the applet, and there it works.

So it realy seems to be a problem with the sequence of the onload
event.

Andri

Mark Thomas <email@hidden> 02.09.2004 11:33:44 >>>
What version of the Java VM have you got as there issue with
LiveConnect in
latest Java 1.42 seed i.e. "Java 1.42 update 1".

Mark.

Message: 1
Date: Thu, 02 Sep 2004 00:21:22 +0200
From: "Andre Schild" <email@hidden>
To: <email@hidden>
Subject: Safari 125 problems with onload events & applets

Hello,

we have a applet where we pass some parameters via javascript in the
onload
event of the HTML page.
In the Safari 123 Version this did work very good.
Now our users have upgraded to the new safari version 125, and now
the onload
event seems to
not get triggered. (Either not at all, or before the applet is ready
to
receive the event)

Is this a known issue or what might be the cause ?



Here is our onLoad event code:

<body bgcolor="#CCCCCC"
onLoad="document.Ekit.setDocumentAarcatEscapes
(opener.escapeCodes);document.Ek
it.setDocumentTextAarcat(eval
('opener.document.'+opener.formField).value);">


For test purposes we have added a button to the html page who does the very same.

<input TYPE="button" VALUE="Set TEXT"
onClick="document.Ekit.setDocumentTextAarcat(eval
('opener.document.'+opener.fo
rmField).value);">


When we click on the button, the the parameters are passed correctly to the applet.

Andri


aarboard ag internet - networks - screen&print design - multimedia Egliweg 10 - Postfach 214 - CH-2560 Nidau (Switzerland) Phone +41 32 332 9714 - Fax +41 32 332 9715 www.aarboard.ch - email@hidden
_______________________________________________
webcore-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webcore-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webcore-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webcore-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webcore-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webcore-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webcore-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webcore-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Antw: RE: Safari 125 problems with onload events & applets (From: Mark Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.