This code snippet allows you to open a URL from an HTML view (not applet views)into a window where you can control the size, position, toolbar, menu, etc.
Code
Place the following Javascript in the JSHeader of the $$ViewTemplateDefault form or any form where there is an embedded view.
function openBrWindow(theURL,winName,features) { window.open(theURL,winName,features);
}
In the column formula that you would like to use as the link, use any one of the following
formulas: (where DocID is a field on the document that holds the Document UNID and Subject is a
descriptive field on the document)
"[<a href="#" onClick="openBrWindow('http://server.microchip.com/mydb.nsf/0/" + DocID +
"?openDocument','Name','')">" + Subject + "</a>]"
"[<a href="#" onClick="openBrWindow('../mydb.nsf/0/" + DocID +
"?openDocument','Name','')">" + Subject + "</a>]"
"[<a href="#" onClick="openBrWindow('../mydb.nsf/0/" + DocID + "?openDocument','Name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes
,resizable=no,copyhistory=yes,
left=300,top=150,screenX=300,screenY=150,width=600,height=400')
">" + Subject + "</a>]"
The additional parameters beginning with toolbar=no control the look and feel of the window that
is opened. (screenX and screenY control the positioning on the screen for Netscape
Navigator, left and top work with IE 4.0 and above.)