开发者

jquery abstraction

开发者 https://www.devze.com 2023-02-06 14:45 出处:网络
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 pr

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.


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.

  • 0

    精彩评论

    暂无评论...
    验证码 换一张
    取 消