I want to use jquery to replace prototype.
because prototype conflict with jquery and i don't to use prototype.
any idea or a tutorial how to do it?
actually i have some idea how to do it but i can't sure it will be very good
to work.
step 1:
all appfuse jsp page add <meta name="decorator" content="appfuse_decorator">
step 2:
on sitemesh.xml
<decorator-mappers>
<mapper
class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
<param name="config" value="${decorators-file}"/>
</mapper>
</decorator-mappers>
replace to
<decorator-mappers>
<mapper
class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
</mapper>
<mapper
class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
<param name="config" value="${decorators-file}"/>
</mapper>
</decorator-mappers>
step 3:
copy a default.jsp and rename to "appfuse_decorator.jsp"
step 4:
on default.jsp
<script type="text/javascript" src="<c:url
value='/scripts/prototype.js'/>"></script>
<script type="text/javascript" src="<c:url
value='/scripts/scriptaculous.js'/>"></script>
<script type="text/javascript" src="<c:url
value='/scripts/global.js'/>"></script>
replace to
<script type="text/javascript" src="<c:url
value='/scripts/jquery.js'/>"></script>
Thanks in advance.
Gordian