PermaLinkBetter control of window focus when using Notes:// protocol
posted Wednesday 7th, July 2004
 



Back in October 2003 I'd posted about using the Notes:// protocol to link from a web browser to the Notes client. This week it was pointed out to me that if the user has Notes already open in the background and Notes is not minimized, then the Notes:// link will open the desired location in the Notes client, but the Notes window is not brought to the foreground.

The solution is to replace the url in the anchor tag so that some simple JavaScript provides the desired control. The general format of a standard Notes:// link is:
  notes://serverName/folderName/dbFilename.nsf

To use JavaScript to add a little better behavior to the link, try something like this instead of the standard Notes:// url:
  javascript:var winNotes=window.open('notes://serverName/folderName/dbFilename.nsf', 'winNotes'); winNotes.close();

The full anchor tag would therefore be similar to this:
  <a href="javascript:var winNotes=window.open('notes://serverName/folderName/dbFilename.nsf', 'winNotes'); winNotes.close();">My Database Link</a>
Comments :
 
 

No documents found