Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Have pop up dialogues pop up near your cursor

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#SmartDialogueLocations or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/SmartDialogueLocations


As web forms become more complicated, it is nice when the pop up dialogues or dialogs that are used pop up near the button or field clicked on with the pointer. Here is a very cool way of doing this:





In the onClick event of the notes form or web form put:

if (navigator.appName == "Microsoft Internet Explorer") {
iWinX = window.event.screenX;
iWinY = window.event.screenY;
}

 

As backup for Netscape users etc , put in the onLoad event :

var iWinX = 100;
var iWinY = 100;

 

Then in your button code put:

namelistwindow = window.open('', '', 'height=155,width=200,screenX=200,screenY=300,top=' +(iWinY-10)+',left='+(iWinX+10)+',resizable=yes,location=no,scrollbars=yes,menubar=no,toolbar=no,directories=no');

Change the -10 and +10 to suit the size of your button. Brilliant.

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
man and boy by Tony Parsons
British book of the year 2000. Great book, hard to put down, but I nearly threw it away half way through. You'll know why when you read it.
See at: Amazon.co.uk | Amazon.com |