|Reported by:||trutwijd||Owned by:||mwilcox|
|Keywords:||fileUploader disappear ie8||Cc:|
Ugh - chased this weird one for a while to find out that dojo.addOnUnload() is getting fired in ie8 (ie7/6?) when you use an href like this on a page with an uploader:
Per dojo.addOnUnload source doc:
The first time that addOnWindowUnload is called Dojo
will register a page listener to trigger your unload
handler with. Note that registering these handlers may
destory "fastback" page caching in browsers that support
it. Be careful trying to modify the DOM or access
they may not always be available. Consider
dojo.addOnUnload() if you need to modify the DOM or do
the page's "onbeforeunload" event.
Attaching a test case.
Not sure if there's a better way to do the uploader destroy() behavior to prevent this???