Guoliang Cao --
Have you tried using a callback for loading jQuery and setting
noConflict?
function setNoConflict() {
jQuery.noConflict();
}
google.load("jquery", "1.2.6", {callback:setNoConflict});
-Ben
On Mar 7, 3:19 pm, Guoliang Cao <[email protected]> wrote:
> Hi,
>
> This might have been requested but it will be really great for people
> who need to use jquery and prototype(or mootools) in one application.
> If it is not too much work, can we have 2 copies of jquery hosted on
> google, one with jQuery.noConflict() appended to the end of jquery.js?
>
> Currently, if I want to load jquery and prototype from google like
> below, prototype does not work.
>
> <script src='http://www.google.com/jsapi'type='text/javascript'></
> script>
> <script type='text/javascript'>
> //<![CDATA[
> google.load("jquery", "1.2.6");
> jQuery.noConflict();
> google.load("prototype", "1.6.0.3");
> google.load("scriptaculous", "1.8.2");
> //]]>
> </script>
>
> Thanks,
> Guoliang Cao
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" 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/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---