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
Where can I find php ini file?
What is a php class?
How cookies are trported from browsers to servers?
Explain the three different kinds of Arrays?
What are the functions for imap?
How is the ternary conditional operator used in php?
What is isset function in php?
Can we extend multiple classes in php?
How can I embed a java program in php file and what changes have to be done in php.ini file?
Why do we show php code in browser?
Which is the dependent variable?
in PHP for pdf which library used?
Is php strongly typed?
How do I expire a php session after 30 minutes?
What is substr() in php? And how it is used?