javascript - Use Jquery load method unlimited times for a like button? -


i programming tinder picture vote on ( not dating same concept). want voting window, or rather said div, refresh after clicked example button. not whole page because of cashed images in browser , ugly static when post data via php post method , have refresh whole page. did structure now:

$('#indexmiddlelayout').load('rateablewindow.php'); 

the above line comes before in script tag content gets loaded begin , next code line comes after make possible reload again when sertain button clicked.

$('#iml-votingbuttonright').click(function () {     $('#indexmiddlelayout').load('rateablewindow.php'); }); 

this refreshes div once :/

i putting whole div , it's containing stuff seperate php file i, after clicked button, want refresh ajax request adds data sql database telling has been liked , after success i'd div or rather included page reload div refreshes.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -