By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

Navigate to corresponding text

P: 58
Hi,
I am creating a help document in asp.net.In that first i am giving the contents as links using anchor tag. When i am clicking one of the link it need to navigate to the corresponding explanation of that content. The explanation of the content i have given as text. Pls help me.

Thanks in advance.
Deeps
Apr 21 '09 #1
Share this Question
Share on Google+
5 Replies


RamananKalirajan
100+
P: 607
This normal like anchoring within a page.

Ex:

<ul>
<li> <a href="#highlightedText">Go to Highlighted Text</a></li>
....
....
</ul>

.
.
.
.
<a name="highlightedText">
... Your Text Content Goes Here ....
</a>

This is the way u can do that..

Regards
Ramanan Kalirajan
Apr 21 '09 #2

P: 58
Hi,
Thanks for ur reply. Here wat u said i agree with it.But i dont want the explained text need to be a link. Is there anything like window.scollByLines(35). This i have given like
<a href="" runat="Server" onclick="window.scrollByLines(35);">Can i cancel</a>
But its not working is there any other javascript function that help me


Pls
Thanks in advance
Deeps
Apr 22 '09 #3

Dormilich
Expert Mod 5K+
P: 8,639
the scrollByLines() JScript is imho unnecessary overhead, a link as proposed is exactly doing what you want (even with Javascript disabled)
Apr 22 '09 #4

P: 58
Hi,
Thanks for reply..
Still i didnt get the answer for my question.
In one web page i am creating links as follows:
Expand|Select|Wrap|Line Numbers
  1. <a href="" runat="Server">Cancel the order</a>
  2. <a href="" runat="Server">Correct the order</a>
  3. <a href="" runat="Server">Mistake in the order</a>
This web page is a big one.
What i want is when clicking on the first link it need to navigate to the corresponding text in the same web page.
eg: the explanation text of first one is as follows:
Cancel the order
Cancelling the order...................
Hope u got it.
earlier i got one answer from bytes.com give it as like this.

This normal like anchoring within a page.

Ex:

Expand|Select|Wrap|Line Numbers
  1. <ul>
  2. <li> <a href="#highlightedText">Go to Highlighted Text</a></li>
  3. ....
  4. ....
  5. </ul>
  6.  
  7. .
  8. .
  9. .
  10. .
  11. <a name="highlightedText">
  12. ... Your Text Content Goes Here ....
  13. </a>
This is the way u can do that..

Regards
Ramanan Kalirajan


I dont want the explained text as link...

Can u please help me..........
Please
What i want to do for this one.....................


Thanks in advance
Deeps
Apr 22 '09 #5

Dormilich
Expert Mod 5K+
P: 8,639
@deegeorge
Expand|Select|Wrap|Line Numbers
  1. <a name="some_name"></a>
is not a link, it's just an anchor element (like <span>) you only call it a link if a href attribute is present. if you don't do any additional formatting, you will not even see it's an anchor element.

you can also put the anchor tag in front of the text, if you like:
Expand|Select|Wrap|Line Numbers
  1. <a name="some_name"></a>
  2. <!-- <a name="some_name"/> in XHTML-->
  3. <p>description coming here</p>
Apr 22 '09 #6

Post your reply

Sign in to post your reply or Sign up for a free account.