473,398 Members | 2,427 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,398 software developers and data experts.

Navigate to corresponding text

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
5 1439
RamananKalirajan
608 512MB
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
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
8,658 Expert Mod 8TB
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
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
8,658 Expert Mod 8TB
@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

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

Similar topics

2
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
1
by: Joe Bond | last post by:
Hi. I have a simple MS Access 2000 form in which I enter some customer data. When the address field is entered I need to see if a duplicate record exists. I need to know this *right away* before...
1
by: Ed | last post by:
Hi, I'm new .NET & C#. I have to do a form which has a tab control with 4 tabs. I want to be able to switch between these tabs with an access key. MSDN says that the '&' in a text of a button or...
0
by: ae | last post by:
can someone help me? i copied this from msdn, and can't get it to work on the Response.Redirect. I think it should be that, and I also tried Page.Navigate("www.yahoo.com"), but that gave me an...
4
by: Peter Newman | last post by:
i have a dataset and want to step thrpugh each row each time a user clicks a button,
0
by: Louis | last post by:
I‘m creating a web page that will consist of many pictures and text blocks. My goal is to confind text to individual pages and jumps to another page just like one would turn the pages of a magazine....
1
by: roveagh1 | last post by:
Hi I've been using the 2 year old link below to repeat values from previous record field into current corresponding field. It's worked fine for text but the last piece of advice was to use the same...
5
by: timnels | last post by:
I have a web browser control that I'd like to point at a HTML file in my installation directory. I am doing something like: string path = Path.GetDirectoryName(...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.