How to use a separately installed JQueryMobile?

459 views
Skip to first unread message

Arnar Ingason

unread,
Dec 31, 2011, 6:34:51 AM12/31/11
to Eclipse Plugin for PhoneGap
I go to "Create a PhoneGap project" and select Use separately
installed version of JQueryMobile. Then, I browse to a folder with
freshly compiled JQM from their github and get the error "All .js
and .css files in the jQuery Mobile directory /home/*USERNAME*/android-
sdk/JQueryMobile/jquery-mobile/compiled must have the same version
number of the form jquery.mobile.{version}.*". At first, there were no
version numbers on the files, so I manually renamed them in every
combination I could think of and I always got the same error.
How does this work?

Thanks, Arnar.

Paul Beusterien

unread,
Dec 31, 2011, 11:14:33 AM12/31/11
to eclipse-plugi...@googlegroups.com
The wizard is designed to work with jQuery Mobile installations downloaded from http://jquerymobile.com/download/

The resulting unzipped directory looks like :

$ cd jquery.mobile-1.0
$ ls -l
drwxr-xr-x  11 paulb  staff      374 Nov 22 14:14 demos
drwxr-xr-x   7 paulb  staff      238 Nov 22 14:14 images
-rw-r--r--@  1 paulb  staff    82656 Nov 22 14:14 jquery.mobile-1.0.css
-rw-r--r--@  1 paulb  staff   214829 Nov 22 14:14 jquery.mobile-1.0.js
-rw-r--r--@  1 paulb  staff    49152 Nov 22 14:14 jquery.mobile-1.0.min.css
-rw-r--r--@  1 paulb  staff    81903 Nov 22 14:14 jquery.mobile-1.0.min.js
-rw-r--r--@  1 paulb  staff    31671 Nov 22 14:14 jquery.mobile.structure-1.0.css
-rw-r--r--@  1 paulb  staff    25268 Nov 22 14:14 jquery.mobile.structure-1.0.min.css

I created an issue to add support for the GitHub downloaded format.



Paul Beusterien

unread,
Dec 31, 2011, 11:18:54 AM12/31/11
to eclipse-plugi...@googlegroups.com
Also the error message should have a dash instead of a period.  Issue #58

Thanks for the report,
Paul

gra...@gmail.com

unread,
Dec 31, 2011, 11:40:42 AM12/31/11
to eclipse-plugi...@googlegroups.com
The folder I compiled has all those files (well, not the demos directory) just not with the version number. I tried renaming them exactly like you listed them above, still no luck.
On another note, I'm a bit confused by the current version of JQuery Mobile, on their website it sometimes says 1.0 and sometimes 1.7.1.

Thanks.

Paul Beusterien

unread,
Dec 31, 2011, 11:49:43 AM12/31/11
to eclipse-plugi...@googlegroups.com
Hm, it should work if you point at a directory that has a .js and .css file with that pattern. Perhaps you should try a clean download from  http://jquerymobile.com/download/

1.7.1 is the latest jQuery version. 1.0 is the latest jQuery Mobile version.  jQuery Mobile is a much newer product than jQuery.

Paul

gra...@gmail.com

unread,
Dec 31, 2011, 12:01:01 PM12/31/11
to eclipse-plugi...@googlegroups.com
I see, thank you very much for your help.

exhan...@gmail.com

unread,
Mar 30, 2012, 7:24:27 AM3/30/12
to eclipse-plugi...@googlegroups.com
Does it have to be in the user's android-sdk folder?

I store jquery downloads elswhere, I just download and extract them as-is without renaming
So far 1.0.1 and 1.1.0RC1 have failed with this error.





Paul Beusterien

unread,
Mar 30, 2012, 10:35:12 AM3/30/12
to eclipse-plugi...@googlegroups.com
The jquery download can be unzipped anywhere in the file system.

1.0.1 is included with AppLaud version 1.2.7. You could update your AppLaud to access it. Eclipse -> Help -> Check for Updates ...

There are multiple issues with 1.1.0RC1. The AppLaud issues are fixed in 1.2.8, but the PhoneGap combination with 1.1.0RC1 is pretty broken. More details in Issue 73.

If you're still having issues, please provide more details about the versions in your installation and any error messages you see in the wizard.

Regards,
Paul
Reply all
Reply to author
Forward
0 new messages