I have some code in a column , what I want to do is to have the documents from the
view open in a fixed size window on the web…
how can I accomplish this… everything I tried did not work,
Subject: Trying to open a doc on the web with a fixed width and height
To get a fixed-size window, you need to use the window.open method in JavaScript. In order to keep the view (and the web page) small, use a JavaScript function in the view template’s JS header (or in a JavaScript library referenced on the template) to do most of the work:
function popDoc(unid) {
var loc = window.location.href;
loc = loc.substring(0, loc.indexOf(“.nsf”) + 4) + “/viewname/”;
That way users who are running JavaScript will get a fixed-size pop-up window, but those who can’t run JS will get the document opened anyway. (New windows are bad for accessibility, so if you have visually impaired users or users who have difficulty with fine motor control, opening the document in the same window will improve their ability to use the application.)