if i put first jquery.js and then prototype, i don't need
jQuery.noConflict().

it works without.

i assume that  jQuery.noConflict() does not work properly.



On 18 Mrz., 01:51, James <james.gp....@gmail.com> wrote:
> For jQuery.noConflict(), according 
> to:http://docs.jquery.com/Core/jQuery.noConflict
>
> NOTE: This function must be called after including the jQuery
> javascript file, but before including any other conflicting library,
> and also before actually that other conflicting library gets used, in
> case jQuery is included last. noConflict can be called at the end of
> the jQuery.js file to globally disable the $() jQuery alias.
> jQuery.noConflict returns a reference to jQuery, so it can be used to
> override the $() alias of the jQuery object.
>
> In other word, put your jQuery.noConflict(); before you include your
> prototype.js file.
>
> On Mar 17, 2:37 pm, Eric Garside <gars...@gmail.com> wrote:
>
> > Do you have a link to an accessible site? It would help substantially
> > in debugging the issue.
>
> > On Mar 17, 2:50 pm, mcologne <blueameri...@web.de> wrote:
>
> > > the path is correct... it works with firefox 3... and:
>
> > > if i remove the prototype.js, it works with firefox 2 too...
>
> > > On 17 Mrz., 19:07, MorningZ <morni...@gmail.com> wrote:
>
> > > > That error would *have* to mean that the jQuery library is not
> > > > properly loaded (probably the wrong path/location to the jQuery file)
>
> > > > Use Firebug's "Net" panel to confirm that it is properly found/loaded
>
> > > > On Mar 17, 1:05 pm, mcologne <blueameri...@web.de> wrote:
>
> > > > > hi,
>
> > > > > i have problems using jQuery.noConflict() and firefox 2.
>
> > > > > my firefox version: pc firefox 2.0.0.20
> > > > > the same with mac firefox 2.0.0.4
>
> > > > > i'm using only the first example 
> > > > > fromhttp://docs.jquery.com/Using_jQuery_with_Other_Libraries
>
> > > > > it doesn't work, the following errors occur in firebug:
>
> > > > > Security error" code: "1000
> > > > > jQuery(document).ready is not a function
>
> > > > > what shall i do?
> > > > > anybody an idea if this is a bug?
>
> > > > > best regards m
>
> > > > > code i use below
>
> > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > > > <head>
> > > > > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> > > > > <title>Unbenanntes Dokument</title>
> > > > > <script src="http://www.prototypejs.org/javascripts/prototype.js";></
> > > > > script>
> > > > >    <script src="../scripts/jquery/jquery-1.3.2.js"></script>
> > > > >    <script>
> > > > >      jQuery.noConflict();
>
> > > > >      // Use jQuery via jQuery(...)
> > > > >      jQuery(document).ready(function(){
> > > > >        jQuery("div").hide();
> > > > >      });
>
> > > > >      // Use Prototype with $(...), etc.
> > > > >      $('someid').hide();
> > > > >    </script>
>
> > > > > </head>
>
> > > > > <body>
> > > > > </body>
> > > > > </html>

Reply via email to