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 difference between mysql_fetch_array and mysql_fetch_assoc?

495


How do I see how many pages per session in google analytics?

521


What is the difference between php and javascript?

558


What is the use of htmlspecialchars in php?

522


What's php?

629






how can i develop forum code? any one pleale help me on this question

1518


Can constructor be private in php?

532


How can we connect to a mysql database from a php script?

527


Is it possible to extend the execution time of a php script?

491


A process is identified by a unique___

592


How to find the length of a string?

547


What is the difference between md5(), crc32() and sha1() crypto on php?

613


How to delete file in php?

522


How to Retrieve the Session ID of the Current Session?

526


What type of language is php?

517