How far have you actually gotten?
Do you have your buttons invoking the pop-up yet? Or is that part of your question? Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pbrendanc Sent: Thursday, June 26, 2008 9:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to Position a Popup relative to the control that invoked the popup? Sorry, while I don't mean to be obtuse - however I need some clarification on how/where to get a reference to that event object - that's really what I having a problem with. In my scenario please note: 1) The controls are dynamic, so how to addEventListener to run time controls is unclear to me. (DO I even need to do this?) 2)The popup form is created by the popUp manager and the form handles createComplete event - however I don't see a ref here to an event object - what am I missing? An explicit code sample would be helpful. TIA --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > You should be able to get the button which triggered the click event from > event.target > > -Josh > > On Fri, Jun 27, 2008 at 9:55 AM, pbrendanc <[EMAIL PROTECTED]> wrote: > > > I have a grid with an array of buttons that when clicked, will display > > a popup window that collects user info. > > What I'd like to do is position the popup relative (immediately below) > > the button that the user clicked within the grid - not necessarily > > centered on the current window. > > > > How can I get access the position/coordinates of the calling button - > > is this data somehow available via the createComplete event of the > > popup. I imagine this data is buried somewhere in the > > event/eventtarget object, but I'm not quite sure how to access it. > > > > (Please don't tell me that I need to assign a listener to every button > > in the grid from within the Popup window as I'm creating the grid > > dynamically and it varies in size). > > > > Can anyone help with this, > > > > TIA, > > Patrick > > > > > > > > > > > > > > > > ------------------------------------ > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >