Is it possible to assign a php variable to javascript ? And
also is it possible to fetch the page contents if the url
is not under our control ?
Answer / gagan rana
Yes ,it is possible by doing like the following:
<?php
$x = 'hai!';
echo "<script>var x = '" . $x . "';</script>";
?>
| Is This Answer Correct ? | 3 Yes | 0 No |
What is a good javascript editor?
What is javascript bom?
How to select an element by id and swapping an image?
I am working on project in asp.net in which i have opned doc file on client side.plz send me coding on markpatentoffice@yahoo.com.
What is a hash javascript?
What does "1"+2+3 evaluate to?
How do I enable cookies safari?
Explain how to detect the operating system on the client machine?
How javascript sort function works?
Is javascript frontend or backend?
how to create a moving div?
How do I view javascript files in chrome?