[Seaside] generating a script containing html

SainTiss saintiss at gmx.net
Tue Jul 22 20:27:42 UTC 2008


Hi,

I'd like to generate the following:

<script>
var homeMenu=new Array()
homeMenu[0]='***myLink***'
</script>

where basically ***myLink*** should be generated by means of 
html anchor with:

The problem is that the following doesn't work:

html script with: 'var homeMenu=new Array()\nhomeMenu[0]=''' , (html anchor 
with: 'myLink')'.

Because that just generates the string representation of an anchorBrush.

What's the proper way to do this?

Thanks,

Hans

-- 
If we cannot live so as to be happy, let us at least live so as to deserve it
 -- Immanuel Hermann Fichte

A liberal is a person whose interests aren't at stake at the moment
 -- Willis Player

Ark Linux - Linux for the Masses (http://arklinux.org)

Hans Schippers
Aspirant FWO - Vlaanderen
Formal Techniques in Software Engineering (FoTS)
University of Antwerp
Middelheimlaan 1
2020 Antwerpen - Belgium
Phone: +32 3 265 38 71
Fax: +32 3 265 37 77


More information about the seaside mailing list