Getting a page content
Hi Is there a way to get the current page content in a component beiing rendered within that page? Calling context().page().context().response().contentString(); or context().response().contentString(); only gives me the content from the top of the page down to the current component, which kinda makes sense. Is there any way to get the rest of the content even though it is below the current component? Atli a...@us.is Fyrirvari á tölvupósti / e-mail disclaimer http://us.is/Apps/WebObjects/US.woa/wa/dp?id=3776 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Getting a page content
Hello Atli; I don't think that makes sense because if you are in the appendToResponse phase then the rest of the page still has to be drawn. From memory (Mike to correct me) PW does two appendToResponse phases for its AJAX system. So maybe you could do something like this and write the second time into a dummy response or something? I'm not too sure if this would work for what you want. Maybe elaborate on what you are trying to achieve? cheers. Is there a way to get the current page content in a component beiing rendered within that page? Calling context().page().context().response().contentString(); or context().response().contentString(); only gives me the content from the top of the page down to the current component, which kinda makes sense. Is there any way to get the rest of the content even though it is below the current component? ___ Andrew Lindesay www.lindesay.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Getting a page content
From memory (Mike to correct me) PW does two appendToResponse phases for its AJAX system. So maybe you could do something like this and write the second time into a dummy response or something? I'm not too sure if this would work for what you want. actually, two invokeActions, one appendToResponse, but your point is still valid .. .you'd have to do something kind of funky with setting a flag to prevent an infinite loop ... I'm not sure what it means to have a component in the middle of the page that itself returns the entire page. I would give that request a hearty what are you actually trying to do, because it sounds wrong :) ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Getting a page content
Hi guys I decided on a different aproach since this all sounds funky :) Using ajax instead. But thanx for the response. Atli On 3/12/09 12:12 PM, Mike Schrag msch...@mdimension.com wrote: From memory (Mike to correct me) PW does two appendToResponse phases for its AJAX system. So maybe you could do something like this and write the second time into a dummy response or something? I'm not too sure if this would work for what you want. actually, two invokeActions, one appendToResponse, but your point is still valid .. .you'd have to do something kind of funky with setting a flag to prevent an infinite loop ... I'm not sure what it means to have a component in the middle of the page that itself returns the entire page. I would give that request a hearty what are you actually trying to do, because it sounds wrong :) ms Fyrirvari á tölvupósti / e-mail disclaimer http://us.is/Apps/WebObjects/US.woa/wa/dp?id=3776 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com