|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
Is it possible to have a page refresh and scroll to the bottom automatically?
If so, please let me know how? I can get the chat room to refresh ok, but it will not scroll to the bottom of the page each time. |
|
#2
|
|||
|
|||
|
RE: Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
this should be in the client-side topic.
put <a name="bottom"></a> at the bottom of your page, and make the refresh address - www.mypage.com/chat.php#bottom |
|
#3
|
|||
|
|||
|
RE: Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
Yeah, I did that and it did it once but then would not refresh and scroll to the bottom again. It would only refresh once and scroll to the bottom once. I could not get it to keep refreshing and keep scrolling to the bottom.
Do you know of any other ways? |
|
#4
|
|||
|
|||
|
RE: Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
It worked for me once and for some reason it would only refresh once. When it did refresh once it would scroll to the bottom. The problem is its only refreshing once.
Basically what I need is for this to keep refreshing and scrolling to the bottom each time. See try this link... http://www.baylorfans.com/test.html#bottom See if it refreshes for you and scrolls down more than once? Thanks |
|
#5
|
|||
|
|||
|
RE: Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
try using javascript like:
document.location.reload(); or document.location.href='url/blah...'; |
|
#6
|
|||
|
|||
|
RE: Wrote a Chat Room Using Sessions. Refresh/Scroll Question??
TOP OF PAGE
<META HTTP-EQUIV=Refresh CONTENT="5; URL=chat.php"> <script language="javascript"> document.location.href='#bottom'; </script> then down the bottom <a name="bottom"></a> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Wrote a Chat Room Using Sessions. Refresh/Scroll Question?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|