Boo-urns Posted February 15, 2007 Share Posted February 15, 2007 Is there a way to pass a javascript variable to a popup window?? onclick="window.open(this.href, 'newwin', '_blank, width=105, height= 200, left=VARIABLE, scrollbars=yes'); return false;" Quote Link to comment Share on other sites More sharing options...
worldworld Posted February 15, 2007 Share Posted February 15, 2007 Solution here... Quote Link to comment Share on other sites More sharing options...
fenway Posted February 15, 2007 Share Posted February 15, 2007 you need the opener object to get to the document of the caller window. Quote Link to comment Share on other sites More sharing options...
Boo-urns Posted February 16, 2007 Author Share Posted February 16, 2007 I'm still really lost. I've spent hours trying to pass variables which isn't what stated but i also need help w/ that. What I'm trying to do is when the user clicks on the image it will popup at that location. The popup list will be of users they want to invite, they will check which ones or a check all and then upon them hitting the submit button it will populate the invite input area. I'm sure its been done somewhere i couldn't find it on google though. Quote Link to comment Share on other sites More sharing options...
Boo-urns Posted February 16, 2007 Author Share Posted February 16, 2007 Phew finally i got the passing the variables, however still unsure how to pop it up right at the button any ideas? Quote Link to comment Share on other sites More sharing options...
fenway Posted February 16, 2007 Share Posted February 16, 2007 You have to get the x,y position of the mouse... in IE, that comes via the event object. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.