I have a web page with a form about halfway down the page. Instead of
starting at the top of the page when it is loaded I would like it to go
directly to the top of the form. Can this be done?
Dave 12 3054
J. David Kent wrote: I have a web page with a form about halfway down the page. Instead of starting at the top of the page when it is loaded I would like it to go directly to the top of the form. Can this be done?
<form ... id="myForm">
And append "#myForm" to the URI.
See also: http://david.us-lot.org/software/frag/
--
David Dorward http://david.us-lot.org/
Cool! Thanks much.
Not that I would do it that way, but the guy I wrote it for thinks it
would be better. Ah welll.....
Thanks again,
Dave
"David Dorward" <do*****@yahoo.com> wrote in message
news:bf*******************@news.demon.co.uk...
: J. David Kent wrote:
:
: > I have a web page with a form about halfway down the page. Instead
of
: > starting at the top of the page when it is loaded I would like it to
go
: > directly to the top of the form. Can this be done?
:
: <form ... id="myForm">
:
: And append "#myForm" to the URI.
:
: See also: http://david.us-lot.org/software/frag/
:
: --
: David Dorward http://david.us-lot.org/
Please don't post upside-down.
J. David Kent wrote: After playing around a bit, I decided to do it this way. The links work fine, but now it says there is an error on the page when I roll over the buttons. Rolling over the navigation buttons should change them from brown /w yellow lettering to yellow /w brown lettering. All I did was add the #contactus to the contact link button. maybe you can see something I didn't? Everything was working fine before this! <sigh>
http://www.lynnconstables.com/index.html
That is (at least partly) because you don't have a file called buttons.js.
This is the file that supposedly contains the javascript functions to swap
the images. The text on those images is really blurry - I'd suggest you
just use text, and use CSS to create the hover effect.
BTW: If you are going to use the W3C logos, you might want to actually
validate your document. ;-)
--
Mark Parnell http://www.clarkecomputers.com.au
Stan Brown <MP************************@news.odyssey.net> wrote in
comp.infosystems. www.authoring.html: In article <bf*******************@news.demon.co.uk> in comp.infosystems.www.authoring.html, David Dorward <do*****@yahoo.com> wrote:
J. David Kent wrote:
I have a web page with a form about halfway down the page. Instead of starting at the top of the page when it is loaded I would like it to go directly to the top of the form. Can this be done?
<form ... id="myForm">
And append "#myForm" to the URI.
Won't work in Netscape 4, if I recall correctly. (Maybe it was MSIE, but I'm pretty sure I tested this in a level-4 browser last year..
Maybe, but the document will still degrade gracefully for NS 4.x users. The
browser just won't scroll down to the form, that's all.
Regards,
Geoff
-- http://www.doctype.ca/ http://www.allmyfaqs.com/faq.pl?Geoff_Ball
Well, you were right. Thanks.
In fact, two of my scripts were missing from the directory, which is
very strange, because I didn't remove them!
Wonder why I didn't notice that before. Must be getting old...
Thanks again,
Dave
"Mark Parnell" <we*******@clarkecomputers.com.au> wrote in message
news:3f***********************@freenews.iinet.net. au...
: Please don't post upside-down.
: J. David Kent wrote:
: > After playing around a bit, I decided to do it this way. The links
: > work fine, but now it says there is an error on the page when I roll
: > over the buttons. Rolling over the navigation buttons should change
: > them from brown /w yellow lettering to yellow /w brown lettering.
All
: > I did was add the #contactus to the contact link button. maybe you
: > can see something I didn't? Everything was working fine before this!
: > <sigh>
: >
: > http://www.lynnconstables.com/index.html
: >
:
: That is (at least partly) because you don't have a file called
buttons.js.
: This is the file that supposedly contains the javascript functions to
swap
: the images. The text on those images is really blurry - I'd suggest
you
: just use text, and use CSS to create the hover effect.
:
: BTW: If you are going to use the W3C logos, you might want to actually
: validate your document. ;-)
:
: --
:
: Mark Parnell
: http://www.clarkecomputers.com.au
:
:
Stan Brown wrote: In article <bf*******************@news.demon.co.uk> in comp.infosystems.www.authoring.html, David Dorward <do*****@yahoo.com> wrote: <form ... id="myForm">
And append "#myForm" to the URI.
Won't work in Netscape 4, if I recall correctly.
You recall correctly... :-D
--
Mark Parnell http://www.clarkecomputers.com.au
In article <15****************@doctype.ca> in
comp.infosystems. www.authoring.html, Geoff Ball <us****@doctype.ca>
wrote: Stan Brown <MP************************@news.odyssey.net> wrote in comp.infosystems.www.authoring.html:
In article <bf*******************@news.demon.co.uk> in comp.infosystems.www.authoring.html, David Dorward <do*****@yahoo.com> wrote:
J. David Kent wrote: I have a web page with a form about halfway down the page. Instead of starting at the top of the page when it is loaded I would like it to go directly to the top of the form. Can this be done?<form ... id="myForm">
And append "#myForm" to the URI.
Won't work in Netscape 4, if I recall correctly. (Maybe it was MSIE, but I'm pretty sure I tested this in a level-4 browser last year..
Maybe, but the document will still degrade gracefully for NS 4.x users. The browser just won't scroll down to the form, that's all.
Sigh.
<a name>, which I suggested yesterday, will work in every browser
where <form id> works, and it will work in Netscape 4 (maybe others)
as well.
--
Stan Brown, Oak Road Systems, Cortland County, New York, USA http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Stan Brown <MP************************@news.odyssey.net> wrote in
comp.infosystems. www.authoring.html: In article <15****************@doctype.ca> in comp.infosystems.www.authoring.html, Geoff Ball <us****@doctype.ca> wrote:
Stan Brown <MP************************@news.odyssey.net> wrote in comp.infosystems.www.authoring.html: In article <bf*******************@news.demon.co.uk> in comp.infosystems.www.authoring.html, David Dorward <do*****@yahoo.com> wrote:
<form ... id="myForm">
And append "#myForm" to the URI.
Won't work in Netscape 4, if I recall correctly. (Maybe it was MSIE, but I'm pretty sure I tested this in a level-4 browser last year..
Maybe, but the document will still degrade gracefully for NS 4.x users. The browser just won't scroll down to the form, that's all.
Sigh.
<a name>, which I suggested yesterday, will work in every browser where <form id> works, and it will work in Netscape 4 (maybe others) as well.
Well, the name attribute is deprecated, so although it will work in NS 4.x,
it probably won't work in newer browsers down the road. Id, on the other
hand, will.
Regards,
Geoff
-- http://www.doctype.ca/ http://www.allmyfaqs.com/faq.pl?Geoff_Ball
On Wed, Jul 23, Geoff Ball inscribed on the eternal scroll: Stan Brown <MP************************@news.odyssey.net> wrote in comp.infosystems.www.authoring.html: Sigh.
Indeed. I also felt increasing impatience at the way this discussion
seemed to be going in circles.
<a name>, which I suggested yesterday, will work in every browser where <form id> works, and it will work in Netscape 4 (maybe others) as well.
Well, the name attribute is deprecated, so although it will work in NS 4.x, it probably won't work in newer browsers down the road. Id, on the other hand, will.
I think we're all aware of that! There's some compatibility
guidelines which recommend using both of them, for the time being.
Do you have any real problem with that, or are you trying to impose
the removal of deprecated usage for its own sake? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Will McGugan |
last post by:
Hi,
What is the overhead of starting threads in Python? Currently my app
starts around 20 threads per second, but I'm considering creating a pool
of a fixed number of threads and keeping them...
|
by: J.D. Buehls |
last post by:
I am displaying some values on a report. I am opening the .asp page
with a
Response.ContentType = "application/msword" and these particular
values appear in a table. One column shows percentages...
|
by: Murray J |
last post by:
I have an HTML page which is an image map with a 4 X 4 grid of 'hot
spots', linking to other HTML pages, each of which contains a large
(3200px X 2560px) image. I would like to capture the...
|
by: Kristof Despiere |
last post by:
Suppose you have one domain, filled with a couple of users. What needs to be
done now is I need to start a windows application from a webform by pressing
a button on the webform (for example).
...
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej...
|
by: admyc |
last post by:
How can I make google show a link to my website when words are entred
into its search field that don't actually appear in the main page
of/anywhere in my website.
I think these keywords need to...
|
by: Andrew Poulos |
last post by:
I'm using Windows Media Audio, via a WAX file, and I have some custom
controls to start and stop the audio. While it works in IE, FF gives an
error. The HTML looks like this:
<object id='obj'...
|
by: Spycat |
last post by:
Hi all and happy holidays!
I should start off by stating I am NOT a PHP programmer.
I say that so that in any response to me, you will speak very s-l-o-w-l-y or I won't know what you're talking...
|
by: tim |
last post by:
Hi all,
I want to execute a VB application from a ASP page (not .Net). Want I want
to do is
that I write some parameters to a database and then start the external
application that will pickup...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |