473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Anchor Tag in default.asp causes page to reload???

I have a home page on an intranet called default.asp I just type in
the server name to take me to the default page http://server. The home
page has an anchor name tag: <A name="fred">Freds Info</A>

It is located by this anchor href tag: <A href="#fred">Up to Freds
Info</A>

The problem is that when I first use the link to take me up to Freds
Info, the default.asp page is reloaded then I am taken to the Freds
Info, which is a pain I dont want this to happen. I just want to click
the link and be taken to the part on the page.

After the page is reloaded I can then use the link again to go up to
Freds Info without the page reloading. What is the problem? Any help
would be appreciated. I am using IIS 4.0 on Windows NT.
Dominic
Jul 19 '05 #1
6 8517
Have you accessed the file using //server/ or //server/default.asp? Can you
put a copy of the page up somewhere, so we can try to reproduce, rather than
guess what is really happening?


"Dominic" <lo************@hotmail.com> wrote in message
news:fb**************************@posting.google.c om...
I have a home page on an intranet called default.asp I just type in
the server name to take me to the default page http://server. The home
page has an anchor name tag: <A name="fred">Freds Info</A>

It is located by this anchor href tag: <A href="#fred">Up to Freds
Info</A>

The problem is that when I first use the link to take me up to Freds
Info, the default.asp page is reloaded then I am taken to the Freds
Info, which is a pain I dont want this to happen. I just want to click
the link and be taken to the part on the page.

After the page is reloaded I can then use the link again to go up to
Freds Info without the page reloading. What is the problem? Any help
would be appreciated. I am using IIS 4.0 on Windows NT.
Dominic

Jul 19 '05 #2
Dominic wrote on 12 nov 2003 in microsoft.public.inetserver.asp.general:
I have a home page on an intranet called default.asp I just type in
the server name to take me to the default page http://server. The home
page has an anchor name tag: <A name="fred">Freds Info</A>

It is located by this anchor href tag: <A href="#fred">Up to Freds
Info</A>


1 This has nothing to do with ASP, so please follow up on a clientside NG.

2 Cashe reloading is standard behavour of accessing an anchor, intra or
internet. An eventual server reload is possibly caused by an non-cashe
command. If you just want to scroll use clientside javascript scrollTo() in
an onclick.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
Hello Evertjan and Aaron thanks for your replys.

This is what I see in the message window of IE5.0 when I hover over
the link.

http://Server/#fred

I think it should be http://Server#fred

Seeing that I have the default document already in the temporary
internet file folder as http://Server it should not have to ask the
server for a new page.

However I do have Cache:Control no-cache as a header in IIS4.0 so that
documents loaded to the browser from the default page links are not
cached.

The Html for the anchor tags is the same as previously posted.

I am not sure of the scrollTo()?? or how it works and what does NG
mean?

Thanks people.
Dominic


1 This has nothing to do with ASP, so please follow up on a clientside NG.

2 Cashe reloading is standard behavour of accessing an anchor, intra or
internet. An eventual server reload is possibly caused by an non-cashe
command. If you just want to scroll use clientside javascript scrollTo() in
an onclick.

Jul 19 '05 #4
Dominic wrote on 13 nov 2003 in microsoft.public.inetserver.asp.general:
This is what I see in the message window of IE5.0 when I hover over
the link.
In the status bar, I preaume.
http://Server/#fred

I think it should be http://Server#fred
No, no,

http://Server and http://Server/ are short for http://Server/index.asp
[if your IIS defaults to index.asp, that is].

http://Server/#fred means http://Server/index.asp#fred

http://Server#fred is illogical and probably would not work, because
Server is not a file but the virtual root directory. You can try it in
your browser and wil see the browser replaces that immediately by adding
the slash. [IE6 tested]
Seeing that I have the default document already in the temporary
internet file folder as http://Server it should not have to ask the
server for a new page.

However I do have Cache:Control no-cache as a header in IIS4.0 so that
documents loaded to the browser from the default page links are not
cached.
It does not influence the links, just the pages themselves.

So every http://Server/index.asp#fred will reload from the server, as
promised.

Why not remove the no-cache if you hate it for this page.
[..]
I am not sure of the scrollTo()?? or how it works and what does NG
mean?


scrollTo() is clientside Javascript [you were in fact asking for a
clientside solution] and NG is [this] NewsGroup

[please do not bottom quote on usenet, but top/interquote sparingly]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #5
> http://Server/#fred

I think it should be http://Server#fred


No, #bookmarks apply to a *page* not a server.
Jul 19 '05 #6
Thanks again Aaron and Evertjan,
You have been both helpful :-)
I can understand now Evertjan about what you have been showing me and
I guess because I have the no-cache turned on that this is the main
problem, not the asp and not the html. I will turn it off and see how
I go. Thanks for all the other bits you have identified such as the
'status bar' and the http:server/ etc.
Aaron thanks for your help.
I'll be back with good news I hope.
cheers
Dominic
Jul 19 '05 #7

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

Similar topics

9
by: David Ross | last post by:
In some cases, I indicate links with both a small image and also text, both in the same anchor. When I upgrade my pages to incluce DOCTYPE for HTML 4.01 transitional, the underline for the link...
13
by: s_m_b | last post by:
I'm building a suite of online forms for insurance. These have been stripped down from messy MS Word templates, and two of the six, substantially identical, are misbehaving with the .js page that...
1
by: Mel | last post by:
i placed an anchor at the end of my long page inside a top <iframe> my entry field is in another iframe at the bottom. when i enter something and hit return, it adds a new line to the html file...
3
by: Quintus Snapper | last post by:
Hi All, I'm having a problem with an anchor link in IE which is working inconsistantly and I can't figure out why. On the following website: http://www.friendlyrentals.com/ If you click...
16
by: darrel | last post by:
I have an anchor on my page: <a name="monkey"></a> I can easily go to this via a redirect, but is there a way to jump to this on postback? -Darrel
8
by: knoxautoguy | last post by:
This problem has consumed a lot of my time, and I'm aftraid someone will tell me that my whole approach to this objective is wrong; however, I would like to know if there is a way to do this. I...
2
by: Ken Slight | last post by:
Hello. Does anyone know how to navigate to a specific anchor within an ASPX page? For example, I have <a name='Test'>Hey there</a>, and I want to direct someone to that anchor in the PageLoad...
5
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names...
8
by: azjudd | last post by:
Thank you in advance for your help on this one. I'm using named anchor tags on a FAQ page with questions listed at the top and answers below; a standard jump-to feature. However, anytime an anchor...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.