generating a script containing html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

generating a script containing html

SainTiss
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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside