Firefox/2.0.0.12 WINDOWS 2000 Menu missing in browser

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
nevertooloud
Firefox/2.0.0.12 WINDOWS 2000 Menu missing in browser

Post by nevertooloud » Fri Mar 21, 2008 2:25 pm

When I try to open the server UI via firefox, I get the graphics and icon bar at the top of the screen, but the box where the menu goes has NO menu items.
when I look at the error log in firefox, the message
"Error: uncaught exception: Permission denied to call method XMLHttpRequest.open"

I have no problems access the server from my other PC's on the LAN, and my DMS1 streams the content just fine. Anyone gotta clue?

edslas
Posts:3
Joined:Mon Jul 14, 2008 2:28 am
AV Hardware:Linux FC6 Server, Roko renderer

Re: Firefox/2.0.0.12 WINDOWS 2000 Menu missing in browser

Post by edslas » Tue Jul 15, 2008 2:19 am

I also saw this problem in Win2000 and Vista. Both IE and Firefox would throw 'ACCESS DENIED' errors when trying to browse music. The browser would paint the blue border, but no menu items to get to artists, artist index, all tracks, etc. I was able to fix this by editing the MediaBrowser.js file on the server.
The code:

Code: Select all

//Find "controlURL"
var controlUrlList = xml.documentElement.getElementsByTagName("controlURL" );
//var controlURL  = "";
for (var i=0; i < controlUrlList.length; i++)
{
      if (controlUrlList[i].firstChild.nodeValue.match( "ContentDirectory" ))
      {
             gControlUrl = "/"+controlUrlList[i].firstChild.nodeValue;
             break;
      }
}
gets replaced with:

Code: Select all

//Find "controlURL"
var controlUrlList = xml.documentElement.getElementsByTagName("controlURL" );
//var controlURL  = "";
for (var i=0; i < controlUrlList.length; i++)
{
	if (controlUrlList[i].firstChild.nodeValue.match( "ContentDirectory" ))
	{
	     ;gControlUrl ="/"+controlUrlList[i].firstChild.nodeValue;
	     gControlUrl = controlUrlList[i].firstChild.nodeValue;
													    if(gControlUrl.charAt(0) != "/")
	    {
	          gControlUrl = "/" + gControlUrl;
	    }
	    break;
	}
}
See the attached file.
Somehow there was an extra "/" between XP and Vista/2000. I don't know why, but everything works now.

Locked