[Seaside] How to Implement a Website

Lukas Renggli renggli at gmail.com
Mon Jul 2 07:32:30 UTC 2007


> It seems that it would be nice to be able to generate an html page which
> could be served by Apache or web server of choice which contains the
> static html (parts) of a web page with possibly a JS controller for
> making the call and inserting the dynamic (Seaside) parts.

Nice idea.

Attached you find a ZIP Archive that embeds a Seaside application into
a static HTML site. For now it only handles links. Whenever a link is
clicked it triggers a XmlHttpRequest in the background. If anybody
wants to use form elements, this has to be implemented first.
Obviously, Ajax stuff should be avoided in the application.

Cheers,
Lukas

PS: If you want to try the attached code you need to make sure that
you serve static HTML and the Seaside application from the same
server, in my case I have the static files at
http://localhost/resources/seaside.html and the Seaside application is
served from http://localhost/seaside/examples/counter. This is
necessary because of security restrictions in Web Browsers.

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list