I need to include this dynamic js in my header with <script> tag like this
in gmail:

<script src="?view=page&amp;name=browser&amp;ver=zpwhtygjntrz
<view-source:https://mail.google.com/mail/?view=page&name=browser&ver=zpwhtygjntrz>"></script>


Some behaviour of that script depends on my session data on server side.
I think that its not very complicated
But I dont want to hardcode it to my html page, because urls and paths my
changes. Dealing with resources provides more reliable configuration etc..

Sigmar


On Sun, Mar 21, 2010 at 9:19 PM, Stefan Lindner <[email protected]> wrote:

> Generate some Javasript in response to e.g. a button klick?
> Or generate JavaScript when the page is rendered?
>
> -----Ursprüngliche Nachricht-----
> Von: Sigmar Muuga [mailto:[email protected]]
> Gesendet: Sonntag, 21. März 2010 19:53
> An: [email protected]
> Betreff: Dynamic javascript generation
>
> Hello,
> I have to generate some javascript on the server side and then include it
> into my page.
> Which is the best way to do this with current stable wicket release?
>
> A the moment I am thinking about extending WebResource....
>
> Sigmar
>

Reply via email to