HighDots Forums  

new popup window does not jump to anchor

Javascript JavaScript language (comp.lang.javascript)


Discuss new popup window does not jump to anchor in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Daniel Goldman
 
Posts: n/a

Default new popup window does not jump to anchor - 09-20-2003 , 02:02 AM






When I open a new popup window, with a url that includes an
anchor, about 1/5 of the time the page displays correctly
(jumps to anchor), 4/5 of the time page displays incorrectly
(starts from top). Here is the code I use:

HelpWindow_j = window.open ('webpage.htm#uniqAnchor', 'uniqName',
'hotkeys,location,resizable,scrollbars,height=300, width=600', true);

This happens in IE 6.0, not in NS 4.7; NS 4.7 works correctly.
I have not tested other browsers.

To see in action, click on some of the help links on:
http://www.ehdp.com/vn/ro/acv/txu1/dgw/eg1/index.htm
I want them to display a popup with help file positioned
correctly, but it usually displays file from top. The
location input field does show the correct url, with hash.

I have tried opening window with no url specified, then
setting location, location.href, or location.hash; same
problem. I've played around with setTimeout(). Did not help.

I know this is probably not a new problem, but I have not
seen a good answer anywhere. Please help!

Daniel Goldman

Reply With Quote
  #2  
Old   
Sugapablo
 
Posts: n/a

Default Re: new popup window does not jump to anchor - 09-20-2003 , 08:06 AM






Daniel Goldman wrote:
Quote:
When I open a new popup window, with a url that includes an
anchor, about 1/5 of the time the page displays correctly
(jumps to anchor), 4/5 of the time page displays incorrectly
(starts from top). Here is the code I use:
It seems to be working for me AOK. I'm using Mozilla 1.3.1 as a browser.

Are your problems in IE?

--
Sugapablo
------------------------------------
http://www.sugapablo.com <--music
http://www.sugapablo.net <--personal



Reply With Quote
  #3  
Old   
Richard Cornford
 
Posts: n/a

Default Re: new popup window does not jump to anchor - 09-20-2003 , 09:30 AM



"Sugapablo" <russREMOVE (AT) sugapablo (DOT) com> wrote

Quote:
Daniel Goldman wrote:
When I open a new popup window, with a url that includes
an anchor, about 1/5 of the time the page displays
correctly (jumps to anchor), 4/5 of the time page displays
incorrectly (starts from top). Here is the code I use:

It seems to be working for me AOK. I'm using Mozilla 1.3.1
as a browser.

Are your problems in IE?
As the OP includes the words:-

<quote>
This happens in IE 6.0, not in NS 4.7; NS 4.7 works
correctly. I have not tested other browsers.
</quote>

- I would guess that they probably are.

Richard.




Reply With Quote
  #4  
Old   
Sugapablo
 
Posts: n/a

Default Re: new popup window does not jump to anchor - 09-20-2003 , 01:34 PM



Richard Cornford wrote:

Quote:
As the OP includes the words:-

quote
This happens in IE 6.0, not in NS 4.7; NS 4.7 works
correctly. I have not tested other browsers.
/quote

- I would guess that they probably are.

Yep. I completely missed that.


--
Sugapablo
------------------------------------
http://www.sugapablo.com <--music
http://www.sugapablo.net <--personal



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.