View Full Version : export and ext.onready

26 Aug 2009, 7:28 AM
hi there, Ext.onReady() runs after the page is loaded but not when the response is an exported file, how can i know if the current page is already done in exporting a word file then trigger an ext event? please help, thanks in advanced

26 Aug 2009, 9:46 AM
what do you mean "Not when a response is an exported file" ??

26 Aug 2009, 9:49 AM
I think he means a download?

Javascript has no access if download is loaded into an external application.

26 Aug 2009, 8:49 PM
here is what i mean if i add this lines to the page load event the javascript onready listener is not firing

Response.ContentType = "application/vnd.ms-word";
Response.AppendHeader("content-disposition", string.Format("attachment;filename=\"{0}.doc\"",

27 Aug 2009, 1:11 AM
And like I said, that's impossible.

What onready listener?

27 Aug 2009, 1:16 AM
Even an IFRAME onload event doesn't fire for Content-disposition:attachment, so there is really no way to do this.