jquery - How do i call javascript function from php function? -


what equivalent of scriptmanager.registerstartupscript() of asp.net in php? want call javascript function php function i.e after event fired (may adding record database) want call javascript function. event fired using ajax of jquery.

thanks in advance :)

if event fired using jquery, can use success parameter of ajax options specify function call.

for example:

var options = { url:        'urlforajaxcall.php',  success:    function(){     //call function here    }, error:    function() {      alert('failure'); }};   $.ajax(options); 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

ssis - How do I fix the error unable to enlist Sybase database in distributed transaction? -

c++ - How do I get a multi line tooltip in MFC -