473,403 Members | 2,222 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,403 software developers and data experts.

Jump to named anchor after form processing

Hi All!

Let's say I have a form like this:

<form action="handler.asp"> ... </form>

Within handler.asp, I output a number of named anchors:

<a name="important1">Important 1</a> ...
<a name="important2">Important 2</a> ...
<a name="important3">Important 3</a> ...

In my form processing code, I want the returned page to jump to one of
these anchors depending on the result of the processing.

How can I do this?

I don't want to use a redirection because then I would have to
re-process the same page..

Any advice would be most appreciated!

Rob
:)
Jul 21 '05 #1
3 4971
Robert Mark Bram wrote on 20 okt 2004 in
microsoft.public.inetserver.asp.general:
Hi All!

Let's say I have a form like this:

<form action="handler.asp"> ... </form>

Within handler.asp, I output a number of named anchors:

<a name="important1">Important 1</a> ...
<a name="important2">Important 2</a> ...
<a name="important3">Important 3</a> ...

In my form processing code, I want the returned page to jump to one of
these anchors depending on the result of the processing.

How can I do this?

I don't want to use a redirection because then I would have to
re-process the same page..

Any advice would be most appreciated!


I would not use a <form> here.

Try:

<a href="#important1">Important 1</a><br>
<a href="#important2">Important 2</a>

and keep the anchors on the same page:

<a name="important1"></a>What is important 1 ...
<a name="important2"></a>What is important 2[too?] ...

The browser cache will not send a request to the server if your asp code
allows a long enough expiry time[-out], say:

<% Response.Expires = 40 %>

[and do not use <base href=> or no-cache meta directives here!]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 21 '05 #2
Hi Evertjan!

Thank you for your response.
I would not use a <form> here.
Hmm... but there is some user input that I need to obtain in order to do
my processing.
Try:

<a href="#important1">Important 1</a><br>
<a href="#important2">Important 2</a>

and keep the anchors on the same page:

<a name="important1"></a>What is important 1 ...
<a name="important2"></a>What is important 2[too?] ...

The browser cache will not send a request to the server if your asp code
allows a long enough expiry time[-out], say:

<% Response.Expires = 40 %>


I don't quite understand what is happenning here. The page blocks for a
while, waiting for some response?

Rob
:)
Jul 21 '05 #3
Robert Mark Bram wrote on 20 okt 2004 in
microsoft.public.inetserver.asp.general:
Hi Evertjan!

Thank you for your response.
I would not use a <form> here.
Hmm... but there is some user input that I need to obtain in order to
do my processing.


then use seperate forms:

<form action="#important1" method=post>
<input your user input for posting
</form>
<form action="#important2" method=post>
<input your user input for posting
</form>

or use clientsied scripting to cange the action string.

OT on this ASP NG!!!
Try:

<a href="#important1">Important 1</a><br>
<a href="#important2">Important 2</a>

and keep the anchors on the same page:

<a name="important1"></a>What is important 1 ...
<a name="important2"></a>What is important 2[too?] ...

The browser cache will not send a request to the server if your asp
code allows a long enough expiry time[-out], say:

<% Response.Expires = 40 %>


I don't quite understand what is happenning here. The page blocks for
a while, waiting for some response?


Its unclear what you mean with "blocks".

Anyway, as it is not an ASP problem, [except for the timeout],
this is OT.

I suggest you ask in a cliendside code NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 21 '05 #4

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

Similar topics

5
by: TG | last post by:
Dear PHP Group, How can I in PHP, based on a result, move the cursor to a certain location on the page? I want the same result as Anchor tags in HTML. I want to go to a certain section of the...
2
by: Rob | last post by:
Hello all, I have an anchor in my page like <a name-"phase_two"/>. When I load my page I call the function body_onload in the onload event of the body tag. Then I like to jump to this...
4
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
2
by: Robert Wehofer | last post by:
Hello there! How is it possible to jump to an anchor by using ASP.NET? Is it only possible by using JavaScript Code? If so, how has the JavaScript to look like? Thank you in advance, Robert
6
by: Nalaka | last post by:
Hi, Is there a gui control in VS2005 to set a "named anchor"? For an example now I go to the html and write the following code <a name="jumpToThisLocation"/>
6
by: dark.peony | last post by:
Hi, (--1--) I'm trying to find a way to jump to a link (<a href="ref"></a>) in a page that is generated with javascript. The source view of the page only shows the javascript methods. The...
2
by: rudranee | last post by:
Hi, Can i hide an anchor tag in the mailto form?so that only the receiver is able to see it. The refernce code is given here: <FORM METHOD=POST ACTION="mailto:abc@xyz.com"...
6
by: Greg Collins [Microsoft MVP] | last post by:
In ASPX, how does one get the named anchor from a URL? Its not in any of the ServerVariables. If a url is: http://www.somerandomsite.com/page.aspx#named_anchor How do I get the value of the...
3
by: Bjorn Nordbo | last post by:
Hello, I have a page with a vertical list of photos separated with bits of text. Using page down to view the photos is a bit annoying as it will typically cut the photos as it only jumps a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.