PDA

View Full Version : export and ext.onready



wp.joju
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

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

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

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

wp.joju
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\"",

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

What onready listener?

Condor
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.