[Project_owners] showPopup

Michael Vincent van Rantwijk mv_van_rantwijk at SPAMFREEyahoo.com
Sun Jun 12 21:55:30 EDT 2005


Michael Johnston wrote:
> i'm having problems  with getting my popup's to position themselves
> where i want them.
> 
> it always appears in the top left of my screen (screen coordinatets 0,0 )
> 
> here is my code:
> ==============================================================
> function other(){
> 
> 	var popup= document.getElementById("my_popup");
> 
> 	var focus= document.commandDispatcher.focusedElement;
> 
> 	var x= -1; // this.screenX;
> 	var y= -1; // this.screenY;
> 		
> 	if(f!= null){
> //		popup.showPopup(null,x,y,"popup","","");
> 		popup.showPopup(focus,x,y,"popup","","");
> 	}
> }//function other()
> ==============================================================
> 
> focus comes back as a 
>     HTMLInputElement
> 
> how can i get the popup to appear below the current focused HTMLInputElement?
> 
> 
> mike

I think that you should use focus.boxObject.[x/y] as [x/y] coordinates.

Michael.


More information about the Project_owners mailing list