Auto Refresh content

Discussion in 'JavaScript' started by ludin, Sep 23, 2007.

  1. #1
    i need a javascript that refreshes only a part of a page.. i need to refresh a text and image..


    can anyone help..
     
    ludin, Sep 23, 2007 IP
  2. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #2
    <iframe> or AJAX?

    You can put the contents in an iframe, put the iframe in the page and reload that or you can use AJAX.

    If it is only the image, you could have just changed the src of the image to the same URL (with a query string or something at the end to get the browser to get a fresh copy).
     
    krt, Sep 23, 2007 IP
  3. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have to be more descriptive.
     
    MMJ, Sep 24, 2007 IP
  4. adrevol

    adrevol Active Member

    Messages:
    124
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    use settimeout function, and make one ajax request to the server .. thats it
     
    adrevol, Sep 27, 2007 IP
  5. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #5
    I think AJAX will be a good job for this one
     
    temp2, Oct 1, 2007 IP
  6. ludin

    ludin Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks all
    gona try it out..
     
    ludin, Oct 17, 2007 IP