The version of jquery.corners.js that I found does not assume that $ is for
jQuery
<http://jqueryjs.googlecode.com/svn/trunk/plugins/corner/jquery.corner.js>

If you look at the plug-in you'll note that it is wrapped in a
self-executing function.

    (function($) {
        ....
    })(jQuery);

The jQuery object is mapped to $ within the scope of this function. You may
want to look at the other plug-ins you're using to see if there is a similar
syntax. If not, complain to the author and in the meantime wrap it yourself.

Brian.



On Mon, Sep 8, 2008 at 8:10 AM, dl <[EMAIL PROTECTED]> wrote:

> That fix works if you include jquery.js only and not any other
> libraries that use the $ notation for jquery, such as the
> jquery.corner.js he mentions above.
>
> Is there a way to use other libraries that refer to jQuery through the
> $ without rewriting them?
>
>
> On Sep 7, 9:58 am, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> wrote:
> > Give this a try:http://docs.jquery.com/Using_jQuery_with_Other_Libraries
> >
> > Jörn
> >
> > On Fri, Sep 5, 2008 at 9:29 AM, Muhammad Iqbal
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Guys,
> >
> > > I am using JQuery as well as prototype in my application, both of the
> lib
> > > are conflicting since both uses $ for short cut. I saw a work around on
> > > jQuery.com but its not working. I would really appreciate if some one
> give
> > > me any solution. my code is as below:
> >
> > > <script type="text/javascript" src="js/hoverIntent.js"></script>
> > >         <script type="text/javascript" src="js/superfish.js"></script>
> > >         <script type="text/javascript"
> src="js/jquery.corner.js"></script>
> > >         <script type="text/javascript" src="js/flexigrid.js"></script>
> > >         <script type="text/javascript"
> src="js/jquery.ui.all.js"></script>
> >
> > >         <script type="text/javascript" src="js/dateUtil.js"></script>
> > >         <script type="text/javascript" src="js/util.js"></script>
> > >         <script type="text/javascript"
> src="js/CalendarPopup.js"></script>
> > >         <script type="text/javascript" src="js/validation.js"></script>
> > >         <!-- Java Scripts here -->
> > >         <script type="text/javascript">
> >
> > >         // initialise plugins
> > >             jQuery(function(){
> > >                 jQuery('ul.sf-menu').superfish();
> > >             });
> > >         </script>
> > >         <script type="text/javascript">
> > >             $(document).ready(function(){
> > >                 $("ul.sf-menu").superfish({
> > >                     pathClass:  'current'
> > >                     onShow: function(){
> > >                         if ($.browser.msie){
> > >                             this.style.removeAttribute('filter');
> > >                         }
> > >                     }
> > >                 });
> > >             });
> > >         </script>
> > >         <script type="text/javascript">
> > >             $(function(){    // shorthand for $(document).ready() BTW
> > >                 $('div.round').each(function() {
> > >                 $(this).corner("round 6px");
> > >             });
> > >         });
> > >         </script>
> > >         <script type="text/javascript">
> > >             $(function(){    // shorthand for $(document).ready() BTW
> > >                 $('.flexme').flexigrid();
> > >             });
> > >         </script>
> > >         <script type="text/javascript">
> > >             $(function () {
> > >                 $('ul.drawers').accordion({
> > >                     header: '.drawer-handle',
> > >                     selectedClass: 'open',
> > >                     event: 'mouseover'
> > >                 });
> > >                 $('#accordion').accordion({
> > >                     header: '.ui-accordion-header',
> > >                     clearStyle: true
> > >                 });
> > >                 $("#date").datepicker({
> > >                     showOn: "both",
> > >                     buttonImage: "images/calendar.gif",
> > >                     buttonImageOnly: true
> > >                 });
> > >             });
> >
> > >         </script>
> >
> > > Thanks in advance
> > > ---
> >
> > > Regards,
> >
> > > Muhammad Iqbal
> > > Development Lead
> > > AG Delta Pte Ltd - Singapore
> > > Office +65 6777 0143
> > > HP +65 8268 2919
> > > Fax +65 6777 0169
> > > Skype: iqbalhyd
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to