Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:09

Receiving Error: Permission denied to get property XUL


Poster: richtalbot
Dated: Monday July 6 2009 - 13:08:00 BST

Using version Commercial version, 5.823

Hello.

When using firefox, I keep getting a lot of these errors when using our Milonic menu:

"Error: Permission denied to get property XULElement.accessibleType
Source File: http://www.microsofttraining.net/asset/ ... menudom.js
Line: 20"

For example, this page:
http://www.microsofttraining.net/format ... ormats.php

See the blue 'quicklinks' milonic menu in top header.

Notice errors appearing in your Firefox Error Console when hovering over the menus.

Note: after hovering over all possible menus, and then clearing the Error Console, hovering over the menus again does not bring the errors up until next page refresh. So it must be some intial Javascript call when a menu is first appearing(?).

FYI: Source file is:
http://www.microsofttraining.net/asset/ ... nic_src.js
Menu set up is:
http://www.microsofttraining.net/asset/ ... cklinks.js

Also, whenever a menu is hovered over, Firefox seems to be loading for a splitsecond. Like it's getting something from a server somewhere. It never used to do this.

Is anyone else getting this error. Or does anyone have any ideas why this is happening?

I'm not getting the errors coming up on the milonic home page, when hovering over the main menu system. So it's just our config.

Thanks.

Rich Talbot

Re: Receiving Error: Permission denied to get property XUL


Poster: richtalbot
Dated: Monday July 6 2009 - 17:14:30 BST

Update:

I found out that removing this line:
buildAfterLoad=true;
stopped the erros appearing in FF error console.

However, the reason we had that command in our menu system was because on this test page:
http://www.microsofttraining.net/projec ... n-cols.php
(we are switching over to a new CSS template, which uses nested DIVs to center the content)
the Milonic Menu ('Quicklinks') adds the margin on either side of the page to each submenu (firefox only).

Older template:
http://www.microsofttraining.net/projec ... uction.php

Because the page design is 100% of the page, the Milonic menus work fine.

Adding buildafterLoad=true to the menu definition is the only way to fix the extra margin on the submenus, but it then causes the FF errors to appear.

Have tried the instructions on this page:
http://www.milonic.com/tablemenu.php to no avail.

Any ideas?

Re: Receiving Error: Permission denied to get property XUL


Poster: Ruth
Dated: Monday July 6 2009 - 18:55:45 BST

Hi,

I have downloaded the two of the pages, the first post link and the one with the cols in the url and I put the data file back to using buildAfterLoad with all the menu info in the one file and called it in the div and I am not getting the error you mention in FF. In order to test it and find out what is causing the problem I need your page as you have it when the error occurs. Can you put that back so I can download it?

Ruth

Re: Receiving Error: Permission denied to get property XUL


Poster: richtalbot
Dated: Tuesday July 7 2009 - 9:35:32 BST

Hi Ruth,

I really appreciate you getting back to me.

I tried to debug this problem last night to no avail, it seemed to be very random. I hovered over every element in our menu system and this sometimes causes 17 errors in FF and other times only 5 or 9.

Anyway, I ended up trying to disable all of my FF add-ins, to see if something was conflicting. This didn't work. I then realised I had Firefox 2.0.0.2 (or something) and decided to upgrade to FF 3.5.

Now FF doesn't throw up any errors, regardless of whether buildAfterLoad is true or false.
However, I do need to leave buildAfterLoad turned on, otherwise the margins on the submenus stay there.
(See attached graphic for an example of what happens if buildAfterLoad is false)

Thank you for your help. A lot of your answers to other people's questions have helped me in the past.

Regards, Rich

Re: Receiving Error: Permission denied to get property XUL


Poster: Andy
Dated: Tuesday July 7 2009 - 10:38:19 BST

Hi,

Due to the fact that you have the menu inside a div wouldn't it be an idea to use the technique found here http://www.milonic.com/tablemenu.php

buildAfterLoad is a bit of a hack, to be honest, and is only really needed if the table based menu technique cannot be applied.

There is also the new version we can try. It's still beta but one of the things it overcomes is being embeded being made very simple indeed, it's also SEO friendly. Do you want to try it?

Re: Receiving Error: Permission denied to get property XUL


Poster: richtalbot
Dated: Tuesday July 7 2009 - 10:54:40 BST

Hi Andy,

Thanks for that. I'd be willing to give it a try.

I did try the instructions listed in your link, but the error was still coming up in Firefox Error Console.
I haven't tried the technique with FF 3.5 though, so I will try it and see if I can get rid of the buildAfterLoad code.

How do I get the code for this new version you mentioned?

Regards, Rich