[Seaside] RE: [Scriptaculous] SUObject not setting document root?

Boris Popov boris at deepcovelabs.com
Fri May 11 19:33:39 UTC 2007

Ah, then Seaside's #resourceUrl: implementation needs to be updated as
its currently asking the document's root, so if you're doing any
rendering in the ajax pass that uses these, the urls won't get prefixed
properly at the moment,

resourceUrl: aString
 self url: (canvas document root absoluteUrlForResource: aString)



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

> -----Original Message-----
> From: Lukas Renggli [mailto:renggli at gmail.com]
> Sent: Friday, May 11, 2007 12:30 PM
> To: Boris Popov
> Subject: Re: [Scriptaculous] SUObject not setting document root?
> > Latest SeasideScriptaculous (2.7b1.188.0 / Scriptaculous-lr.188.mcz)
> > changed implementation of SUObject>>render:on:, and the change seems
> > no longer pass the proper root to the newly created document. In my
> > this results in homeless URLs that no longer have a proper resource
> > because the default root has no resourceBaseURI :(
> >
> > I'll poke around for a fix, but perhaps someone else had figured it
> > by now?
> This is due to a subtle difference between 2.7 and 2.8. In Seaside 2.8
> the document doesn't know the root anymore. Ask your application for
> the #resourceBaseUrl.
> Cheers,
> Lukas
> --
> Lukas Renggli
> http://www.lukas-renggli.ch

More information about the seaside mailing list