/    Sign up×
Community /Pin to ProfileBookmark

hyperlink within DIV

Hi all,

I just set up a page to test, if I can have a hyperlink which points to his own DIV.

Just to understand, what I try to do…I am wondering how to get a navigation on the top and a two-row design in the middle where some hyperlinks are pointing to another sites. If I click on a link, I do not want to have the navigation reloaded (why should I have to, nothing changes to it…).

What I tried is something like that:

<div id=”leftSide”>
<a href=”test2.html” target=”_leftSide”>link</a>
</div>

I would like to have the page “test2.html” opened within the <DIV> “leftSide”. Is there a possibility to do that???

Thanks a lot,
texter01

to post a comment
CSS

13 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 02.2010 — Another document can be opened in a (i)frame or object element, not in a div.
Copy linkTweet thisAlerts:
@texter01authorMar 02.2010 — Thanks...sorry, I´m a totally noob to this...what are object elements??? Can you please give me an example?
Copy linkTweet thisAlerts:
@texter01authorMar 03.2010 — Thanks...but, what I trying to sort out is, if I have a navigaion on top of the side and I'm clicking on one link from the navigation, the whole side has to be reloaded. Is this correct, or do I have the chance, that only the <DIV>, where the content of the expected side (which is loaded by clicking on the link of the navigation) is shown, is refreshed or new loaded?
Copy linkTweet thisAlerts:
@FangMar 03.2010 — It can be done with a (i)frame or object element, in a div, or Ajax, but it is much better to use a server-side solution.

http://en.wikipedia.org/wiki/Server_Side_Includes

http://www.tizag.com/phpT/include.php
Copy linkTweet thisAlerts:
@texter01authorMar 03.2010 — OK, I know the include-"solution"...but I [B]HAVE[/B] to reload the navigation each time I click on a link...is this correct???
Copy linkTweet thisAlerts:
@FangMar 03.2010 — ...but I [B]HAVE[/B] to reload the navigation each time I click on a link...is this correct???[/QUOTE]Yes. Why is that a problem?
Copy linkTweet thisAlerts:
@texter01authorMar 03.2010 — Not really, it's just...in the past you had frames, and you could change or refresh just the part of the page, you need to change. The rest didn't had to be reloaded. In my eyes, this was an advantage of frames compared to CSS-design.
Copy linkTweet thisAlerts:
@FangMar 03.2010 — Not really, it's just...in the past you had frames, and you could change or refresh just the part of the page, you need to change. The rest didn't had to be reloaded. In my eyes, this was an advantage of frames compared to CSS-design.[/QUOTE]but a huge disadvantage in SEO and linking to a specific page in your site.
Copy linkTweet thisAlerts:
@criterion9Mar 03.2010 — Use AJAX if you only want to grab/load part of a page.
Copy linkTweet thisAlerts:
@texter01authorMar 03.2010 — OK, sounds nice...but, never done anything with AJAX...could you please give me an example???
Copy linkTweet thisAlerts:
@criterion9Mar 03.2010 — Did you look at the link I provided? It has a whole tutorial and explanation.
Copy linkTweet thisAlerts:
@texter01authorMar 03.2010 — Aah, ouh, sorry...no...thanks!!!
×

Success!

Help @texter01 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...