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

Reply via email to