473,386 Members | 1,694 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,386 software developers and data experts.

Page Submit and Jump to Anchor?

I have a page/form...that has some junk at the top of the page and a bunch
of select boxes in the middle of the page and a table at the bottom. When a
user makes a change in one of the select boxes, I use javascript to submit
the page (back to itself)..reloading the other select boxes.

The problem I have is that when the page submits, it comes back at the top
and the user has to scroll down to the middle. I wanted to use <a
name="jumphere"> but I wasn't sure how that would work after a submit
(obviously I don't want the jump the first time the user enters the area).

Any suggestions? Maybe 'cuz it's Monday...but I can't seem to think of any
good ideas. Any help is appreciated!

-bruce duncan
Jul 23 '05 #1
4 11196
On Mon, 30 Aug 2004 14:38:47 -0400, Bruce Duncan
<br*********************@hotmail.com> wrote:

[snip]
The problem I have is that when the page submits, it comes back at the
top and the user has to scroll down to the middle. I wanted to use <a
name="jumphere"> but I wasn't sure how that would work after a submit
(obviously I don't want the jump the first time the user enters the
area).

Any suggestions? Maybe 'cuz it's Monday...but I can't seem to think of
any good ideas. Any help is appreciated!


Doesn't

<form ... action="myPage.html#jumphere">

work?

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2
>
Doesn't

<form ... action="myPage.html#jumphere">

work?

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


You're right...that would work in a normal situation but the page is calling
itself so the action="".

Anyhow, I figured it out...
I have client-side code (Cold Fusion) that determines how the page was
loaded (i.e. First time in, or javascript submit, etc). When the loaded
type is from the select boxes I simply added the javascript code:
location.hash = 'jumphere';

Works like a charm.

....must be Monday

-bruce duncan
Jul 23 '05 #3
On Mon, 30 Aug 2004 15:35:17 -0400, Bruce Duncan
<br*********************@hotmail.com> wrote:
Doesn't

<form ... action="myPage.html#jumphere">

work?

[snip]
You're right...that would work in a normal situation but the page is
calling itself so the action="".


action="#jumphere"

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4
>
You're right...that would work in a normal situation but the page is
calling itself so the action="".


action="#jumphere"

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Yea...I like that one better...thanks Michael!

-bruce duncan
Jul 23 '05 #5

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: Owin | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on. When...
4
by: owingruters | last post by:
Hi all, I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster. The control wordks great if autopostback is on....
1
by: Merdaad | last post by:
Everytime I try to edit a row on my datagrid, I press on the edit Link (left column of grid row), screen refreshes and the top part of the screen shows up. Datagrid editting works fine but the...
5
by: ukrbend | last post by:
I'm trying to create a link to a certain part of a page on another website that has no anchor (i.e. ID or name) at the position on the page I want to link to. So I can't do something like ...
6
by: planetthoughtful | last post by:
Hi All, I have a C# ASP.NET page that submits back to itself to insert details from a form into a database table. When / if the user refreshes the page (and gets the standard warning that POST...
3
by: philipta | last post by:
i am new to php... i designed a page that is submitting that is submitting,If i reload the page one message is coming up saming i cant reload the page without submitting the page again... What should...
11
by: gotonagle | last post by:
hi, can some help me in this regard i m entering some values in my databse from my asp page. for this i m using a submit button which submit the form to a new page that is 'insert.asp'. this page...
1
by: Nita Kamat | last post by:
I have a simple .net form with two input boxes to choose the event and location. On button click, an xml url is built and this xml file is read using ReadXml, dataset is built and the results are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.