Rollovers and @formulas, simple

An easier way to use action hotspots for an @formula

This is not rocket science but I think a handy tip. After seeing and using the tip here for using action hotspots

for an @formula and then extracting the onclick value and using it in JavaScript, I thought of an easier way to do some of the functionality.

The other method is still good for when you need to use a lot of javascript but I use this tip for say a Save button or Cancel. Even opening another form etc etc.

An added bonus!! You also get the groovy finger pointer happening instead of just the mouse arrow!!


Place your picture, button graphic etc on your form. Put all your javascript code in, onMouseOut,onClick etc. if desired.

Highlight your graphic, create an action hotspot and put your @formula in it.

This way you get the javascript functionality and the @formula functionality.

In my example I have a pop-up window to enter some information. I want to save the document in the pop-up, close the pop-up window and change the graphic on the main from a 'cross' to a 'tick'.

Picture - 
// "type" is a field on the mainform that holds the value of the associated graphic id

onClick
var name = document.forms[0].type.value;
eval("opener.document." + name + ".src='ok'");
window.close()

onMouseOut
document.forms[0].save.src = "saveoff";
//Using alias of Image Resource

onMouseOver
document.forms[0].save.src = "saveon";

HotSpot (which is over the Picture)
@Command([FileSave])
This was first published in November 2001

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