Forum OpenACS Development: Re: Background loading of includes

Collapse
Posted by Hamilton Chua on
You will need a front end solution. Here's what I think your project and contact overview pages should be coded.

You'll need to create a page structured with empty divs. Each div is the location of one include.

You should have a javascript function that runs on page load. This javascript function should load the first two includes that you need to be open.

If you consult the ajaxhelper docs, you'll see that ah::ajaxupdate will be able to help you generate the ajax function that loads a url and places the contents of this url into a specified div.

The url you pass to the ajax function should be the url of the include you wish to load.

To load the other includes, you should have an image or any html element with a mouseover event that loads an include.

In the mashup portal, in particular, the code that adds a portlet to the page will be helpful.

I hope this helps.