PDA

View Full Version : scrolling when page loads


Kiint
10-06-2007, 08:43 AM
on my current project I've been playing with a bit of code which scrolls users to part they are editing, for instance if you have a list of tasks and you edit one, then save...when the page reloads it will take you to the one you just edited.

I've been using the javascript code from here http://dotnetjunkies.com/HowTo/56233565-236B-4EF0-AE9B-5680CA019FDD.dcik

But realise that there is a method which Vbulletin uses to scroll you back to the message you just posted in reply to someone.

The above method works but could someone please point me to some instructions on how to do this with vbulletin as i'd rather use a function that's built in than use one from somewhere else.

Opserty
10-06-2007, 03:11 PM
I think vBulletin just uses standard anchor HTML tags with the name attribute. Then it just loads the page with a pound symbol ('#') followed by value of the name attribute.

E.g.

<a name="post1353983"></a>


(For your post).

Then in the URL it would be something like:

https://vborg.vbsupport.ru/showthread.php?t=159592#post1353983