dev.kanngard.net make sure you visit my new blog at: johankanngard.net

Short tip: @Command([ViewRefreshFields]) in JavaScript

by Johan Känngård / [JavaScript] / 2003-01-21 / #34


This is a JavaScript function you can call in the onchange / onclick events in your Domino forms, instead of enabling the "Refresh fields on keyword change" property of a field. Handy when you have to catch the onsubmit but NOT when just refreshing.

function viewRefreshFields() {
	var f=document.forms[0];
	f.__Click.value="$Refresh";
	f.submit();
}