Protoplasm datepicker, Javascript, and PHP Issue
<p>I am using PHP to display form information, and I want to use Protoplasm to add datepicker functionality to the form. I've gotten it working in a test environment, but from what I've read and seen it doesn't work with PHP because of how the information is loaded. </p>

<p>The other examples I've looked at use JQuery and delay when the function is called until AFTER the page is loaded. I'm not sure how to do this with Protoplasm, or if that will even fix the issue.</p>

<p>Select bits of code:</p>

<p>in the head section</p>

<pre><code>&lt;script language="javascript" src="protoplasm.js"&gt;&lt;/script&gt;
&lt;script language="javascript"&gt;

Protoplasm.use('datepicker')
    .transform('input.datepicker');

&lt;/script&gt;
</code></pre>

<p>what it is acting on (the createEvent id)</p>

<pre><code>print("
        &lt;div id='postCreation'&gt;
            &lt;table&gt;
                &lt;tr&gt;
                    &lt;td id='statusUpdate'&gt;
                        &lt;form name='statusUpdate' action='" . $_SERVER['PHP_SELF'] . "' method='post'&gt;
                            &lt;textarea name='postContent' rows='2' cols='60'&gt;What's going on?&lt;/textarea&gt;
                            &lt;br /&gt;
                            &lt;input type='submit' name='statusUpdate' value='Post' /&gt;
                        &lt;/form&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td id='createEvent'&gt;
                        &lt;form name='createEvent' action='" . $_SERVER['PHP_SELF'] . "' method='post'&gt;
                            Event Name: &lt;input type='text' name='title' /&gt;
                            &lt;br /&gt;
                            Location: &lt;input type='text' name='location' /&gt;
                            &lt;br /&gt;
                            Event Time: &lt;input type='text' name='date' class='datepicker' /&gt;
                            &lt;br /&gt;
                            Info:
                            &lt;br /&gt;
                            &lt;textarea name='info' rows='2' cols='40'&gt;Event description&lt;/textarea&gt;
                            &lt;br /&gt;
                            &lt;input type='submit' name='createEvent' value='Make Event' /&gt;
                        &lt;/form&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/table&gt;
        &lt;input type='button' id='eventButton' onclick='showEvent()' value='Create Event' /&gt;
        &lt;/div&gt;&lt;!-End postCreation-&gt;
    ");
</code></pre>
