XUI

193 views
Skip to first unread message

creynders

unread,
Jan 4, 2011, 8:22:54 AM1/4/11
to phonegap
I've been trying to get this example
http://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumption-with-PhoneGap-and-XUI
working, but alas, to no avail. It won't work in any emulator or
browser I've viewed it with. I've copied it ad verbatim and downloaded
xui.js and put it in the correct folder, it simply does nothing and if
I use the JS inspector in chrome or firefox, it tells me there's an
error:
"x$(window).load is not a function"

Anybody got an idea what is going wrong?

filmaj

unread,
Jan 4, 2011, 3:31:46 PM1/4/11
to phonegap
Sounds like your XUI is not the latest. You can always clone it and
build it yourself from github.com/xui/xui

Try changing "x$(window).load(function() {" to "x$(window).on('load',
function() {"

On Jan 4, 5:22 am, creynders <camille.reynd...@gmail.com> wrote:
> I've been trying to get this examplehttp://wiki.phonegap.com/w/page/32513809/Simple-Web-Service-Consumpti...

creynders

unread,
Jan 5, 2011, 3:33:15 AM1/5/11
to phonegap
That did solve that problem, thanks, but now It simply throws another
error:
"cache is not defined"

I downloaded the XUI lib only yesterday, so it should be the latest, I
think.
I used this one:
http://code.google.com/p/xui-js/downloads/detail?name=xui-core-1.0.0.min.js&can=2&q=

That should be the correct one, right?

creynders

Clément Uster

unread,
Jan 5, 2011, 10:40:32 AM1/5/11
to phonegap
I think you should use the github version :)

Filip, do you know if the googlecode project can be updated ?

On Jan 5, 9:33 am, creynders <camille.reynd...@gmail.com> wrote:
> That did solve that problem, thanks, but now It simply throws another
> error:
> "cache is not defined"
>
> I downloaded the XUI lib only yesterday, so it should be the latest, I
> think.
> I used this one:http://code.google.com/p/xui-js/downloads/detail?name=xui-core-1.0.0....

Clément Uster

unread,
Jan 5, 2011, 10:44:00 AM1/5/11
to phonegap
Or you can try to add the following line in xui-core-1.0.0.js, on the
first line, just after "(function(){"

var cache = {};

But I think it would be better to download and build from github.

filmaj

unread,
Jan 5, 2011, 5:43:32 PM1/5/11
to phonegap
We're in the process of removing the googlecode page right now.

Stick to github and check out the README for instructions on how to
build!

creynders

unread,
Jan 6, 2011, 4:58:13 AM1/6/11
to phonegap
I cloned the git repo and ran build, but it also produces an error:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/YAML.rb:143:in `initialize': No such file or directory - util/
profiles/core.js (Errno::ENOENT)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/YAML.rb:143:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/YAML.rb:143:in `load_file'
from /Users/ibbt/Documents/Ext Repos/xui/build:16

The core.js file is in the util/profiles directory. If I change the
value of profile_path on line 7 of 'build' to the full path, it throws
a bunch of other errors:
cat: src/header.js: No such file or directory
sh: echo.: command not found
cat: src/base.js: No such file or directory
sh: echo.: command not found
cat: src/js/dom.js: No such file or directory
sh: echo.: command not found
cat: src/js/event.js: No such file or directory
sh: echo.: command not found
cat: src/js/fx.js: No such file or directory
sh: echo.: command not found
cat: src/js/style.js: No such file or directory
sh: echo.: command not found
cat: src/js/xhr.js: No such file or directory
sh: echo.: command not found
cat: packages/emile/emile.js: No such file or directory
sh: echo.: command not found
cat: src/footer.js: No such file or directory
sh: echo.: command not found

It shouldn't be this hard to use a js library, don't you guys
agree ? ;)
Reply all
Reply to author
Forward
0 new messages