[aida] override WebElement to remove <html> and <head>
janko.mivsek at eranova.si
Sat May 24 23:48:04 CEST 2008
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
> 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
3. in viewJS prepare a WebElement and addText: yourJSCode
4. simply return that element as result of this view
This should work.
Smalltalk Web Application Server
More information about the Aida