Single part refersh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ctsasikumar
    New Member
    • Nov 2006
    • 17

    #1

    Single part refersh

    Hai Guys,

    Anybody knows How to refersh a sigle part in a page.i know meta refersh and heder rediect refersh.What want is whole page single part only refersh partiular time period..Please helme

    Thanks and Regards
    Sasikumar.T
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Have you tried making the refreshable part within a <div> and dynamically changing its content using the DOM? Like in the following sample where clicking on the text line makes it be replaced by another text line.[html]<script type="text/javascript">
    var myarray=["Text 1", "Text 2", "Text 3", "Text 4"]
    var ind=0;
    function changeDiv(){
    document.getEle mentById("MyDiv ").innerHTM L = myarray[ind]
    ind=ind+1
    if (ind > 3)
    ind=0
    }
    </script>
    Click the following text line and see it change:
    <div id="MyDiv" onclick="change Div()">Click here</div>[/html]

    Ronald :cool:

    Comment

    Working...