how to call to javascript function in the same file using php?
<p>I have php file called "PhpCallJavascript".</p>

<p>I try to call to function <code>CreateSVG()</code> from php code.</p>

<p>it is not working should I need here ajax?</p>

<p>or somthing else?</p>

<p>thx for any help.</p>

<p>the php file:</p>

<pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;?php echo '&lt;script type="text/javascript"&gt;', 'CreateSVG();', '&lt;/script&gt;'; ?&gt;
&lt;script&gt;
$(document).ready(function() {

    function CreateSVG(){
            var xmlns = "http://www.w3.org/2000/svg";
                alert(xmlns);
            }
});     
&lt;/script&gt;
</code></pre>
