The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Links, Links
Loredi
post Dec 29 2013, 04:13 PM
Post #1





Group: Members
Posts: 1
Joined: 29-December 13
Member No.: 20,161



Hi there ! I want to ask a simple question if i create a link,in order to open the content of this link for example a text i must create another html page in a new notepad document or is there any way to include all the query in the same document ? Thank you !
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Dec 29 2013, 05:36 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



You could have the additional content in a hidden div, and then the click would expose that div.

jQuery would be the easiest way to do that.
Here's an example you can follow

Here's a simple example you can play around with to get the idea.

This post has been edited by jimlongo: Dec 29 2013, 05:39 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Dec 29 2013, 09:15 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(Loredi @ Dec 29 2013, 10:13 PM) *

Hi there ! I want to ask a simple question if i create a link,in order to open the content of this link for example a text i must create another html page in a new notepad document or is there any way to include all the query in the same document ? Thank you !

You could link to another part of the same page: http://htmlhelp.com/faq/html/links.html#named-anchor

If the page is generated by a server-side script (which may be kept in a single document), you can let the script create different content depending on e.g. the querystring (the part after the "?" in a URL). For example, on this forum the same index.php page is used all the time.

You can also show more content with javascript or jQuery (like jimlongo suggested), but there's an increased probability for browser bugs whenever such client-side scripts are used.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 12:20 AM