Setting 'scroll to' pos in PHP created page w/o javascript
Posted: Sat Sep 20, 2008 3:40 pm
How do I set the 'scroll to' position in a page without using javascript?
I know how to do it with javascript, and I obviously know how to jump to a place in a page using anchors.
However, in this case, javascript is unlikely to be enabled in the browser, and the page is actually created on the fly using PHP, as opposed to being a normal HTML page with anchors embedded in it.
What I need to do as the result of a postback is to
- Create a page
- Select a point part way down it that I want scrolled into view
- Make sure that the page, when displayed in the browser, scrolls to and displays that part
How do I do that?
I know how to do it with javascript, and I obviously know how to jump to a place in a page using anchors.
However, in this case, javascript is unlikely to be enabled in the browser, and the page is actually created on the fly using PHP, as opposed to being a normal HTML page with anchors embedded in it.
What I need to do as the result of a postback is to
- Create a page
- Select a point part way down it that I want scrolled into view
- Make sure that the page, when displayed in the browser, scrolls to and displays that part
How do I do that?