<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Carlos,<div><br></div><div>we are including jquery in the template in opencms 8 as follows:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(75, 145, 145); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #009292"><</span>cms:enable-ade<span style="color: #009292">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(75, 145, 145); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #009292"><</span>cms:jquery<span style="color: #000000"> </span><span style="color: #961f8d">dynamic</span><span style="color: #000000">=</span><span style="color: #4239f6">"true"</span><span style="color: #000000"> </span><span style="color: #009292">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(75, 145, 145); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><span style="color: #009292"><</span>cms:jquery<span style="color: #000000"> </span><span style="color: rgb(150, 31, 141); ">dynamic</span><span class="Apple-style-span" style="color: rgb(75, 145, 145); font-family: Monaco; font-size: 11px; "><span style="color: rgb(0, 0, 0); ">=</span></span><span class="Apple-style-span" style="color: rgb(75, 145, 145); font-family: Monaco; font-size: 11px; "><span style="color: rgb(66, 57, 246); ">"true"</span></span><span class="Apple-style-span" style="color: rgb(75, 145, 145); font-family: Monaco; font-size: 11px; "><span style="color: rgb(0, 0, 0); "> </span></span><span style="color: #961f8d">js</span><span style="color: #000000">=</span><span style="color: #4239f6">"jquery"</span><span style="color: #009292">/></span></div><div><span style="color: #009292"><br></span></div><div><font class="Apple-style-span" color="#009292"><br></font></div><div><div>I think, the first cms:jquery-Tag includes the javascript-load-Script from </div><div> /system/workplace/resources/jquery/load.js</div><div><br></div><div>the second one includes the script jquery.js, from one of the folders</div><div> /system/workplace/resources/jquery/packed</div><div> /system/workplace/resources/jquery/unpacked</div><div><br></div><div>As far as I know, the tag includes the version from "unpacked" when you are in offline project. In the online project the packed version is used.</div><div> </div><div>You can include other scripts from packed / unpacked by passing the basename of the script in the js-Attribute. </div><div>So <cms:jquery dynamic="true" js="jquery.ui"/> should load "jquery.ui.js". (I didn't try this by myself but this is the way I expect things to work)</div><div><br></div><div>Regards</div><div>Christoph</div><div><br></div><div><br></div><div>Am 16.08.2011 um 00:34 schrieb Carlos Eduardo Atencio Torres:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello guys, I'm new in OpenCMS and I'm experiencing some troubles:<br><br>I tried to add Jquery effects in my OpenCMS web site, so I follow the next steps:<br><br>1. Upload the jquery.js into the folder using the Workplace Panel<br>
2. Create a HTML Pattern Page<br>3. Create a JSP where I put the Jquery code.<br>4. Add into the index.html (A container page), my HTML created and my JSP as formatter<br><br>Until then, when I click on refresh of the main site, the effects are dissable but the code is there.<br>
I solved it adding the next sentence in the JSP:<br><br><cms:enable-ade/><br><br>And it worked!, the Jquery code was working OK, nevertheless I was no able to add <br>content via the main site. Only via the Workplace Panel.<br>
<br>So, what is that command (cms-enable-ade)? I just saw it in some tutorial I don't remember.). <br>Is there a better way to allow the use of Jquery in my OpenCMS web site?<br><br>Thank you very much<br><br>-- <br>
Carlos E. A. Torres<br>
<br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></blockquote></div><br></div></body></html>