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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -