SULibrary and jQuery 1.1.2 problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SULibrary and jQuery 1.1.2 problem

dtrussardi@tiscali.it
Hi,
 
i d'ont have knowledge about javascript.
 
I work with GLASS and Seaside 2.8.
 
I have some SUComponent subclass.
 
All work fine.
 
A this point i need to integrate a CSS Dock menu   ( it using jquery and interface javascript ) into SUComponent subclass.
 
After  load the jquery library the browser report the error:
 
    L.dispatchEvent is not a function   (prototype.js riga 9 )
 
and when  do some selection on CSS dock item  the error:
 
    JQuery ( el.fisheyeCfg.itemsText, this) .get (0) is undefined. (interface.js riga 8 )
 
 
How i can solve this " incompatibility " ?
 
The browser substantiality do what i think but report the errors.

Any pointers would be greatly appreciated!

Thanks!

    Dario


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SULibrary and jQuery 1.1.2 problem

Lukas Renggli
JQuery and Prototype are two incompatible libraries that extend the
Javascript root namespace in conflicting ways. JQuery can be told to
play nice with Prototype, but it can get hairy if other extensions on
top of these libraries are involved:

   http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Lukas

2009/9/25 Dario Trussardi <[hidden email]>:

> Hi,
>
> i d'ont have knowledge about javascript.
>
> I work with GLASS and Seaside 2.8.
>
> I have some SUComponent subclass.
>
> All work fine.
>
> A this point i need to integrate a CSS Dock menu   ( it using jquery and
> interface javascript ) into SUComponent subclass.
>
> After  load the jquery library the browser report the error:
>
>     L.dispatchEvent is not a function   (prototype.js riga 9 )
>
> and when  do some selection on CSS dock item  the error:
>
>     JQuery ( el.fisheyeCfg.itemsText, this) .get (0) is undefined.
> (interface.js riga 8 )
>
>
> How i can solve this " incompatibility " ?
>
> The browser substantiality do what i think but report the errors.
>
> Any pointers would be greatly appreciated!
>
> Thanks!
>
>     Dario
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside