Show Dynamic Text When Changing Fieldvalues

This Javascript function and additional HTML has been redeveloped as utility to
present helptext to the user when he/she is changing a fields value (for
instance a dropdown/check/radio).

For it to work in both Netscape and MSIE, I had to add some dumb non-breaking
spaces.

In the form add the following:

[<div ID="outer1" class="outerstyle"><div id="inner1" class="innerstyle">
             &n
bsp;            &nbs
p;             
             &n
bsp;            &nbs
p;             
             &n
bsp;            &nbs
p;             
             &n
bsp;            &nbs
p;           &n
bsp;            &nbs
p;             
   </div></div>]

Call it from a field using:

onclick or
onchange="updateNestedLayer('outer1', 'inner1',
document.<yourform>.<yourfield>)"

function updateNestedLayer(outer,inner, object) {
var helptext = "";

helptext = "Some help text";
// This help text ca be evaluated by getting the value of object and then
assign the text to
helptext

if (document.layers) {
document.layers[outer].document.layers[inner].document.open();
document.layers[outer].document.layers[inner].document.write(helptext)
document.layers[outer].document.layers[inner].document.close();
}
else if (document.all)
document.all[inner].innerHTML=helptext;
}
}
This was first published in November 2000

Dig deeper on Lotus Notes Domino Administration Tools

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close