Re: Strange Problem when including modules/helma/Html.js
Franz Philipp Moser <[email protected]> Mon, 20 Aug 2007 11:05:26 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Franz Philipp Moser schrieb: > Hi, > > [email protected] schrieb: >>> The ListRenderer.js is included in Global/onStart() >> Did you try to include the ListRenderer right from the global scope (ie. not from within a global method)? > > This worked. Why isn't it possible to do it in a Global Function but in > Global Scope? > > I included it in onStart and used it in the Root main_action like this: > > {{{ > function main_action() { > Html.link({href: this.href()}, "Testlink"); > } > }}} > > This worked out of the box. > To clarify this posting I included "modules/helma/Html.js" in Global onStart() and than used it in the main_action. This worked out of the box. cu Philipp