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
What Is a Persistent Cookie?
What is php7?
How to take a substring from a given string in php?
What is $_ get in php?
What is the use of curl()?
How can you retrieve data from the mysql database using php?
What is empty php?
Which function would you use to insert a record into a database in php?
How does the identity operator ===compare two values in PHP?
What is string in php?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
Why framework is used in php?
Explain me what is sql injection?
Tell me how to get the value of current session id?
How many types of php are there?