How to use noConflict to get JQuery and Ajax (Wonder) working together?
How to use noConflict to get JQuery and Ajax (Wonder) working together?
- Subject: How to use noConflict to get JQuery and Ajax (Wonder) working together?
- From: David BON <email@hidden>
- Date: Wed, 04 Aug 2010 23:10:04 +0000
Hi List,
I try for the first time to use JQuery in a WO/Wonder/Ajax App (WO 5.3.3).
I'm aware of the conflict with WonderAjax library and I know that I have to use jQuery.noConflict(). Problem is I just don't get how to use that :-( !
What I want is to use the splitter.js component based on jQuery (to actually get those splitpanes on my pages).
Therefore I included in my pageWrapper.wo : <head> /.../ <script type="text/_javascript_" src=""Apple-style-span" style="color: rgb(63, 127, 127); font-family: Monaco; font-size: 11px; ">jQuery/jquery.js"></script"> <script type="text/_javascript_" src=""Apple-style-span" style="color: rgb(63, 127, 127); font-family: Monaco; font-size: 11px; ">jQuery/splitter.js"></script> </head>
<script type="text/_javascript_" src=""></script"> jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery("div").hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); </script>
I see with firebug that some Ajax _javascript_ are included in the <head> after those lines and now I'm confused on how to manage that (if it's possible), where exactly shall I put those line, what shall I use in place of the 'someid' in last sentence above?
Any hints?
Thanks in advance.
David B.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden