Receiving Error: Permission denied to get property XUL

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
richtalbot
Beginner
Beginner
Posts: 4
Joined: Mon Jul 06, 2009 12:48 pm

Receiving Error: Permission denied to get property XUL

Post by richtalbot »

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: microsofttraining.net/asset/script/milonic/mmenudom.js
Line: 20"

For example, this page:
microsofttraining.net/formats/training-formats.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:
microsofttraining.net/asset/script/milonic/milonic_src.js
Menu set up is:
microsofttraining.net/asset/script/milonic/menu_data_quicklinks.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
Last edited by richtalbot on Wed Jun 11, 2014 11:27 am, edited 1 time in total.
richtalbot
Beginner
Beginner
Posts: 4
Joined: Mon Jul 06, 2009 12:48 pm

Re: Receiving Error: Permission denied to get property XUL

Post by richtalbot »

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:
microsofttraining.net/project-2007-introduction-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:
microsofttraining.net/project-2007-introduction.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://milonic.com/tablemenu.php to no avail.

Any ideas?
Last edited by richtalbot on Wed Jun 11, 2014 11:28 am, edited 1 time in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Receiving Error: Permission denied to get property XUL

Post by Ruth »

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
richtalbot
Beginner
Beginner
Posts: 4
Joined: Mon Jul 06, 2009 12:48 pm

Re: Receiving Error: Permission denied to get property XUL

Post by richtalbot »

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
Attachments
Centered DIV with CSS.<br />buildAfterLoad=false;
Centered DIV with CSS.
buildAfterLoad=false;
Image8.gif (16.47 KiB) Viewed 6813 times
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Receiving Error: Permission denied to get property XUL

Post by Andy »

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://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?
richtalbot
Beginner
Beginner
Posts: 4
Joined: Mon Jul 06, 2009 12:48 pm

Re: Receiving Error: Permission denied to get property XUL

Post by richtalbot »

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
Post Reply