> To begin with there are TWO files: Manifest & config - so I just added
> the
> same code
This is unnecessary. The Manifest file describes your library, the
config.json controls the generator. This is the right place.
> (following) to both that looks like this:
>
> "add-script" :
> [
> {
> "uri" : "http://js.pusherapp.com/1.9/pusher.min.js"
> }
> ]
>
> ===========
> Not sure if this is formatted correctly but no errors generated on this
> that
> I see.
The important thing is the place in config.json where you put it. You need
to put it in jobs that control the generation of your app. These jobs are
usually 'source' and 'build'. So this is where the new key has to go, e.g.
"jobs" : {
"source" : {
"add-script" : ...
},
"build" : {
"add-script" : ...
}
You can check that this was successful by looking into the generated
loader, e.g. source/script/<yourapp>.js. You should see the URL in a map
key similar to "uris-before".
> Then I messed around with generate.py for an hour or so reading
> up
> on the docs but didn't see anything too promising. Something about job
> file
> missing, again and again.
Hm, there is nothing like a job file. Either a file was missing, or a job.
> (I have added several classes into the
> "application" file and I guess I need to start breaking the program up
> abit
> (although with my IDE "folding" feature this seems unnecessary - even if
> a
> good idea.)
Indeed, having more than one class in a file hides the second to last
class from the generator. That means you will get lots of "Unknown symbol"
warnings during build. Your app might run nonetheless (the code is there
after all), but you are depriving yourself of all the checking and
dependency tracking. So it might just as well break.
>
> *But when I attempt to access a method in that I know is in the Pusher js
> library I get the message:" Uncaught ReferenceError: Pusher is not
> defined"*
I presume you didn't put the 'add-script' key in the job you built your
app with. Check the generated loader.
T.
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World™ now supports Android™ Apps
for the BlackBerry® PlayBook™. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel