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.

document not loading quite right

Discussion in 'JavaScript' started by lektrikpuke, Sep 13, 2016.

  1. #1
    I have a main document (1st) that loads another document (2nd) with jQuery. The 2nd doc has a form, which submits to itself, and after submission reloads to the 1st. All worked fine while the data displayed on the 2nd page was done via PHP (echo constructed data to page). Decided to change format to JSON and display data to 2nd page via javascript. Works pretty much. However, after a form submit, when the 2nd page reloads, it is all but blank (because it reloaded before the data populated the divs again?). If I refresh the 1st page manually, the changes are displayed as expected. Any help, ideas?
     
    lektrikpuke, Sep 13, 2016 IP
  2. lektrikpuke

    lektrikpuke Well-Known Member

    Messages:
    297
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    113
    #2
    never mind, gonna do it a different/perhaps better way. =)
     
    lektrikpuke, Sep 13, 2016 IP