I have a dijit dialog which runs and opens my requested href fine, it also runs an onLoad function fine.
I am trying to get swfupload to work in this dialog. I have the href loading the page with the required html, the required javascript included in the parent (not loaded) document and it all seems to work ok.... that is swf upload is recognised, my onload funciton is called and the swfupload class runs, however, swfupload can't find my button span in the document.
The code it calls is:
targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder;
Note that I can send over an object in the statement. My question is:
How can I send over the correct element object to the swf upload class. It seems that the JS is running before the href content is loaded fully.