jquery abstraction

276 Views Asked by At

I've been prototyping a website using basic php skills and almost no js skills. I've been using various jquery and some prototype based modules (pop up forms, autocomplete etc) and probably got into conflicts. Someone suggested that I replace all the jquery references using "$(" with "jquery(", which has helped somewhat. I notice that I have syntax like "$." in a couple of places and wonder if that is a similar situation, but don't know what to replace it with. The obvious replacements (to me) didn't help, but there may be other unresolved issues, as well. Suggestions? I plan to standardize on jquery when I can spend more time to study options, but would like to patch the thing to run now.

1

There are 1 best solutions below

4
On

I've run into issues like this before, where multiple modules are using the $ shortcut syntax. Look at all the javascript code you're including and try to track down the website(s) that supply them. They should have an alternate syntax.

Likely culprits:

  • Prototype
  • MooTools
  • YUI

    I think I was playing around with Tiki Wiki and had a conflict with that as well.