bundles/org.eclipse.orion.client.ui/web/examplePages/leftrightpanes.js
function updateRightSide() {
				// Many pages use the hash to determine the content.
				var parameters = PageUtil.matchResourceParameters();
				
				var content = lib.node("rightContent"); //$NON-NLS-0$
				lib.empty(content);
				var text = parameters.resource.length > 0 ? "Showing interesting info about " + parameters.resource + "!" : "Try adding a hash to the URL"; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
				content.appendChild(document.createTextNode(text)); 
				
				// Here we use a page service, though this is usually done inside components to whom we've passed the service.
				if (parameters.resource.length > 0) {
					statusService.setMessage("Status for " + parameters.resource + "."); //$NON-NLS-1$ //$NON-NLS-0$
				}
			}
function updateRightSide() {
				// Many pages use the hash to determine the content.
				var parameters = PageUtil.matchResourceParameters();
				
				var content = lib.node("rightContent"); //$NON-NLS-0$
				lib.empty(content);
				var text = parameters.resource.length > 0 ? "Showing interesting info about " + parameters.resource + "!" : "Try adding a hash to the URL"; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
				content.appendChild(document.createTextNode(text)); 
				
				// Here we use a page service, though this is usually done inside components to whom we've passed the service.
				if (parameters.resource.length > 0) {
					statusService.setMessage("Status for " + parameters.resource + "."); //$NON-NLS-1$ //$NON-NLS-0$
				}
			}
function updateRightSide ( ) { // Many pages use the hash to determine the content. var parameters = PageUtil . matchResourceParameters ( ) ; var content = lib . node ( "rightContent" ) ; //$NON-NLS-0$ lib . empty ( content ) ; var text = parameters . resource . length > 0 ? "Showing interesting info about " + parameters . resource + "!" : "Try adding a hash to the URL" ; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$ content . appendChild ( document . createTextNode ( text ) ) ; // Here we use a page service, though this is usually done inside components to whom we've passed the service. if ( parameters . resource . length > 0 ) { statusService . setMessage ( "Status for " + parameters . resource + "." ) ; //$NON-NLS-1$ //$NON-NLS-0$ } }
Here we track hash changes.  Another pattern is that the component on the right side would track the hash change internally.
Here we track hash changes . Another pattern is that the component on the right side would track the hash change internally .