refreshing only part of a web page

Discussion in 'Software' started by PeterK2003, Feb 14, 2006.

  1. PeterK2003

    PeterK2003 Private E-2

    Is there any easy way to refresh only part of a web page? As i have it setup now the whole page refreshes which is kinda stupid b/c only the middle of the page changes.

    Thanks

    Peter
     
  2. Kodo

    Kodo SNATCHSQUATCH

    Either an iFrame or the use of Ajax is would be your best bet.
     
  3. PeterK2003

    PeterK2003 Private E-2

    i have never head of whatever those are but i'll look into it thanks.

    Peter
     
  4. HorrorKid

    HorrorKid Private E-2

    i have this in a corner of my page, its a frame with a picture in it which keeps refreshing

    Code:
    <iframe allowtransparency="true" style="width:180px;border:0px;background:transparent;overflow:hidden;" src="WEBADDRESS">
    </iframe>
    the web address i have it pointing to has a script that refreshes the page so many seconds
    Code:
    <script>
    <!--
    
    /*
    Auto Refresh Page with Time script
    By JavaScript Kit (javascriptkit.com)
    Over 200+ free scripts here!
    */
    
    //enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
    var limit="0:10"
    
    if (document.images){
    var parselimit=limit.split(":")
    parselimit=parselimit[0]*60+parselimit[1]*1
    }
    function beginrefresh(){
    if (!document.images)
    return
    if (parselimit==1)
    window.location.reload()
    else{ 
    parselimit-=1
    curmin=Math.floor(parselimit/60)
    cursec=parselimit%60
    if (curmin!=0)
    curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
    else
    curtime=cursec+" seconds left until page refresh!"
    window.status=curtime
    setTimeout("beginrefresh()",1000)
    }
    }
    
    window.onload=beginrefresh
    //-->
    </script>
    <html>
    <body>
    <style>
    body{
    background-color:transparent;
    border:0px;
    overflow:hidden;
    }
    </style>
    hope that helped out or gave you some ideas
    :-D
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds