Skip to content Skip to sidebar Skip to footer

Refreshing Or Reloading Tab Content Using Vertical Tab Menu

##Here is what i have## My code is just displaying php file which i included with php file so it already loads the data when the tab page loads. So after inserting data into d

Solution 1:

Why don't you use Jquery load() instead of php include() that will fulfil your need and it's pretty simple.

For eg:-

functionsomefunction(){
  $('#mydiv').load("phpfile.php");//load a php file into some division
  $('#mydiv').load("phpfile2.php", function(){//Do something after load});
}

You can do many things with this, like

  1. Load a file on some event.
  2. Load a file on time interval (every 5 seconds).
  3. Load a file when some task is done or changes is made and need to be shown.

For any queries comment down below.

Post a Comment for "Refreshing Or Reloading Tab Content Using Vertical Tab Menu"