
July 20th, 2005, 04:17 PM
| | | Starting at a certain spot on the page
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 | 
July 20th, 2005, 04:17 PM
| | | Re: Starting at a certain spot on the page
J. David Kent wrote:
[color=blue]
> 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?[/color]
<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/ | 
July 20th, 2005, 04:17 PM
| | | Re: Starting at a certain spot on the page
In article <-Hmdnb2vXoxDR4CiXTWJjQ@berkshire.net> in
comp.infosystems. www.authoring.html, J. David Kent
<jdk@ccsispXXX.com> wrote:[color=blue]
>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?[/color]
Yes, certainly. Put an anchor at the start of the form, for instance
<a name="BuyForm">Buy Now!</a>
and then make sure that all links to this page link to it as
<a href="blahblah...page.htm#BuyForm">
--
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/ | 
July 20th, 2005, 04:17 PM
| | | Re: Starting at a certain spot on the page
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" <dorward@yahoo.com> wrote in message
news:bfkma1$muu$2$8300dec7@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/ | 
July 20th, 2005, 04:17 PM
| | | Re: Starting at a certain spot on the page
In article <bfkma1$muu$2$8300dec7@news.demon.co.uk> in
comp.infosystems. www.authoring.html, David Dorward
<dorward@yahoo.com> wrote:[color=blue]
>J. David Kent wrote:
>[color=green]
>> 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?[/color]
>
><form ... id="myForm">
>
>And append "#myForm" to the URI.[/color]
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..
--
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/ | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
Please don't post upside-down.
J. David Kent wrote:[color=blue]
> 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
>[/color]
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 | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
Stan Brown <MPG.1987b7381d6b56cc98b014@news.odyssey.net> wrote in
comp.infosystems. www.authoring.html:
[color=blue]
> In article <bfkma1$muu$2$8300dec7@news.demon.co.uk> in
> comp.infosystems. www.authoring.html, David Dorward
> <dorward@yahoo.com> wrote:[/color]
[color=blue][color=green]
>>J. David Kent wrote:[/color][/color]
[color=blue][color=green][color=darkred]
>>> 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?[/color][/color][/color]
[color=blue][color=green]
>><form ... id="myForm">
>>
>>And append "#myForm" to the URI.[/color][/color]
[color=blue]
> 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..[/color]
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 | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
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" <webmaster@clarkecomputers.com.au> wrote in message
news:3f1e0924$0$23603$5a62ac22@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
:
: | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
Stan Brown wrote:[color=blue]
> In article <bfkma1$muu$2$8300dec7@news.demon.co.uk> in
> comp.infosystems. www.authoring.html, David Dorward
> <dorward@yahoo.com> wrote:[color=green]
>>
>> <form ... id="myForm">
>>
>> And append "#myForm" to the URI.[/color]
>
> Won't work in Netscape 4, if I recall correctly.[/color]
You recall correctly... :-D
--
Mark Parnell http://www.clarkecomputers.com.au | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
In article <1561823.63d6cWWdi8@doctype.ca> in
comp.infosystems. www.authoring.html, Geoff Ball <usenet@doctype.ca>
wrote:[color=blue]
>Stan Brown <MPG.1987b7381d6b56cc98b014@news.odyssey.net> wrote in
>comp.infosystems. www.authoring.html:
>[color=green]
>> In article <bfkma1$muu$2$8300dec7@news.demon.co.uk> in
>> comp.infosystems. www.authoring.html, David Dorward
>> <dorward@yahoo.com> wrote:[/color]
>[color=green][color=darkred]
>>>J. David Kent wrote:[/color][/color]
>[color=green][color=darkred]
>>>> 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?[/color][/color]
>[color=green][color=darkred]
>>><form ... id="myForm">
>>>
>>>And append "#myForm" to the URI.[/color][/color]
>[color=green]
>> 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..[/color]
>
>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.[/color]
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/ | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
Stan Brown <MPG.1988575db309c22c98b019@news.odyssey.net> wrote in
comp.infosystems. www.authoring.html:
[color=blue]
> In article <1561823.63d6cWWdi8@doctype.ca> in
> comp.infosystems. www.authoring.html, Geoff Ball <usenet@doctype.ca>
> wrote:[/color]
[color=blue][color=green]
>>Stan Brown <MPG.1987b7381d6b56cc98b014@news.odyssey.net> wrote in
>>comp.infosystems. www.authoring.html:[/color][/color]
[color=blue][color=green][color=darkred]
>>> In article <bfkma1$muu$2$8300dec7@news.demon.co.uk> in
>>> comp.infosystems. www.authoring.html, David Dorward
>>> <dorward@yahoo.com> wrote:[/color][/color][/color]
[color=blue][color=green][color=darkred]
>>>><form ... id="myForm">
>>>>
>>>>And append "#myForm" to the URI.[/color][/color][/color]
[color=blue][color=green][color=darkred]
>>> 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..[/color][/color][/color]
[color=blue][color=green]
>>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.[/color][/color]
[color=blue]
> 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.[/color]
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 | 
July 20th, 2005, 04:18 PM
| | | Re: Starting at a certain spot on the page
On Wed, Jul 23, Geoff Ball inscribed on the eternal scroll:
[color=blue]
> Stan Brown <MPG.1988575db309c22c98b019@news.odyssey.net> wrote in
> comp.infosystems. www.authoring.html:[/color]
[color=blue][color=green]
> > Sigh.[/color][/color]
Indeed. I also felt increasing impatience at the way this discussion
seemed to be going in circles.
[color=blue][color=green]
> > <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.[/color]
>
> 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.[/color]
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? |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over network members.
|