jQuery detects your previously defined $ function and executes some additional logic. The only difference is that $('hello') will now try it by tag name and then by id. The only truly ambiguous case is if you currently have an id that also matches a tag in your document, for example $('address'). This should be rare so if it does come up it shouldn't be difficult to fix.
Now, I've had other collisions with some of the plugins, namely interface. I have prototypes for Array and Number objects and there seems to be a bit of a misunderstanding there. In my opinion this is a bug in interface, but we'll see.
cheers
Brito
On 9/1/06, Rune Sandberg <[EMAIL PROTECTED]> wrote:
Hi,
The company I work for have our own custom _javascript_ library where we basically have 'borrowed' some functions such as the infamous $() from prototype as well as a fair bit of our own. The application is pretty big and we want to avoid changing the current $() functionality, but we really want to start incorporating jQuery. I have read docs/PrototypeAndJQuery/, but I'm still not sure how this would work. Will the jQuery $() (which is 100 times better) overwrite the prototype $() when jQuery is included last? I thought I'd try to reach out to someone with experience doing this instead of causing the application to break severely.
Thanks, Rune
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/