1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Refresh a DIV using Ajax ?

Discussion in 'JavaScript' started by priyakochin, Jul 6, 2008.

  1. #1
    I am having a DIV which only need to get refreshed if an error occurs in php code.Can anyone plz help me ?
     
    priyakochin, Jul 6, 2008 IP
  2. wing

    wing Active Member

    Messages:
    210
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Take a look at Xajax or sajax, it will give you an overview of the general idea behind how this is done. There are some other ajax/php libs out there. I have used one called TinyAjax in the past which was extremely simple to use, but the TinyAjax site is no longer online :(
     
    wing, Jul 6, 2008 IP
  3. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Anyone have a script ?
    I want to study ajax.
     
    priyakochin, Jul 6, 2008 IP
  4. jeffjustice

    jeffjustice Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are some tutorials on codervods.com/Default.aspx?mode=default&category=AJAX&days=All&currentIndex=0 that might help you.
     
    jeffjustice, Jul 8, 2008 IP
  5. ayaw

    ayaw Peon

    Messages:
    164
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    are you looking for getElementbyId("div-id").innerHTML = ""
     
    ayaw, Jul 8, 2008 IP