$.getJSON will send GET to the server. Browsers are more likely to
cache a get, which will make it looks like the method is called, but
the browser returns the data that it has cached without actually
calling the server. If you want to ensure that it calls the server
every time, use $.ajax and set the datatype to json.
http://api.jquery.com/jQuery.ajax/
Also if you are using jQuery you may as well clean up the code a
little. Instead of
document.getElementById("joinedOrgs").innerHTML = "No organizations to
show";
use
$("#joinedOrgs").html("No organizations to show");
The other getElementById calls can be cleaned up the same way.
On Apr 30, 10:20 am, Mohamed Sekkina <
mohamed.sekk...@gmail.com>
wrote: