Latest SeasideScriptaculous (2.7b1.188.0 / Scriptaculous-lr.188.mcz) has
changed implementation of SUObject>>render:on:, and the change seems to no longer pass the proper root to the newly created document. In my case this results in homeless URLs that no longer have a proper resource root because the default root has no resourceBaseURI :( I'll poke around for a fix, but perhaps someone else had figured it out by now? Thanks! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE 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 attachments. Thank you. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Looks like this may work for now, but like I said, I haven't dug deep
enough to feel in any way confident quite yet, SUObject>>render: anObject on: aStream | previous document html | anObject isString ifTrue: [^aStream nextPutAll: anObject]. previous := canvas context document. document := SUDocument new. document root: previous root; stream: aStream; open: nil. canvas context document: document. html := canvas species context: canvas context callbacks: canvas callbacks. html render: anObject; flush. document close: nil. canvas context document: previous SUDocument>>root: anObject root := anObject Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE 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 attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Boris Popov > Sent: Friday, May 11, 2007 12:20 PM > To: Seaside - general discussion > Subject: [Seaside] [Scriptaculous] SUObject not setting document root? > > Latest SeasideScriptaculous (2.7b1.188.0 / Scriptaculous-lr.188.mcz) has > changed implementation of SUObject>>render:on:, and the change seems to > no longer pass the proper root to the newly created document. In my case > this results in homeless URLs that no longer have a proper resource root > because the default root has no resourceBaseURI :( > > I'll poke around for a fix, but perhaps someone else had figured it out > by now? > > Thanks! > > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > 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 > attachments. > > Thank you. > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
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) Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE 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 attachments. Thank you. > -----Original Message----- > From: Lukas Renggli [mailto:[hidden email]] > 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) has > > changed implementation of SUObject>>render:on:, and the change seems to > > no longer pass the proper root to the newly created document. In my case > > this results in homeless URLs that no longer have a proper resource root > > because the default root has no resourceBaseURI :( > > > > I'll poke around for a fix, but perhaps someone else had figured it out > > 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 Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Ah, sigh, never mind, its probably already changed, but since I'm on
VisualWorks I'm using 2.7b1 Seaside with latest Scriptaculous, which is tailored towards 2.8; does that sound about right, Michel? Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE 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 attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Boris Popov > Sent: Friday, May 11, 2007 12:34 PM > To: Lukas Renggli > Cc: Seaside - general discussion > Subject: [Seaside] RE: [Scriptaculous] SUObject not setting document root? > > 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) > > Cheers! > > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > 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 > attachments. > > Thank you. > > > -----Original Message----- > > From: Lukas Renggli [mailto:[hidden email]] > > 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 / > has > > > changed implementation of SUObject>>render:on:, and the change seems > to > > > no longer pass the proper root to the newly created document. In my > case > > > this results in homeless URLs that no longer have a proper resource > root > > > because the default root has no resourceBaseURI :( > > > > > > I'll poke around for a fix, but perhaps someone else had figured it > out > > > 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 > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On 11 May 2007, at 21:35 , Boris Popov wrote: > Ah, sigh, never mind, its probably already changed, but since I'm on > VisualWorks I'm using 2.7b1 Seaside with latest Scriptaculous, > which is > tailored towards 2.8; does that sound about right, Michel? Only Lukas will be able to help here, I'm afraid. Scriptaculous-lr.188 explicitely says that it is compatible with 2.7. May I suggest that you supply a small test case that reproduces your symptom? Cheers, Michel. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |