if there is a on_load attribute on the body tag then the events added by the addLoadEvent() will not be run.
try adding aler_t('on_load') to the body and it will cause the failure.
darn malicious data catcher, making this post so hard to enter.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | remove_onload_doc.patch | 1003 bytes | gordon |
| #3 | remove_onload.patch | 4.39 KB | gordon |
Comments
Comment #1
killes@www.drop.org commentedGordon, is that still an issue?
Comment #2
gordon commentedYes as far as I know, it is still an issue. This is more to do with the browsers not running the window.onload when there is a on_load in the page.
One option is that we obsolete the on_load and force all modules to use the new js function.
Comment #3
gordon commentedRemoved theme('onload_attributes') as this causes the new js stuff to die.
If you need to run some js on_load then use the new js addLoadEvent() to start a function.
Comment #4
gordon commentedComment #5
gordon commentedhere is a patch to remove the on_load hook from the documentation
Comment #6
darius commentedSeems that removing hook_onload is the right thing to do at this stage. There was a duplicate issue http://drupal.org/node/31755 which I just closed that discussed the same problem.
Darius
Comment #7
chx commentedComment #8
dries commentedCommitted this to HEAD. Moving this to the documentation project as the documentation patch still needs committing. I'd also add a note to the upgrade guide.
Comment #9
bryan kennedy commentedI added this issue to the module upgrade handbook page
Comment #10
sepeck commentedas it's added to the docs, closing