Announcing the Logitech® SlimServer 7.0 Find ‘em Contest!

mherger mherger.2xq2mb1191153901 at no-mx.forums.slimdevices.com
Sun Sep 30 05:03:43 PDT 2007


> Error: Ext.EventManager is not an object

Could you please give the following change a try?


Code:
--------------------
    Index: /Users/mh/Documents/workspace/trunk/server/HTML/Default/index.html
  ===================================================================
  --- /Users/mh/Documents/workspace/trunk/server/HTML/Default/index.html	(revision 13356)
  +++ /Users/mh/Documents/workspace/trunk/server/HTML/Default/index.html	(working copy)
  @@ -57,8 +57,11 @@
  			strings['clear_playlist']  = "[% "CLEAR" | string %]";
  			strings['save']  = "[% "SAVE" | string %]";
  
  -
  -			Ext.EventManager.onDocumentReady(Main.init, Main, true);
  +			try { Ext.EventManager.onDocumentReady(Main.init, Main, true); }
  +			catch(e) {
  +				document.getElementById('loading').style.display = 'none';
  +				document.getElementById('noJS').style.display = 'block';
  +			}
  		</script>
  
--------------------


This is wrapping the first call to ExtJS specific code and would
display a message on failure.


-- 
mherger

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=38755



More information about the beta mailing list