From: SourceForge.net <no...@so...> - 2005-07-29 19:37:41
|
Bugs item #870414, was opened at 2004-01-04 08:19 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=870414&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. 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 ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-07-29 12:37 Message: Logged In: YES user_id=184788 very good point.. let's do that shall we? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=870414&group_id=5757 |