Re: Causing File Download on Page Load



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 for
it.
(Perhaps you meant predefined?)
I meant what I said, and Google is your friend.

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 events
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?
Yes, as you can see there are three entry points to download.stop().

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 tags
to
perform this task: <iframe style="display:none;" height="0" width="0"
src="url"></iframe>
Probably an attempt to work around the location change of the same
document.

And, interestingly, FireFox actually shows a small box with this HTML.

Certainly not with `display: none'. Which version of Firefox exactly?


PointedEars
.



Relevant Pages

  • How to find out where a download is stalling?
    ... I use newsgroup binaries a lot and find that I'm getting timeout after ... Sometimes on downloading a single usenet text message the download can ... Arnold ISP), An Edimax AR6004 router, a high spec PC with an AMD 3200+ ...
    (uk.telecom.broadband)
  • Re: Informix in the press...
    ... The version of IDS v10 without the timeout was made available to the IIUG exclusively for IIUG members to download. ... IBM requires that individuals register when they want to download a product. ... A press release from IBM mentioning Informix. ...
    (comp.databases.informix)
  • Re: Slide show duration
    ... the user to adjust the slideshow timeout. ... Windows XP PowerToys / free download ... Information About Editing the Registry ... To modify my script change the time accordingly. ...
    (microsoft.public.windowsxp.photos)
  • Re: Informix in the press...
    ... A press release from IBM mentioning Informix. ... to download it like DB2. ... I noticed DB2 does not have the 90-day timeout. ...
    (comp.databases.informix)
  • Re: windows server timeout
    ... you the flexibility you need in setting the timeout. ... set timeouts for the download ... On MY> computer it doesn't take a ling time, but on other computers it may take ... Is there any chance that after a while .net> will raise an exception that the server is not responding or a similar ...
    (microsoft.public.dotnet.languages.csharp)