click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CLK-245) addLoadEvent improvement
Date Sat, 21 Mar 2009 10:45:50 GMT

     [ https://issues.apache.org/jira/browse/CLK-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink closed CLK-245.
-----------------------------


> addLoadEvent improvement
> ------------------------
>
>                 Key: CLK-245
>                 URL: https://issues.apache.org/jira/browse/CLK-245
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.4
>            Reporter: Bob Schellink
>            Assignee: Bob Schellink
>             Fix For: 1.5 M1
>
>         Attachments: domloaded.js, test-onload1.html, test-onload2.html
>
>
> The script control.js contains the function 'addLoadEvent'. This function enables one
to add multiple onload events to a page.
> There are two problems with the current function. 
>    1) If the <body> tag contains a 'onload' event, and the javascript is placed
in the <head> of a page, the addLoadEvent does not seem to fire its events.
>    2) The events added to the above function, only fires after the entire web page (including
all images) have been loaded.
> An alternative approach which is used by some of the AJAX libraries (JQuery, mootools),
is based on Dead Edwards code found here: http://dean.edwards.name/weblog/2006/06/again/
> There are a few available reusable scripts on the net, which provides this technique.
> The downside is that it looks like pretty nasty javascript code (or perhaps it just points
to my lack of javascript knowledge ;-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message