Why don't you just use jQuery's noConflict mode ?
On Jan 21, 11:28 pm, Phil W <[email protected]> wrote:
> Thanks a lot for the response, I've gone through prototype.js,
> scriptaculous.js, builder.js, controls.js etc etc and replaced all
> instances of $ with _$.
>
> I've uploaded to my server, but now when I click on a link with a
> onClick scroll event handler (using <a href="#"
> onclick="Effect.ScrollTo('restofhomepage'); return false;">read</a>) I
> get this error:
>
> JavaScript -http://liverpoolstudentmedia.com/
> Event thread: click
> Error:
> name: ReferenceError
> message: Statement on line 1: Undefined variable: Effect
> Backtrace:
> Line 1 of function script
> Effect.ScrollTo('restofhomepage'); return false;
> ...
> stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have
> Stacktrace'
>
> Any ideas what is going wrong?
>
> Thanks,
>
> Phil
>
> On Jan 21, 5:16 pm, kangax <[email protected]> wrote:
>
> > On Jan 21, 11:30 am, Phil W <[email protected]> wrote:> I suppose I
> > could use jQuery UI as it wouldn't clash, but I'd like to
> > > stick with Scriptaculous as the code can be in onClick etc events
> > > rather than all specified in the <head> region.
>
> > [...]
>
> > I'm pretty sure simply replacing all occurrences of `$` with, say `_
> > $`, should work just fine. What exactly did you do last time and how
> > did it "break"?
>
> > --
> > kangax
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---