473,945 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

new popup window does not jump to anchor

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#u niqAnchor', 'uniqName',
'hotkeys,locati on,resizable,sc rollbars,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
Jul 20 '05 #1
3 4226
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?

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

Jul 20 '05 #2
"Sugapablo" <ru********@sug apablo.com> wrote in message
news:vm******** ****@corp.super news.com...
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.
Jul 20 '05 #3
Richard Cornford wrote:
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

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2508
by: Jamie Jackson | last post by:
I'm using showModalDialog() to popup a window with some long text, followed by a couple of form elements. The content of the popup scrolls, since the content is longer to than the window. However, when it first opens, it is positioned at the bottom of the modal window's content, so one has to scroll to see the beginning of the content. It happens to be positioning the window so the bottom of the submit button is at the bottom of the popup....
10
2773
by: Oliver | last post by:
Hello, i'm having trouble with a css type popup. It's not doing what i want in Mozilla 1.6 and in IE6.0 it's not working at all. The html code looks like this: <div class="themenkueche" id="tk"> <h1>Themenk&uuml;chen</h1> <p>
2
2176
by: Enjoy Life | last post by:
We have an ASP site that hits up an Access database of categories of products and products. (e.g. Categories = Napkins, Tablecloths; Products = 20x20 Napkins, 21x21 Napkins, 54x54 Tablecloths, 60x60 Tablecloths) We currently have select boxes that when you select a category, it populates the next select box with the proper list of products (i.e. I select Napkins as a category, I get a listing of the Napkins) We would like to put a...
1
13032
by: TErnst | last post by:
Hello All.... What I am attempting to do is have a link/button on a page (testpopup.cfm) that opens a popup page (popupwindow.cfm). The popup page displays a resultset from a query and the selected record needs to be passed through a query string/URL parameter to the original calling page and will be available in the body onload event of the calling page. I open the popup window and display the query results, I then click on
3
4308
by: Mehmet Gunacti | last post by:
Hello, on our homepage, when pressing an anchor tag, a special sized popup window opens via javascript. but it opens very slowly. on other web pages, there are also javascript-opened windows, but they load very very fast, within 2-3 seconds. i tried several things such as :
4
2442
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with dimensions of linked picture after clicking on a thumbnail. I found javascript which is compatible with IE, Firefox & Opera but I can't get it to work. All I get is this http://www.justfonts.com/tini/problem.html (thumbnail dissapeared).
18
12728
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes state, the HTML page URL would change from default.html to default.html#stateA. example: http://pearstudios.com/javascript/locationHashAndFlash.html This has worked perfectly within HTML and javascript alone, however, when connecting Flash and...
7
8487
by: rob c | last post by:
Hi Does anyone know what triggers a "popup blocker"? I'm going to be opening some sub-windows from my main page and don't want to get caught in a blocker. Thanks Rob
0
10148
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10679
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8239
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7402
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4927
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.