On 07/07/2010 08:41 PM, Nick Watkins wrote:
>
> This is the first time I've had any trouble getting a contrib to function,
> but it's also the first that requires loading as a library. Here are the
> steps I've taken:
>
> Made the change suggested a couple weeks ago to get around the new
> sourceforge uri format when including libraries remotely, and it downloads
> into the cache just fine.
>
> Added under jobs:
> "libraries" : {
> "library" : [
> {
> "manifest" : "contrib://Dialog/trunk/Manifest.json",
> "uri" : "../${CACHE}/downloads/Dialog/trunk"
> }
> ]
> },
>
> The uri has "../" added because my cache folder is in my project root
If you set your CACHE macro correctly (e.g. to "cache" or "./cache") you
shouldn't need that, as the lib uri is calculated from that.
> directory and when I opened ./source/script/myproject.js, the uri that was
> generated was wrong. The uri is generated correctly now as:
> "dialog":{"resourceUri":"../cache/downloads/Dialog/trunk/source/resource","sourceUri":"../cache/downloads/Dialog/trunk/source/class"
These are no URIs in the strict sense, but URI prefixes, used to access
various parts of a library. I presume you meant to say that these
prefixes were wrong.
>
> I added this to my project:
> dialog.confirm("Do you really want to delete this?");
>
> And I get the following error: "ReferenceError: Can't find variable:
> dialog",
I did the same setup as you, left away the "uri" parameter from the
library entry, set the CACHE macro to "cache", and ran generate.py
source. The result looks fine, the Dialog classes are included in the
loader script and being loaded into the browser. The confirm dialog is
displayed just fine.
T.
> so I started hunting through my resources. None of the Dialog
> library files are being loaded, but I confirmed that they physically exist
> where it's pointing to them.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel