NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: mriffey on September 16, 2009, 03:58:59 PM

Title: jQuery and NTWS
Post by: mriffey on September 16, 2009, 03:58:59 PM
Im trying to implement an accordion menu from DynamicDrive in a NTWS site. It uses jQuery and needless to say, there is a conflict somewhere.

Ive tried all the jQuery recommended strategies to eliminate the conflict (.noConflict, hard coding, etc), but none of these things offers progress.

Any ideas would be welcome.

Mark
Title: Re: jQuery and NTWS
Post by: Bruce on September 16, 2009, 10:35:59 PM
Hi Mark,

I'm in the process of changing NetTalk 5 over from prototype to jQuery. so I've been doing some reading on jQuery, Prototype, and JavaScript in general.

The whole "shorthand" thing of change jQuery to $ (while _knowing_ that it makes tools incompatible with each other) is, well, frankly bizarre to me.

I think, without going into the script you are using, if you replace all instances of $ in the code with jQuery, and you turn on the NoConflict switch, then it may work.

Or wait for NT5, which won't have prototype, so won't have the problem.

Cheers
Bruce
Title: Re: jQuery and NTWS
Post by: mriffey on September 17, 2009, 05:21:06 AM
Unfortunately waiting (while I will have to do so regardless<g>) is not an option and the noConflict (etc) steps have already been attempted but to no avail.

Mark