Bugs item #870414, was opened at 2004-01-04 17:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105757&aid=870414&group_id=5757

Category: DynAPI 3 API
Group: Verified
Status: Open
Resolution: None
Priority: 5
Submitted By: Sam Blum (bs_php)
Assigned to: Nobody/Anonymous (nobody)
Summary: Check *before* setting the window.onload-function

Initial Comment:
There are cases where other 3rd party script are loaded 
that *also* overload the window.onload-function.

In dynAPI should check that the window.onload-
function is 'free'.

Correction follows:
=============
in dynapi.js near line 99 
--------------- replace this -----------------
f.onload = function() {

--------------- with this -----------------
// Befor setting the window.onload-function we must 
check if it's not already in use (by some other 3rd party 
script loaded). 
// So we backup the function to call it.  
var onloadBak = (typeof(f.onload)=='function') ? 
f.onload : false;
f.onload = function() {
    if (onloadBak) onloadBak();

modified  dynapi.js  is attached






----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105757&aid=870414&group_id=5757


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to