开发者

How to use jquery in palm mojo?

开发者 https://www.devze.com 2022-12-14 11:31 出处:网络
How do I do to be able t开发者_如何转开发o use jquery in my palm mojo application?Check out this question, especially the comments.

How do I do to be able t开发者_如何转开发o use jquery in my palm mojo application?


Check out this question, especially the comments.

Edit in response to the comments:

I don't know about Palm development so I can't help you out in detail. Mojo however is based on Prototype. Prototype and JQuery crash because they have identical function names. That's where the noConflict plugin comes in. You can read up on it here and get it here. That's about all I can tell you about it - maybe somebody else can take you through the process step by step.


  1. Import Mojo
  2. Import jQuery
  3. Create a Script block that contains jQuery.noConflict();
  4. Follow with your normal jQuery except using 'jQuery' instead of '$'

E.g., jQuery('div#idOfSomething').hide();

0

精彩评论

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