Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery validation & Prototypes.js conflict issues?
    primarykey
    data
    text
    <p><a href="http://www.therapistsurvey.com/vignette0/vig01" rel="nofollow">http://www.therapistsurvey.com/vignette0/vig01</a></p> <p>Notice that once you click the See Parents' Response, the link will trigger a javascript that shows a div This is done using the following lines:</p> <pre><code> &lt;%= javascript_include_tag :defaults %&gt; &lt;%= link_to_function "Click to See Parents' Response: ", "Element.toggle('response')" %&gt; &lt;div id="response" style="display:none"&gt; //input &lt;%= button_to "Next", :action =&gt; 'vig02' %&gt; &lt;/div&gt; </code></pre> <p>However, in my main template layout I included the following jquery libraries:</p> <pre><code>&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; &lt;%= javascript_include_tag 'jquery-1.4.2', 'jquery.validate', 'application' %&gt; </code></pre> <p>This will basically disable that action. I need these libraries for jquery validation. </p> <p>I'm assuming there is some comparability issues with using both this libraries at the same time.</p> <p>If your using chrome and inspect the page elements you'll see an error being generated:</p> <p>When you load the page:</p> <pre><code> Uncaught TypeError: Object #&lt;an Object&gt; has no method 'dispatchEvent' prototype.js:4071 </code></pre> <p>Ever time you click the link:</p> <pre><code>Uncaught TypeError: Cannot read property 'display' of undefined Element.Methods.visibleprototype.js:1579 Element.Methods.toggleprototype.js:1584 (anonymous function)vig01:59 onclickvig01:60 </code></pre> <p>Any advice on how to address this issue? THanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload