Thank you for the reply. I worked on the repairing the code like you
have shown and it does still allows prototype to take control when loaded.
Could I still be missing something simple?
The three link examples I have shown are to see (1) jQuery happy and
working, (2) prototype doing it's thing, and (3) to show that the
no.conflict script was still allowing jQuery to work but If pototype loaded
at any point jQuery would stop.
I reposted the last link to reflect the suggested changes you made.
jQuery still works until prototype is turned back on.
I have put a lot of work into both functions separately not knowing the
conflict would exist. I have come to far to give up and truly could use
further assistant.
On Thu, Mar 17, 2011 at 9:44 AM, T.J. Crowder t...@crowdersoftware.comwrote:
Hi,
It's not clear what's wrong from your message or examples.
Fundamentally, if you want your first link to work when you add
Prototype to the page, just add the `noConflict` call *immediately*
after loading the jquery.js file and include the Prototype file, like
so:
script src=../Scripts/jquery-1.2.6.js type=text/javascript
charset=utf-8/script
scriptjQuery.noConflict();/script
script src=../lightbox/js/prototype.js type=text/javascript/
script
..and then change your two functions that look like this:
$(function () {
if ($.browser.msie $.browser.version 7) return;
// ...
});
...to look like this:
jQuery(function($) {
if ($.browser.msie $.browser.version 7) return;
// ...
});
Note that I've added `$` as an argument. jQuery passes a reference to
itself into `ready` handlers, and so you can use a local alias for it
and not have to change all your code. *Outside* of that `ready`
handler, `$` will refer to Prototype. (Or just use `jQuery` for jQuery
throughout the page, but for large scripts it can be convenient to use
the local alias.)
Example: http://jsbin.com/uqugo3
HTH,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com
On Mar 16, 6:36 pm, Joseph O joeordo...@gmail.com wrote:
This has been tossed around the net in many variations yet none have
worked for me. I have done about ever work around for these two so
they will like each other and have reached a dead end. I need my image
fade menu to function with my flash driven lightbox. Please let me
know if this is something anyone can help with. Here are a few links
to reference.
This shows the menu working.
http://fabritechonline.com/content/awning_marquee.html
This shows the Lightbox Working.
http://fabritechonline.com/content/awning_marquee_test.html
This shows the jQuery / Prototype noConflict script in action.
(Prototype is disabled)
http://fabritechonline.com/content/awning_marquee_test_conflict.html
While the script allows jQuery to operate without Prototype loading,
it still does not function with both.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to
prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.