West Wind Web Tools for .NET
Re: Firefox 3 problem
11/16/2008
11:10:37 PM
2IH1DODJI Show this entire thread in new window
From:
Rick Strahl
To:
Prashant
Attachments:
None

That really has nothing to do with the hoverpanel or any of the code related to the controls.

I think you need to use single quoes for the embedded script code because otherwise you end up with an invalid event hook.

Further you don't need to eval that code - you can directly access the parent window and its properties.

+++ Rick ---

I have this code on the page that is shown inside the Iframe of the wwhoverpanel and i am attaching the attributes to the cancel button in order to be able to close the hover panel.

btnAnnotateDiscard.Attributes.Add("onclick", "window.parent.eval(""RecentPanel.hide();"");return false;")

This code works in all the browsers IE6+ and Safari and Firefox 2 but for some reason fails in Firefox 3 and the page just refreshes with a Javascript error (see below the error it generates in firebug) and the hoverpanel does not close.

function eval must be called directly, and not by way of a function of another name
[Break on this error] window.parent.eval("RecentPanel.hide();");




Rick Strahl
West Wind Technologies

Where do you want to surf today?
Reader Version: 5.0

from Maui, Hawaii