Textarea + Context Menu + FF = Error in Firebug

View: New views
3 Messages — Rating Filter:   Alert me  

Textarea + Context Menu + FF = Error in Firebug

by H.F. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Please help!

It shows the following error in FF when the mouse quits the context
menu and enters to the textarea.

Here is how I add the context menu to the textbox,

JavaScript Part
===================
var oContextMenu = new YAHOO.widget.ContextMenu("testContextMenu", {
trigger: "text1", itemdata: [{ text: 'dummy', value:true }] } );

oContextMenu.render(document.body);
===================

HTML Part
===================
<textarea id="text1" style="width: 335px; height:
100px;">Testing</textarea>
===================

Whenever the mouse leaves the context menu and points immediately to
the textbox, FireBug shows this error:

[Exception... "'Permission denied to get property
HTMLDivElement.nodeType' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

I suspect that this may be a bug in FF. However, I am also wondering
if it can be solved in the YUI level.

I am using FireFox 2.0.0.6 and Firebug 1.05.

Please advise. Thanks.

H.F.



Re: Textarea + Context Menu + FF = Error in Firebug

by H.F. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please help..

H.F.


--- In ydn-javascript@..., "H.F." <le_halfmoon@...> wrote:

>
> Hi all,
>
> Please help!
>
> It shows the following error in FF when the mouse quits the context
> menu and enters to the textarea.
>
> Here is how I add the context menu to the textbox,
>
> JavaScript Part
> ===================
> var oContextMenu = new YAHOO.widget.ContextMenu("testContextMenu", {
> trigger: "text1", itemdata: [{ text: 'dummy', value:true }] } );
>
> oContextMenu.render(document.body);
> ===================
>
> HTML Part
> ===================
> <textarea id="text1" style="width: 335px; height:
> 100px;">Testing</textarea>
> ===================
>
> Whenever the mouse leaves the context menu and points immediately to
> the textbox, FireBug shows this error:
>
> [Exception... "'Permission denied to get property
> HTMLDivElement.nodeType' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
> (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
>
> I suspect that this may be a bug in FF. However, I am also wondering
> if it can be solved in the YUI level.
>
> I am using FireFox 2.0.0.6 and Firebug 1.05.
>
> Please advise. Thanks.
>
> H.F.
>



Re: Re: Textarea + Context Menu + FF = Error in Firebug

by Satyam-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See:

http://tech.groups.yahoo.com/group/ydn-javascript/message/17158



----- Original Message -----
From: "H.F." <le_halfmoon@...>
To: <ydn-javascript@...>
Sent: Tuesday, August 28, 2007 12:00 AM
Subject: [ydn-javascript] Re: Textarea + Context Menu + FF = Error in
Firebug


> Please help..
>
> H.F.
>
>
> --- In ydn-javascript@..., "H.F." <le_halfmoon@...> wrote:
>>
>> Hi all,
>>
>> Please help!
>>
>> It shows the following error in FF when the mouse quits the context
>> menu and enters to the textarea.
>>
>> Here is how I add the context menu to the textbox,
>>
>> JavaScript Part
>> ===================
>> var oContextMenu = new YAHOO.widget.ContextMenu("testContextMenu", {
>> trigger: "text1", itemdata: [{ text: 'dummy', value:true }] } );
>>
>> oContextMenu.render(document.body);
>> ===================
>>
>> HTML Part
>> ===================
>> <textarea id="text1" style="width: 335px; height:
>> 100px;">Testing</textarea>
>> ===================
>>
>> Whenever the mouse leaves the context menu and points immediately to
>> the textbox, FireBug shows this error:
>>
>> [Exception... "'Permission denied to get property
>> HTMLDivElement.nodeType' when calling method:
>> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
>> (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
>>
>> I suspect that this may be a bug in FF. However, I am also wondering
>> if it can be solved in the YUI level.
>>
>> I am using FireFox 2.0.0.6 and Firebug 1.05.
>>
>> Please advise. Thanks.
>>
>> H.F.
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.9/975 - Release Date: 26/08/2007
> 21:34
>
>