[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-11 Thread Berg, Leandros van den [FGSBV]
Your solution worked and the correct label is now placed above the scalebar as well. I've managed to pinpoint where the error is thrown, it is this line if(typeof(aSheet.cssRules) == 'undefined') { Apparently aSheet doesn't have the cssRules parameter when your not debugging. I haven't got a

[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-11 Thread Berg, Leandros van den [FGSBV]
OK. It's not due to the fact I'm adding the stylesheet as a link element. I ruled that out by hardcoding the url in Scalebar.js. Apparently, Firefox sees localhost and localhost:80 as different domains and that's why it throws the NS_ERROR_DOM_SECURITY_ERR error. So I set the url to

[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-10 Thread Berg, Leandros van den [FGSBV]
Hi Jamo, I think the double quotations are optional within url() and adding them, unfortunately, didn't solve NS_ERROR_DOM_INVALID_ACCESS_ERR. That same line was throwing me a NS_ERROR_DOM_SECURITY_ERR with Firefox. Apparently that error is thrown when the file comes from a different domain,

[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-10 Thread Berg, Leandros van den [FGSBV]
Need to correct myself, the NS_ERROR_DOM_SECURITY_ERR error is still thrown, which is weird because I'm running everything on localhost and the url is pointing to localhost as well. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org

[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-10 Thread Jamo
ok your right it was becuase I was in debug mode, strange thing is it also works if you place an alert box before if (document.styleSheets) { in Scalebar.js strange If it's still not working I've managed to sort of get it working not sure why it works but it does. modify scalebartool.js

[mapguide-users] Re: Scalebar: TypeError, Fusion Error, and NS_ERROR_DOM_INVALID_ACCESS_ERR

2011-11-09 Thread Jamo
Berg I think I'm on a roll this might be the reason i've never had fusion working in firefox :) modify the Scalebar.js to I'm guessing NS_ERROR_DOM_INVALID_ACCESS_ERR is thrown because the url is not well formed ?? works for me now :) Hope this does it for you -- View this message in