NetTalk Central

Author Topic: jQuery and NTWS  (Read 2185 times)

mriffey

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • Email
jQuery and NTWS
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: jQuery and NTWS
« Reply #1 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

mriffey

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • Email
Re: jQuery and NTWS
« Reply #2 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