[aida] override WebElement to remove <html> and <head>
Janko Mivšek
janko.mivsek at eranova.si
Sat May 24 23:48:04 CEST 2008
Hi Chris,
Chris Dawson wrote:
> I'm trying to build a widget with Aida and am not sure where I override
> in the framework to remove the <html> and <head>. I just need to
> generate some Javascript code. I also want to know how I override the
> content-type. Thanks in advance.
This means that you'd like to respond to the web request with something
else than a complete web page?
If you want such (like JAvaSript), you do the following:
1. normaly write your App and a view method, say viewJS
2. in that App implement #contentType to return 'text/javascript'
3. in viewJS prepare a WebElement and addText: yourJSCode
4. simply return that element as result of this view
This should work.
Best regards
JAnko
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
More information about the Aida
mailing list