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 are the design patterns in php?
What is the use of extract function in php?
How do you display the output directly to the browser?
What is the difference between implode() and explode() in php?
Do you know what is the function func_num_args() used for?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
What is a path Traversal?
What are the uses of explode() function?
What is csrf token in php?
What are the 3 scope levels available in php and how would you define them?
Who is the father of php and what is the current version of php and mysql?
What is zend studio for?
Who developed php?
What are include() and require() functions?
What is print_r?