Re: IE and onclick



Rob wrote:
> Hello! I have an interesting problem.
>
> On internet explorer only, when I click on any link IE stops
> downloading all images.

That is normal. Clicking a link (that is not only a fragment identifier)
is issuing instructions to navigate away from a page so images that
would have been downloaded for that page are no longer needed and it
would be wasteful to download them. Much else that IE would normally do
stops being done at that point as well.

> I have many links which perform javascript operations only.

You mean you are using javascript HREFs?

> The problem is I have many images downloading as well. When
> a user clicks on a link all my images stop even though the
> user is not leaving the current page.

That is not what IE thinks is happening. The user does what looks like
navigation to IE and IE treats it as navigation.

> Has anyone had this problem?

Hundreds (thousands), but apparently not enough to convince everyone
that there is an issue with IE and javascript pseudo protocol HREFs.

> Is there anyway to tell IE to continue
> downloading images even though a link has been clicked?

No, but you don't have to use links to execute javascript (styled <input
type="button"> will work), and you don't have to have javascript enabled
IE think the link has been clicked (by using an onclick event handler to
execute the script and returning false from the handler so that the
'click' action is cancelled).

> If this is the incorrect group for this question I'd be
> happy to post elsewhere; I figure this is the correct place
> however because if I wasn't using javascript I wouldn't have
> this problem ;)

If you weren't using javascript pseudo-protocol HREFs you wouldn't have
the problem. Hence the standing recommendation that nobody ever use
javascript pseudo-protocol HREFs.

Richard.


.



Relevant Pages

  • Re: How To Protect Images!
    ... >>though - You may be downloading an image that contains a watermark and ... >>protect your own images, this article explains a few measures you can ... >>a JavaScript that informs the person that the images on the page are ... >>Watermark Method ...
    (rec.photo.digital)
  • Re: Langham out already....
    ... on the children contained in the images and the images being downloaded ... So child abuse is encouraged, according to that judge, by downloading ... for downloading far "milder" pictures than that one. ...
    (uk.legal)
  • Re: Langham: a victim of gross injustice
    ... I can see that he could perceive being made to admit that he did wrong ... doubt as to whether he really is turned on by the images but should have ... known better than to risk downloading the stuff, ... Langham with a journalist or a police officer and your doubts ...
    (uk.legal)
  • Re: Langham out already....
    ... on the children contained in the images and the images being downloaded ... So child abuse is encouraged, according to that judge, by downloading ... particular crime would serve to encourage more being committed, ...
    (uk.legal)
  • Re: help with arrays
    ... The tags you found so confusing are in fact, ... JavaScript, but they are variant objects, and do not support ... looks like what it's doing is using an array of images, ... images, and a button which invokes a JS function which simply uses setInterval to cycle through the images. ...
    (microsoft.public.frontpage.programming)