Emile <[EMAIL PROTECTED]> wrote: > Hi All > > is it possible to have javascript in wizards? Specifically I want to put in > additional validation and have some fields calculated from constants and > other inputs. >
You can. In a xsl/base.xml next to the entrance base you can set something like: <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="ew:xsl/base.xsl" /> <!-- extend from standard editwizard xslt --> <xsl:param name="SEARCH_LIST_TYPE">IFRAME</xsl:param> <xsl:template name="extrajavascript"> <script language="javascript" src="{$referrerdir}myjavascript.js"><xsl:comment>helpIE</xsl:comment></script> </xsl:template> </xsl:stylesheet> Which should about do the trick. I would not know if it is easily possible to add validation to existing validation code like this, for that you should explore the existing validation.js of editwizards, or so. Michiel -- Michiel Meeuwissen Mediacentrum 140 H'sum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] ()
