Click to See Complete Forum and Search --> : is it possible to make a link inside a page without an anchor?


verros
06-05-2006, 01:41 PM
I dont think its possible, but if it is that would solve a problem of mine.

I dont see how it can be done tho...... with iframe? CSS?


thanks

GaryS
06-05-2006, 01:55 PM
Note sure what you mean. Could you elaborate?

the tree
06-05-2006, 02:08 PM
I have no idea what you mean, in this context a link is an anchor.

felgall
06-05-2006, 04:35 PM
The tag for making a link is <a href="address">text</a>

The tag for making an anchor is <a name="label" id="label"></a>

As you can see they have nothing whatever in common apart from the <a at the front and a> at the end.

the tree
06-05-2006, 05:30 PM
felgall, could you please confirm, for the sake of my sanity, that was sarcasm right?

g2k556
06-05-2006, 05:37 PM
you mean a link without an underline mabey?? When you ask questions you need to elaborate a bit more, if you want help you need to be discriptive.

tc_man84
06-06-2006, 12:32 AM
Come on guys. It seems like he wants to link to various places within a web page directly from a menu at the top of the page without using anchors. Apart from using framesets or inline frames, I don't see any other way around this.

NogDog
06-06-2006, 01:24 AM
Not sure if this addresses the question, but you can link to any HTML element that has an ID associated with it:

<!-- the link -->
<p><a href="#example">Go to example</a></p>

<!-- the target -->
<h2 id="example">Example</h2>
<p>This is the example. Clicking the above link will scroll the page
to the H2 element with the ID of "example".</p>

verros
06-06-2006, 09:17 AM
wow sorry, knowing you would all replied so fast I would have come see that thread sooner.

an anchor link is a link made using an anchor in a page.

example:

link.htm#anchor

So what am wondering is, it is possible doing a link inside a page WITHOUT using the "#anchor"

the tree
06-06-2006, 12:49 PM
Well that's not what anchor means, an anchor is an element that conects one location to another, defined with the 'a' tag.

But back to the point, no thier isn't. You might play with this javascript idea (http://bonrouge.com/br.php?page=switchcontent) or maybe use sever-side includes. I'm not really sure what your objective is here.

verros
06-06-2006, 01:23 PM
Well that's not what anchor means, an anchor is an element that conects one location to another, defined with the 'a' tag.

an anchor is the element you put within a page whose destination is not at the top of a page.

An anchor link is the the line using the anchor: http://www.link.html#anchor



But back to the point, no thier isn't. You might play with this javascript idea (http://bonrouge.com/br.php?page=switchcontent) or maybe use sever-side includes. I'm not really sure what your objective is here.

so I want to know if its possible to make a link to a destination inside a page without using an #anchor in the link or in the page.

I have a menutree using javascript/CSS/DHTML coding and I kept having error when I want it to stay open in my destination links WHEN I USE AN ANCHOR IN MY LINK. So I thought that maybe I could with frame or any other tricks go around my problem.

thats complicated to explain, that's why I wanted to kept it simple in my previous posts.

the tree
06-06-2006, 02:30 PM
an anchor is the element you put within a page whose destination is not at the top of a page.
An anchor link is the the line using the anchor.An anchor is an element defined by the 'a' tag, whatever you ultimately choose to do with it. Read the specifications! (http://www.w3.org/TR/html4/struct/links.html#edef-A)
so I want to know if its possible to make a link to a destination inside a page without using an #anchor in the link or in the page.To link to a specific position in a document you may only use the "view" part of the URL, the bit after the #.
I have a menutree using javascript/CSS/DHTML coding and I kept having error when I want it to stay open in my destination links WHEN I USE AN ANCHOR IN MY LINK. So I thought that maybe I could with frame or any other tricks go around my problem.Sounds like there's something wrong with your menu, it shouldn't be causing problems like that.
thats complicated to explain, that's why I wanted to kept it simple in my previous posts.It's really not, learn your terminology and give as full a description as you can, each time.

And please, DON'T SHOUT.

GaryS
06-06-2006, 02:37 PM
Verros, if I've read you correctly, your navigation contains links to page "views" (as defined by the tree, above)?

If that's the case, it's highly unusual... and probably brings with it a raft of usability issues.

the tree
06-06-2006, 02:42 PM
Internal page navigation is quite common really, it shouldn't be causing problems in itself. But when combined with needlessly complex javascript, problems can come from practically anywhere.

verros
06-06-2006, 02:59 PM
Verros, if I've read you correctly, your navigation contains links to page "views" (as defined by the tree, above)?

If that's the case, it's highly unusual... and probably brings with it a raft of usability issues.

and thats why I disabled the option that was showing the destination in my Javascript. Evertime a link using an anchor in the menu was activated the menu become eratic.

Finally I was just trying to find a way around using anchor links but I think its not possible since no one came up with an idea.

So that mean I will have to fix the javascript.

the tree
06-06-2006, 03:24 PM
and thats why I disabled the option that was showing the destination in my Javascript.I'm sorry, why did you do this? What are you trying to hide?
Evertime a link using an anchor in the menu was activated the menu become eratic.That sounds quite a nasty menu, what's the rest of the javascript there for?
Finally I was just trying to find a way around using anchor linksPerhaps, you're trying to get around the wrong thing. Sometimes, you need to step back and look at the bigger picture (possibly learning your terminology while your at it).
but I think its not possible since no one came up with an idea.
Hmpf, what was wrong with the script I linked to?Hmpf. What was wrong with the script I linked to?
So that mean I will have to fix the javascript.Or possibly rid yourself of it, if it's causing too many problems.

verros
06-06-2006, 03:33 PM
hey the tree, thanks for the help that you so desperately want to offer but if you havent already understand what am talking about then you cant help.

so stop playing around with me like, its annoying.

I was probably coding HTML while you were still in elementary school.

Yes I have a nasty Javascript, yes I was trying to find a way around and yes I will have to find another solution.

with that, have a good day

the tree
06-06-2006, 05:26 PM
Somehow I doubt that you were "coding" HTML when I was in elementary school for quite a few reasons: You're confusing anchors and interal links, that is a schoolyard error if ever I saw one. The clue is in the tag name. You're link-spoofing, which is just plain childish. coding HTMLNo-one "codes" HTML, sure it's a commonly used phrase and plenty people use it knowing that it's wrong but after a certain degree of experience (say, one years hobbising) it becomes irritating and I've never seen highly experienced devlopers say it. javascript/CSS/DHTMLDHTML is a combination of Javascipt and CSS, another schoolyard error. You've shouted on a forum, displaying the nettiquite of quite a n00b, as some might say. Your grammer is lousy, even if you're a francophone, your grammer is still lousy. I never went to "elementary school", you might have been able to guess this from the components of my profile displayed with everyone of my posts.Maybe, just maybe, you don't know what the problem is and you need to accept the possibility that these "anchors" as you must insist on calling them aren't what's the problem and you've created a Javascript based menu that is going to bring up a lot more problems if you try to patch up little bits and not bother to scrap your menu system and start again.

t2090
06-06-2006, 09:03 PM
there is no way im 99.9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999% sure and i agree with tree

t2090
06-06-2006, 09:05 PM
The tag for making a link is <a href="address">text</a>

The tag for making an anchor is <a name="label" id="label"></a>

As you can see they have nothing whatever in common apart from the <a at the front and a> at the end.

omg how stupid are you felgall the a is the damn anchor!!!

the tree
06-07-2006, 05:13 AM
I still suspect the felgall was being sarcastic.

tc_man84
06-19-2006, 10:59 PM
I dunno, it's hard to say whether he was being serious or not. In my understanding, he didn't denote any sarcasm whatsoever. But he would have had to be sarcastic, nobody who has any experience with HTML would make that mistake.