Hi David,

You simply need to add following two lines in the head section:

<script type="text/javascript" src="/path/to/jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

From there onwards you need to use jQuery instead of $ sign. Alternatively you 
can use a short name such as:

<script type="text/javascript">
var j = jQuery.noConflict();
</script>

And instead of using $ sign or jQuery, you can use 'j' to invoke jQuery methods.

Hope this would help.

Farrukh

On 2010-08-05, at 2:10 AM, David BON wrote:

> 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="JavaScript/jQuery/jquery.js"></script">
>       <script type="text/javascript" 
> src="JavaScript/jQuery/splitter.js"></script>
> </head>
> 
> I read on this link: Using jQuery with Other Libraries that I have to insert 
> in the <head> section the noConflict() function:
>       <script type="text/javascript" src="JavaScript/jquery.js"></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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to