Click to See Complete Forum and Search --> : <a name=something id=something> does nothing!


jakykong
02-22-2005, 07:51 PM
I am working on a shoutbox (in ASP), that will be much like a chatroom, but the messages stay for anyone just coming in to see ...
the engine is working, this is not the problem. The output is correct, and the posting works. My problem does not lie in the ASP (otherwise i wouldn't have posted it here)!

a working example is at http://www.theanythingbox.com/shoutbox/display.asp

Please note, one line above the <form> tag, there is this line of code: <A name="endofposts" id="endofposts">
it is placed between the last row of the posts and the row containing the form.

When i put into the address bar of my browser (internet explorer 6 sp1): http://www.theanythingbox.com/shoutbox/display.asp#endofposts nothing happens! i still see the top of the page, even though i intend to see near the bottom! Can someone tell me the (most likely obvious) mistake i am making?

I don't usually use anchors, nearly never need them - so when i do i'm not as confident as i am working with any other HTML...

rhsunderground
02-22-2005, 08:12 PM
well as of now you don't have enough content for the page to scroll down to that anchor.

jakykong
02-22-2005, 08:14 PM
even when i make the window smaller, so that i DO have content on my browser to need to scroll down it doesent

of course, post works too --- at the moment i want to get it working, if you need to flood it to do that, then by all means, FLOOD IT!

rhsunderground
02-22-2005, 08:29 PM
ah HA! the location of the anchor you have there is at the top of the page. for example, in http://www.skinneralamod.com/opr04BDOs.html i added the anchor at the text "sss," which comes after the code, but before the code is outputted. but in http://www.skinneralamod.com/opr04BDO.html i put the anchor in the last table cell and it shot to there. so you just need to move your anchor.

jakykong
02-22-2005, 08:53 PM
OH! thanks so much!

yup that was simple .... still don't quite understand, though, why putting the anchor where i did didn't work. Oh, well! whatever works is fine with me!


i was thinking to point it after the messages but before the form, i guess putting it between <TR>s won't work!