Ajax load a partial html page?

Hi,

I would like to create a web page where some part of the page is fetched client-side from somewhere else. One way to do this is to do an ajax load (with for instance jquery), and insert the output from a given URL into a

or another html-element on the page.

However, I am not able to see how I can use this method when using XPages.

(1) Is it possible to create an XPage which does not produce html/head/body - tags? That is, starts with (for instance) a

-tag? How can I have complete control over the output?

(2) Is it possible to address and access a custom control via an URL? If so, a solution could be to include the output from a custom control directly.

Does anybody have any suggestions on how to accomplish this functionality with 8.5 and XPages?

Regars,

Sebjørn Birkeland

Subject: render=false and write to servlet response

I found one solution here: http://www.wissel.net/blog/d6plinks/SHWL-7MGFBN.

It basically means to set render=false for the entire xpage, and then output directly to the servlet’s response writer in the afterRenderResponse - event. A bit “hacky” perhaps (?), but it does work…