Forum Moderators: coopster

Message Too Old, No Replies

load page in middle without anchors

         

emory

1:53 am on Feb 3, 2004 (gmt 0)

10+ Year Member



i am using php and have an "update.php" page that is a long list of input forms for an admin user to update database entries. each entry has its own "update" button.

so when the user edits an entry and clicks "update" s/he is directed to a processing script which updates the database and returns the user to "update.php".

heres my problem: the user is returned to the top of page (which is fairly long) so they have to scroll back down every time if they want to edit a number of subsequent entries. i would like the "update" submission to somehow save the current page view so that the user is returned to precisely the same scrolled down view as before.

can this be done without anchors?

i know i could use anchors but am i right that this would cause some scrolling up or down to the nearest anchor in general? i would prefer some way of doing it by percentage, pixels, etc so as to cause a sort of transparent departure and return to the page.

thanks, emory
(sorry about the length, i probably could have said that in about a sentence)

jatar_k

2:44 am on Feb 3, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think anchors are the easiest.

am i right that this would cause some scrolling up or down to the nearest anchor in general

I don't quite get that. There may be a jump if the page takes a few seconds to load.

mykel79

1:13 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



Exactly. As far as I can remember how IE works with this, it's not scrolling down to the anchor (which you could see), just a jump to exactly the position you want.