On Sat, Jan 12, 2008 at 1:22 AM, Martin Webb <[EMAIL PROTECTED]>
wrote:

> On 12/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > +   B) From within the java/gadgets directory run the following commands
> > +      i) Copy the sample container code into the webapp directory so
> that
> > the
> > +         shindig server will serve it for you.
> > +      cp -r ../../javascript/container/ src/main/webapp/
> > +      cp -r ../../javascript/samplecontainer/ src/main/webapp/
>
>
> For Windows I needed to use:
>
> mkdir src\main\webapp\container
> mkdir src\main\webapp\samplecontainer
>
> copy ..\..\javascript\container src\main\webapp\container
> copy ..\..\javascript\samplecontainer src\main\webapp\samplecontainer
>
>
> +    C) Hit the sample container at
> > +
> > http://yourserver:yourport/gadgets/samplecontainer/samplecontainer.html
>
>
> Does not work for me on either IE 6.0.2900 or Firefox 2.0.0.11 (windows).
>
> It loads the gadget in both instances, but...  Errors in Firefox as page
> loads:
>
> Error: Constructors can't be called as simple functions: function Number()
> {
>    [native code]
> }
> Source File:
>
> http://localhost:8080/gadgets/ifr?url=http%3A%2F%2Fhosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F117247905274371511495%2Fcaja-clickme.xml&synd=gadgets&mid=0&parent=&ogc=localhost:8080&up_sign=Capricorn
> Line: 3551:


this should be gone. it was a bug in caja.js

>
>
> Error: window.console has no properties
> Source File:
>
> http://localhost:8080/gadgets/ifr?url=http%3A%2F%2Fhosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F117247905274371511495%2Fcaja-clickme.xml&synd=gadgets&mid=0&parent=&ogc=localhost:8080&up_sign=Capricorn
> Line: 9262


the window.console errors should be gone - that was my fault for leaving
firebug lines in there.

>
>
>
> Clicking "Click" in Firefox:
>
> Error: obj has no properties
> Source File:
>
> http://localhost:8080/gadgets/ifr?url=http%3A%2F%2Fhosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F117247905274371511495%2Fcaja-clickme.xml&synd=gadgets&mid=0&parent=&ogc=localhost:8080&up_sign=Capricorn
> Line: 3950
>


in the latest version of the caja server, the cajoled gadgets should no
longer have this problem. i am going to check in some samples shortly that
should be error free!

Reply via email to