Results 1 to 4 of 4

Thread: Refresh a Div in a page ?

  1. #1
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Refresh a Div in a page ?

    Hello,

    I'm looking for a code/script which allows the user to refresh (via a button/link) a specific Div inside a Web page, without refresh the full page.

    Do you have any idea how to do that?

    Thanks a lot for your help
    Chris

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't know if you want it to refresh as in, you just updated that div, and want people to see the new content? Or just change the div to something else.
    If you want the first one then you may need ajax.
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    As Nile said, are you looking for just updating the DIV from a file. I.e. you have:

    div1

    *click*

    div1 reloads say...file1

    Or are you looking for something kind of like a automatic refresher for a page, but rather than refreshing the whole page just refresh your fantasy football stats display (just an example).

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    In an AJAX environment this refresh can be done more efficient manner as we can update the content of the div in question based on the response from the server.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •