try returning false from your onClick
Cameron Hart wrote:
> I've found a solution that I'm kind of happy with except Netscape act's
> weird. I've added the folling code to my copy of LoadPanel:
>
> LoadPanel.findLoadPanel = function(o) {
> if (is.ns4) {
> while (!o.lyrobj) o = o.__parent__;
> }
> else if (is.ie) {
> while (!o.lyrobj) o = o.parentElement;
> }
> return o.lyrobj;
> }
>
> Then I use the following for a link in the HTML loaded into loadpanel:
>
> <a href="javascript://"
> onclick="LoadPanel.findLoadPanel(this).setURL('newpage.html')">click me</a>
>
> This works perfectly in IE as far as I can tell. However Netscape has a
> problem. It does successfully load the url into the correct LoadPanel. On
> the down side it also opens a new window and says cannot find the server
> <rubbish>. Does anyone know what is causing this to happen? I get the
> impression that somewhere there is an object with a target or protocol
> property = javascript:// which is causing the problem?
>
> Cheers,
>
> Cameron.
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help