Hi all,
Forgive me if this has an obvious solution; I haven't found it yet. On my site, I use another javascript that is called in body onload. Of course, this means that the added script by FUpload in window.onload isn't run. Now, I tried copying the FUpload generated javascript into a function in my first piece of script and then called it on load, but of course that's tied to a particular sessionID so stops working (also, it means I'm calling nonexistant things on a bunch of pages). And, of course, moving my other script to window.onload has the same problem; onload is being called twice thus only one script runs.
Is there a call I can put into body onload that will use / recreate the generated javascript at the top of page? Or if not, is there some other solution?
(Note: just because of the warning box, I'm using Firefox 3.0.10, but of course the problem appears in (all?) other browsers)
Thanks, for any help, I've been puzzling over how to make this work for a few days now.
Comments
Comment #1
tuffnatty commentedsubscribing
Comment #2
tuffnatty commentedAfter this change, the button replacement occurs automatically when Drupal.attachBehaviors() is called.
Comment #3
grandcat commentedI'll check this. Thank you for the patch file!
Comment #4
grandcat commentedCommited to 6.x-3.x. Thanks.