You could try putting this link on a "splash" page that does not use the
dynapi mouse events.  This will allow you to support the onclick method of
the href.

>From my memoery, the current event structure overrides the user defined
mouse events on links.  This is the same problem that was being had with
onload events being placed in the body tag being overridden the by the
dynapi load handler.

The code to get around this for NS4 href links would be too great a burden.
It would require making a hook for each link in the page and then evaluating
it as part of the dynapi event bubbling.

Dougal Campbell wrote:

> I've got some links defined that use href="javascript:..." to pop up
> some DynLayers. For (extreme) backwards compatibility, I wanted to
> change the hrefs to reference actual html files, and use the onclick
> event instead. I figured that this way, script-enabled browsers will get
> the mega gui version of my site, but somebody with lynx could still
> access content.
>
> I tried something like this:
>   <a href="foo.html" onclick="showGuiWin(); return false;">Foo!</a>
>
> In a simple case, this would work fine. The "return false" would tell
> the browser to *not* actualy load the foo.html page.
>
> But it seems that DynAPI's events are passing the click through anyways,
> so what happens is that the showGuiWin() function is executed, but then
> the browser loads foo.html.
>
> How can I accomplish what I'm trying to do?
>
> --
> Ernest MacDougal Campbell III, MCP+I, MCSE <[EMAIL PROTECTED]>
> http://dougal.gunters.org/        http://spam.gunters.org/
> Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/
> This message is guaranteed to be 100% eror frea!
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to