hyperlink to specific area in webpage

  • Thread starter Thread starter Sherman
  • Start date Start date
S

Sherman

I am attempting to create a hyperlink that will allow for
an entry to a specific area on a webpage. I can create
one to the webpage no problem, but I want to be able to
have the mouse cursor start on a specific field in the
webpage.

The field is 11 "tabs" into the webpage, I have no clue
how to create the tabs in a hyperlink.

I attempted to use the same style commands used for
email "mailto" ?subject= but that didn't work.


I appreciate any assistance you can offer.
 
Hi,

I'm not entirely sure if this will help, you might want
to consider a HTML bookmark.

Just include the following code where you would like the
page to 'jump' to.

<a name="%name%" %friendly name%> </a>

To link it, use the following format:

<a href="%pageURL%#%name%"> Hypertext </a>

When someone clicks the link, they will be directed to the
specific spot of %name% on the desired page.

Some examples:

Clicking on this link:
<a href="#connection"> Go directly to the Connections
index.</a>

Jumps you to the following section of the page you are
presently on:

<a name="connection" connection> Connection Index </a>

Alternatively, clicking on this link:

<a name="udpissue" href="techsolutions.php#udpissues">

Allows you to jump to that link (using the bookmark
#udpissues), and allows you to jump to the #udpissues
section on techsolutions.php.


Hope this helps,

Altrus

: I am attempting to create a hyperlink that will allow for
: an entry to a specific area on a webpage. I can create
: one to the webpage no problem, but I want to be able to
: have the mouse cursor start on a specific field in the
: webpage.
:
: The field is 11 "tabs" into the webpage, I have no clue
: how to create the tabs in a hyperlink.
:
: I attempted to use the same style commands used for
: email "mailto" ?subject= but that didn't work.
:
:
: I appreciate any assistance you can offer.
:
 
I have a similar question. I would like to create the hyperlink just in an
email. I have tried the html coding method in the previous post and it does
not work for the hyperlink I want to execute.

I know that if I want to have a link "auto scroll" to a specific point on a
page with a number, I can use a link like this that has the "number" after a
"#" symbol, for example:
http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=STANDARDS&p_id=9880#1910.303(g)(1)(i)

But... does anyone know if there is a way to have a link auto scroll to a
particular string of characters that are not numbers? As I said earlier,
unless I'm doing something wrong, I can't use the method in the previous post.

For example, let's say I wanted to create a link to the following page and
have it scroll down automatically to "Appendix A", anyone have any ideas if
this is possible or how to do it?
http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=DIRECTIVES&p_id=1817

Appendix A is near the bottom of the above page.

Thanks for your help.
 
safetygem said:
I have a similar question. I would like to create the hyperlink just in an
email. I have tried the html coding method in the previous post and it does
not work for the hyperlink I want to execute.

It doesn't work there for the same reason it's not working here.
Notice e.g. using the Status bar that the last character
(the trailing right parenthesis) is not being included in the link.

You can fix this in HTML using the OE Source pane.
Find the href= parameter in the anchor tag and append
the missing right parenthesis. Optionally fix the anchor text too.
When I did it (e.g. using Tools, Mail, Send a Link from IE)
the anchor text looked fine but in fact you can see that the tag
ends prematurely so that the trailing parenthesis is not part of it,
it just appears that way.

<example type=broken>
<A
I know that if I want to have a link "auto scroll" to a specific point on a
page with a number, I can use a link like this that has the "number" after a
"#" symbol, for example:
http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=STANDARDS&p_id=9880#1910.303(g)(1)(i)

But... does anyone know if there is a way to have a link auto scroll to a
particular string of characters that are not numbers? As I said earlier,
unless I'm doing something wrong, I can't use the method in the previous post.

For example, let's say I wanted to create a link to the following page and
have it scroll down automatically to "Appendix A", anyone have any ideas if
this is possible or how to do it?
http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=DIRECTIVES&p_id=1817

Appendix A is near the bottom of the above page.

There is no anchor in the source for it. Hence, unless you have
some control over the content of that page there is no way to position
there via a link. I think the best you could do is open the page, scroll
to the bottom (e.g. press Ctrl-End) and then do a Find-Up (Ctrl-f,Alt-u)
for that text.

Thanks for your help.


HTH

Robert Aldwinckle
---
 
Robert, sorry, but, your response isn't any help. I saw that my trailing
parenthesis was not copying for some reason when I pasted the link. See my
second posting (which also did not copy the trailing parenthesis, I just gave
up with pasting it after my second attempt). If you cut and past my link
into the address bar it takes you straight to the spot on the page just as I
intended. I was trying to provide an example of a working link that showed
what I wanted to accomplish and the message page did not accept my paste not
once, but, twice.

Now on to the real question. How do I create a similar working link with a
text only anchor. I want to create an anchor link to a specific portion on a
webage. If I do the whole "name" and "href" that does not seem to work. Not
only that, but, in some circumstances, people receive emails from me in plain
text. If the link was properly written they could cut and paste it into
their browser. An HTML only answer will not work for all circumstances like
the "#" shorcut works. It was my understanding that the "#" short cut should
work for text also, but, it does not seem to function properly. IE just
ignores everything after the "#" and links to the top of the page.

If you know how to do it, show me with a link to this page. Then I can take
your example and run with it.

Here is the page:
http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=DIRECTIVES&p_id=1817

Now on that page, I want to create a link to the following area, "EMPLOYER'S
SAFETY AND HEALTH PROGRAM"

This section of the page is near the bottom. Yes, I could just tell people
to scroll down, but, for clarity and on particularly large webpages, they
could miss where I want them to go.

Thanks for your assistance!
 
....
How do I create a similar working link with a text only anchor.
I want to create an anchor link to a specific portion on a webage.
If I do the whole "name" and "href" that does not seem to work.

As I indicated provided you have control over the source you
need to insert an new anchor name for what you want.

You already have a model for one in your source:

<example>
<A NAME="TopOfDocument"></A>
</example>

So just replace TopOfDocument with (e.g.) appa
and then insert in your source where you want it to start.

<A NAME="appa"></A>


Then you should be able to use it in either HTML or text messages with:

http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=DIRECTIVES&p_id=1817#appa


Since I do not have control over the source nor do I run a local webserver,
in order to test this I had to save the modified View, Source to a local file
and then used the anchor name with that. I was able to open that document
at Appendix A, even from a text message. However, because it was a local file
and not known to IE by that name I had to prefix it with file:/// and convert special
characters (e.g. spaces) to their equivalent escaped hex values (e.g. %20)
before OE could recognize it as a complete URL.


HTH

Robert
---
 
Thanks Robert. That helps alot! :)

Robert Aldwinckle said:
....

As I indicated provided you have control over the source you
need to insert an new anchor name for what you want.

You already have a model for one in your source:

<example>
<A NAME="TopOfDocument"></A>
</example>

So just replace TopOfDocument with (e.g.) appa
and then insert in your source where you want it to start.

<A NAME="appa"></A>


Then you should be able to use it in either HTML or text messages with:

http://www.osha.gov/pls/oshaweb/owadisp.show_document?p_table=DIRECTIVES&p_id=1817#appa


Since I do not have control over the source nor do I run a local webserver,
in order to test this I had to save the modified View, Source to a local file
and then used the anchor name with that. I was able to open that document
at Appendix A, even from a text message. However, because it was a local file
and not known to IE by that name I had to prefix it with file:/// and convert special
characters (e.g. spaces) to their equivalent escaped hex values (e.g. %20)
before OE could recognize it as a complete URL.


HTH

Robert
 
Back
Top