i just want to send data from php or ihtml to javascript. how could i these?
how to call a function in javascript from ihtml or php?
Collapse
X
-
Tags: None
-
Actually what i need is, i have one java script file and a php file. i have to call a function in java script from the php file. can you give solution to handle this situation.Originally posted by b1randonDo this by writing your javascript dynamically with PHP. For example:
[PHP]
<script>
var phpData = "<? echo $data ?>";
</script>
[/PHP]Comment
Comment