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

Link to same page

119 100+
Hi to all,

I am trying to do some link management in my page, that is i have few contents in my page each have his own headings, like

links:

> heading 1
> heading 2
> heading 3

contents:

heanding1
xxxx
yyyyy
yyyy
yyyy

heading 2
xyz
xyz
xyz

heading 3
123
1231
123456

Now what i want to do is, i want to create a link for every headings like

<a href=#heading1>heading1</a>

When the user clicks in that link, then the content for that link should come up to the front,

this task is already furnished in wikipedia - sample

i want the same process for my page..

Can anyone help me please,

Thanks in advance,

Regards
magesh
Dec 12 '08 #1
6 4863
I take it you mean the content section of the Wiki page.
Could you not use anchors on your headers?

eg.
<a name = "header1">heading 1</a>
Header 1 Contents

Then for you link just <a href = "#header1"> Header 1 </a>

Is that what your looking for?
Mr. Prister
Dec 12 '08 #2
phpmagesh
119 100+
@Mr Prister
Hi

Thank you dude,

Regards
magesh
Dec 12 '08 #3
Hi there... no probs,

Just thought if you actually using header tags

eg. <h1>Header 1</h1>

Then you can simply give the header an ID:
<h1 id = "header 1">Header 1</h1>
Then reference that just like you would the anchor.

I don't think it matters which you use but that one looks nice!
Dec 12 '08 #4
Dormilich
8,658 Expert Mod 8TB
@Mr Prister
except that whitespace is not allowed in an ID. (only letters, digits, underscores, hyphens, periods and colons)

regards
Dec 12 '08 #5
@Dormilich

Damn you with your correctness and damn me for the mistake... but a valid point none the less.
Dec 12 '08 #6
Dormilich
8,658 Expert Mod 8TB
@Mr Prister
damn yes. I'm sure there are a lot of people out there who do not know that fact.
Dec 12 '08 #7

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

Similar topics

4
by: crhaynes | last post by:
I'm having trouble with my CSS. My links are black, my hover is orange and my active link is red. When I select a link it turns red but i does not retain that color when the selected page loads. ...
14
by: Don G | last post by:
Within the menu for my site, I have inserted 'class="current"' within the link for the current page. So the link looks somthing link: <li><a href="index.php" class="current">Home</a></li> The...
3
by: VIJAY KUMAR | last post by:
Hi pals, I am using 2 web forms (pages). In first page, i have Datagrid control and on second page i have a hyper link control to the first page and Add value to the data grid/Database. ...
1
by: Aki | last post by:
Hi! I've been trying to create a home link in a document that is shown in a frameset of two frames. My aim is to show the first documents that were shown in the frames when the frameset was...
26
by: Harrie | last post by:
Hi, After Brian mentioned the use for <link rel=..> for navigational purposes in another thread, I've been looking into it and found that HTML 3.2 has two other recognized link types than HTML...
36
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
6
by: Andreas Prilop | last post by:
What exactly are Chapters and Sections in the <LINK REL=...> tag? I have put some <LINK REL="Chapter"> tags into http://www.unics.uni-hannover.de/nhtcapri/bidirectional-text.html Is this the...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
2
by: Keith G Hicks | last post by:
I'm confused about how to code a link button to go to the page I need (asp.net 2.0) My root is "Website1" Here's the layout for the purposes of this question: Website1 (folder)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.