Align a popup window excatly by the parent link 
Author Message
 Align a popup window excatly by the parent link

Hallo,

How can I make a little windowless popup window make aligned excalty by the
link which opened this popup?

For this, I need
1) Parent x, y screen coordinates
2) Link element x,y coordinates within the parent window
3) Ability to move the popup window to the necessary coordinates

Maybe there is some ready-make script I could use for this?

Thanks,

--
-Pavils Jurjans
Information Technology consultations and solutions
Phone: (+371) 9459777
ICQ: 4047612



Sun, 31 Oct 2004 19:43:42 GMT  
 Align a popup window excatly by the parent link
new popup:
e.g.
window.open(pagename, framename,
'toolbar=no,scrollbars=no,location=0,width=200,height=200,resizable=no,left=
0,top=0')

move window itself:
move.to(x,y)


Quote:
> Hallo,

> How can I make a little windowless popup window make aligned excalty by
the
> link which opened this popup?

> For this, I need
> 1) Parent x, y screen coordinates
> 2) Link element x,y coordinates within the parent window
> 3) Ability to move the popup window to the necessary coordinates

> Maybe there is some ready-make script I could use for this?

> Thanks,

> --
> -Pavils Jurjans
> Information Technology consultations and solutions
> Phone: (+371) 9459777
> ICQ: 4047612



Sun, 31 Oct 2004 23:19:28 GMT  
 Align a popup window excatly by the parent link

This seems to work, maybe it will give you some ideas..

You will of course need to do version checking, error
checking, you know what I mean ..

TonyD.

<HTML>
<HEAD>
<TITLE>Popup Test</TITLE>
</HEAD>
<BODY BGCOLOR="lightyellow">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a href="about:blank" onmouseover='testPop("test message")'>Test
Link</a>

<SCRIPT Language="JavaScript">
function testPop(msg) {

var iXpos=event.offsetX;
var iYpos=event.offsetY;

myPopup=window.createPopup();
myPopupBody = myPopup.document.body;
myPopupBody.style.setExpression("font","'italic normal bolder 12pt
Helv'");
myPopupBody.style.backgroundColor = "LightSeaGreen";
myPopupBody.style.border = "solid black 2px";
myPopupBody.innerHTML=msg;
myPopup.show(iXpos, iYpos, 200, 50, document.body);

Quote:
}

</SCRIPT>

</BODY>
</HEAD>
</HTML>

Quote:

> Hallo,

> How can I make a little windowless popup window make aligned excalty by the
> link which opened this popup?

> For this, I need
> 1) Parent x, y screen coordinates
> 2) Link element x,y coordinates within the parent window
> 3) Ability to move the popup window to the necessary coordinates

> Maybe there is some ready-make script I could use for this?

> Thanks,

> --
> -Pavils Jurjans
> Information Technology consultations and solutions
> Phone: (+371) 9459777
> ICQ: 4047612



Sun, 31 Oct 2004 23:23:22 GMT  
 Align a popup window excatly by the parent link
Thanks,

there is a little problem with window.createPopup, as it is MS non-standard
method. I should create the popup in some more standards-compatible way.
I'll try out the microbians.com chromeless window. My problem is actually
rooted from the fact, that IE renders the windowed controls (listbox,
dropdown) over any DHTML popup, therefore I can not place my custom pop-up
controls above these form elements avoiding obscuring. The ony way out I see
is opening a chromeless window instead.

See the link below to understand my problem:

http://www.jurjans.lv/dhtml/demo.htm

Thanks,

--
-Pavils Jurjans
Information Technology consultations and solutions
Phone: (+371) 9459777
ICQ: 4047612



Quote:

> This seems to work, maybe it will give you some ideas..

> You will of course need to do version checking, error
> checking, you know what I mean ..

> TonyD.

> <HTML>
> <HEAD>
> <TITLE>Popup Test</TITLE>
> </HEAD>
> <BODY BGCOLOR="lightyellow">
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <a href="about:blank" onmouseover='testPop("test message")'>Test
> Link</a>

> <SCRIPT Language="JavaScript">
> function testPop(msg) {

> var iXpos=event.offsetX;
> var iYpos=event.offsetY;

> myPopup=window.createPopup();
> myPopupBody = myPopup.document.body;
> myPopupBody.style.setExpression("font","'italic normal bolder 12pt
> Helv'");
> myPopupBody.style.backgroundColor = "LightSeaGreen";
> myPopupBody.style.border = "solid black 2px";
> myPopupBody.innerHTML=msg;
> myPopup.show(iXpos, iYpos, 200, 50, document.body);

> }

> </SCRIPT>

> </BODY>
> </HEAD>
> </HTML>


> > Hallo,

> > How can I make a little windowless popup window make aligned excalty by
the
> > link which opened this popup?

> > For this, I need
> > 1) Parent x, y screen coordinates
> > 2) Link element x,y coordinates within the parent window
> > 3) Ability to move the popup window to the necessary coordinates

> > Maybe there is some ready-make script I could use for this?

> > Thanks,

> > --
> > -Pavils Jurjans
> > Information Technology consultations and solutions
> > Phone: (+371) 9459777
> > ICQ: 4047612



Mon, 01 Nov 2004 14:54:55 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Posting result from popup window back to parent windows

2. Refreshing a parent window after closing link window

3. Opening the link in parent window

4. links in popup open page in orig window

5. Right align Popup results

6. chid window up window reload on parent window

7. closing a popup when the parent closes.

8. question about new window and parent window event exchange

9. Refresh parent window from child window

10. why parent window reloads on window.open() ?

11. Child window refreshing parent window

12. Controlling daughtor window from parent window

 

 
Powered by phpBB® Forum Software