Re: IE and onclick
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Nov 2005 07:16:50 -0000
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.
.
- Follow-Ups:
- Re: IE and onclick
- From: Rob
- Re: IE and onclick
- References:
- IE and onclick
- From: Rob
- IE and onclick
- Prev by Date: Re: Need to get a javscript variable into my tcl code
- Next by Date: Re: Any good AJAX books?
- Previous by thread: IE and onclick
- Next by thread: Re: IE and onclick
- Index(es):
Relevant Pages
|