|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
java script within php
is it possible to insert a java script within php scripts or tags.
say php: <?php script = java script; (java scripts here) ?> |
|
#2
|
||||
|
||||
|
RE: java script within php
I'm not quite sure what your asking. Just remember, that JavaScript is executed by the browser on the user's computer and PHP is executed by the server before the user sees the page. So, you cannot embed JavaScript in a PHP document and have them execute sequentially, but you can use PHP to create JavaScript.
|
|
#3
|
|||
|
|||
|
RE: java script within php
yes, it is possible.
example: [highlight=php] <? echo("<script language=javascript>n window.open('add_new.php','NewWindow','width=100,h eight=100'); </script>"); ?> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > java script within php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|