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
Post a Comment