Topic: refresh to bottom of topic page

I added the line:

<meta http-equiv="refresh" content="25">

to the viewtopic.php page to auto refresh every 25 seconds.  It is working.  The only problem is that the page refreshes (using IE) to the top of the page, making the user scroll down to the bottom to see the last post.  How can I make the refresh go to the bottom of the page?

Any assistance will be greatly appreciated.
Thanks
Nett

Re: refresh to bottom of topic page

I modified the refresh code to:

<meta http-equiv="refresh" content="30" URL="#bottom">

But it is still jumping to the top when the page refreshes.  I added the following code as an anchor.   


<a href="#bottom">skip to the bottom
</a>

I included the text "skip to the bottom" so I can more easily see where it is on the page.  It shows up as a link, but when I click on it, nothing happens.

Nett

Re: refresh to bottom of topic page

Did you add a named anchor called bottom at the bottom of the page then?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: refresh to bottom of topic page

I thought I did.  I am a bit of a noob to this.  Would


<a href="#bottom">skip to the bottom
</a>

work as an anchor?

-Nett

Re: refresh to bottom of topic page

No, try:

<a name="bottom"></a>

Ideally, you should place that anchor around some content. Perhaps you could place it around the copyright link or something like that.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: refresh to bottom of topic page

I still cannot get the page to refresh to the bottom of the page.   I have included the line:

                        <meta http-equiv="refresh" content="10" URL="viewforum.php?id=<?php echo $cur_topic['forum_id'] #bottom" ?>

and at the bottom put:

             <a name="bottom"></a>

Any suggestions would be a great help.
Nett

7 (edited by Gary13579 2005-03-15 20:36)

Re: refresh to bottom of topic page

<meta http-equiv="refresh" content="10" URL="viewtopic.php?id=<?php echo $cur_topic['topic_id']; ?>#bottom" />

Does this work?

Indocron
$theQuestion = (2*b) || !(2*b);

Re: refresh to bottom of topic page

It refreshes every 10 seconds ... but it goes to the top of the page, not the bottom.
-Nett

Re: refresh to bottom of topic page

do you have a bookmark #bottom though??

Re: refresh to bottom of topic page

Can you copy paste the piece of code. so that we can see what you have done exactly there. if any thing is missing we ll help you..

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

11 (edited by technett 2005-03-17 13:51)

Re: refresh to bottom of topic page

I have tried

<meta http-equiv="refresh" content="10" URL="viewtopic.php?id=<?php echo $cur_topic['topic_id']; ?>#bottom" />

Tried both ['topic_id'] and ['forum_id']

and

<meta http-equiv="refresh" content="10" URL="viewforum.php?id=<?php echo $cur_topic['forum_id']#bottom" ?>

Tried both ['topic_id'] and ['forum_id']


They both refresh to the top. I added

<a name="bottom"></a>

to the bottom of the page.  Still refreshed to the top.
Thanks,
Nett

Re: refresh to bottom of topic page

I  added my #bottom anchor to the footer.php page and it seems to work now in IE.  Thanks for all of your suggestions.  You lead me down the right path!