views:

655

answers:

2

How do I do to be able to use jquery in my palm mojo application?

+1  A: 

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.

Pekka
I have tried and not succeeded. So I will need a example on how to do this.
Mi
Did you try using noConflict?
Pekka
The thing is that I do not know what to do. noConflict does not say me much. I'm new to jquery. Have tried finding examples on the web but not found anything that helps me.
Mi
I have got a web page, using jquery, working fine in my web browser, and I'm trying to use the same code in my palm pre application, but do not know how to get it to work. I have downloaded jquery and included the script in my code. What else do I need to do?A small example working on palm pre would be good. Tanks for helping me out.
Mi
Check out my edit.
Pekka
A: 
  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();

Cirrostratus