1

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?

amiry jd
  • 27,021
  • 30
  • 116
  • 215
  • I'm looking for an answer to the same problem... I need to call some js code after Dajax call success... If you ever find out how to do this. please do post here. –  Aug 03 '12 at 00:26

1 Answers1

1

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> 
Community
  • 1
  • 1
amiry jd
  • 27,021
  • 30
  • 116
  • 215
  • The [Dajaxice documentation](http://docs.dajaxproject.com/dajaxice/create-my-first-dajaxice-function.html#invoque-it-from-your-js) agrees; probably the best place to start looking if you have other questions. – supervacuo Aug 03 '12 at 16:12