Insert new JS method from JS
<p>I need call from JavaScript file php like example   </p>

<pre><code>$.post("my.php", 
           function(data)
       {
            data; // data is string "function Alert(){ alert("text"); };"
    }
);
</code></pre>

<p>so from php I get new JS function. Like example function Alert(){ alert("text"); };</p>

<p>Can I insert that functionality into loaded js file? And how to do it?</p>
