title: Apply javascript with the script tag
body: <p>I have a page where users can creates their own script to modify texts on the server (don't worry the access is restricted to a few users). So the users only have three fields they can fill, one with the name of the rule, another with the expression to replace and a last one with what to replace it with:</p>
  
  <pre><code>&lt;label id="name"&gt;Name: &lt;/label&gt; &lt;input type="text" name="ruleName" size="50" id="ruleName"&gt;&lt;/input&gt; &lt;/br&gt;
  &lt;label id="input"&gt;Replace: &lt;/label&gt; &lt;input type="text" size="50" name="inputStep1" id="inputStep1"&gt;&lt;/input&gt; &lt;/br&gt;
  &lt;label id="output"&gt;By:&lt;/label&gt; &lt;input type="text" size="50" id="outputStep1"&gt;&lt;/input&gt;&lt;/br&gt;
  </code></pre>
  
  <p>After that the rules are stored in a file on the server via a <code>php</code> post (I'll spare you the unecessary details of this command...). and then the rules are listed in a form with checkboxes, and I want that when the checkboxes are clicked the rule is applied. </p>
  
  <p>The only thing I could come up with was to import the script file via a script tag but only by importing it it doesn't run the inside script.</p>
  
  <p>How do I do that?</p>
  
  <p>Thanks</p>