here is my call:
<a href="#" onclick="Dajaxice.news.newspages(Dajax.process, {'p': {{ items.previous_page_number }},})" >prev</a>
How can I call a javascript function, after the ajax call success?
here is my call:
<a href="#" onclick="Dajaxice.news.newspages(Dajax.process, {'p': {{ items.previous_page_number }},})" >prev</a>
How can I call a javascript function, after the ajax call success?
I found the answer here. Cheers.
JAVASCRIPT
function my_callback(data){
Dajax.process(data);
// call my functions...
}
HTML
<a href="#" onclick="Dajaxice.news.newspages(my_callback, {'p': {{ items.previous_page_number }},})" >prev</a>