Is there any way to call a JAVASCRIPT function in PHP in AJAX

Answer Posted / ashiq

yes , who say no
definite their is way to call javascript function when
calling ajax, ajax execute php script and with in the ajax
commmand we can call after ajax function which execute the
javascript function code

examaple



if (request.readyState == 4)
{
if (request.status == 200)
{
data=request.responseText;
document.getElementById
(_dynCont).innerHTML=data;
try
{
jSFromAjax
(varbol=true,varStr='');
}
catch(ex){}
}
}


this is the function that execute the js with ajax

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static method php?

558


How can you propagate a session id?

541


Explain me difference between mysql_connect and mysql_pconnect?

557


How to include variables in double-quoted strings?

513


What is the difference between core php and php?

505






How can we create a database using php?

602


What is the apache?

533


Is php a low level language?

541


What types of Data Can Be Used as Array Keys?

571


How do you use bcrypt for hashing passwords in php?

534


Explain me how failures in execution are handled with include() and require() functions?

615


How do you parse and process html/xml in php?

554


How to redirect https to http url through .htaccess?

501


What is html used for?

559


Xplain is it possible to use com component in php?

534