1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Aurich, Niedersachsen, Germany
    Rep Power
    Hi again,

    I am on a chat and it works quite good, but there is a problem. Because I fetch all the data out of a database and do not want to refresh the page every 5 seconds, I got the problem that the Browser shows just the beginning of the document while the new text is below and is not seen.
    Is there a tag or something that tells the browser to move to the end of the page? I tried it with JavaScipt (scrollBy), but as soon as I called the function twice it stopped working!
    Please do not mind my bad english!

    CU Marc
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Niagara Falls (On the wrong side of the gorge)
    Rep Power
    Not that I can think of right now. But you can get around it by displaying it in a textbox. If a textbox overflows it automatically scrolls to the bottom:

    <textbox name="whatever"><? print $output text ?></textbox>

    The other added benefit is you don't have to worry about embedded scripts being executed as the browser won't interpret anything placed in a textbox.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Rep Power
    There is a easy solution for this prob.
    For my own chatsystem I simply called a Java function that contains this:

    var browserName = navigator.appName;
    var browserVer = parseInt(navigator.appVersion);

    if (browserName == 'Netscape' && browserVer >= 3) version = 'NC';
    if (browserName == 'Microsoft Internet Explorer' && browserVer >= 4) version = 'IE';

    var pageY = 50000;

    Guess this will do it .. otherwise drop me a note ,)

Similar Threads

  1. DB2 SQL Optimazation
    By act7656 in forum DB2 Development
    Replies: 1
    Last Post: June 8th, 2004, 10:49 PM
  2. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 16th, 2004, 11:21 PM
  3. how do I save a web page in VB6?
    By rabid lemming in forum Visual Basic Programming
    Replies: 5
    Last Post: January 9th, 2004, 02:36 AM
  4. Mind Boggling Serialization Error
    By bergy in forum Visual Basic Programming
    Replies: 3
    Last Post: January 6th, 2004, 02:13 PM
  5. Checking installed Office components
    By walliscw in forum Visual Basic Programming
    Replies: 2
    Last Post: November 5th, 2003, 04:35 AM

IMN logo majestic logo threadwatch logo seochat tools logo