Jump to content

NoobLaPHP

Members
  • Posts

    20
  • Joined

  • Last visited

NoobLaPHP's Achievements

Newbie

Newbie (1/5)

0

Reputation

1

Community Answers

  1. I managed to sort it. Not sure if it is correct but it works var interval = setInterval(function() { // ajax call $.get ( "my_ajax.php", function(data) { $("#divA").html(data.A); // put results into their $("#divB").html(data.B); // respective divs }, "json" ) },1000); Cheers for your help.
  2. Nice, this is doing exactly what i need. Now another question i have is, is there a way to get this to refresh using some sort of setInterval?
  3. I am trying to reload multiple divs. for things like mail and notifications on the same page of a website. I want to call all the information from another page but am unsure where to go as i have only just started learning more about ajax. I want to set it to call for the information just using something basic like <span id=notifications></span> To which it will show up the text needed when on the website but i really don't know where else to start. Any help will be greatly appreciated
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.