Re: Causing File Download on Page Load
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Sat, 23 May 2009 21:27:28 +0200
Jonathan Wood wrote:
Thomas 'PointedEars' Lahn"
Such broken quotations are hardly legible. If you are using Outlook
Express
or Windows Mail (which are infamous for this bug), I strongly suggest you
either familiarize yourself with their bugs (and work around them)[1], or
use something else[1].
Ugh. As mentioned, I'm a bit on overload right now. [...]
That much is obvious:
If isMethod is a user-defined method, I haven't seen the definition forI meant what I said, and Google is your friend.
it.
(Perhaps you meant predefined?)
Well, you had suggested that isMethod was shown "above"
No, I said it was used above.
but I didn't see where. And, in fact, I learned that I don't care for some
of the new changes at Google that I discovered while researching exactly this
Looking for javascript ismethod returned results that include javascript, is, and
method. I guess I can fix it with quotes but, right now, I'm not sure how
good a friend I really think Google is.
Well, maybe you should pay more attention to what I am saying. I did
mention my dhtml.js, and it stands to reason that isMethod() has been
discussed *here* ago:
<http://groups.google.com/groups?q=isMethod%20group%3Acomp.lang.javascript&scoring=d&filter=0>
And may I ask the main reason for removing the handlers for these eventsYes, as you can see there are three entry points to download.stop().
in
download.action? I know you don't want to trigger a second download, but
I'm
not sure I see where that could happen. And a page refresh would just
reset
them again anyway, right?
Yeah, including the link on the page. I guess it's the possibility of the
user downloading the file via both onload and onclick that you're addressing
here. Makes sense now.
Correct. The following possibilities have to be considered, each after
which the timeout must be cleared:
1. The user activates the link while the document is being loaded.
2. The user activates the link after the document has been loaded
but before the timeout occurs.
3. The user navigates away while the document before the timeout occurs.
4. The timeout triggers the download.
(BTW, it's come to my attention that some shareware sites use iframe tagsProbably an attempt to work around the location change of the same
to
perform this task: <iframe style="display:none;" height="0" width="0"
src="url"></iframe>
document.
And, interestingly, FireFox actually shows a small box with this HTML.
Certainly not with `display: none'. Which version of Firefox exactly?
PointedEars
.
- Follow-Ups:
- Re: Causing File Download on Page Load
- From: Jonathan Wood
- Re: Causing File Download on Page Load
- References:
- Causing File Download on Page Load
- From: Jonathan Wood
- Re: Causing File Download on Page Load
- From: Thomas 'PointedEars' Lahn
- Re: Causing File Download on Page Load
- From: Jonathan Wood
- Re: Causing File Download on Page Load
- From: Thomas 'PointedEars' Lahn
- Re: Causing File Download on Page Load
- From: Jonathan Wood
- Re: Causing File Download on Page Load
- From: Thomas 'PointedEars' Lahn
- Re: Causing File Download on Page Load
- From: Jonathan Wood
- Causing File Download on Page Load
- Prev by Date: Re: Causing File Download on Page Load
- Next by Date: Re: Causing File Download on Page Load
- Previous by thread: Re: Causing File Download on Page Load
- Next by thread: Re: Causing File Download on Page Load
- Index(es):
Relevant Pages
|