cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naegeli Margrit <margrit.naeg...@ecofin.ch>
Subject RE: Including javascript
Date Tue, 28 Nov 2000 11:42:08 GMT
If you're sure that the error does not occur when you write it in html, then
I'd closely compare the html that works with the Cocoon-generated html. If
you find a difference, that must be the error. 

Greetings, Maggie
> -----Original Message-----
> From: Kai.Rehlen@pass-consulting.com
> [mailto:Kai.Rehlen@pass-consulting.com]
> Sent: Tuesday, November 28, 2000 12:27 PM
> To: cocoon-users@xml.apache.org; margrit.naegeli@ecofin.ch
> Subject: AW: Including javascript
> 
> 
> This didn't solve the problem unfortunately.
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Naegeli Margrit [mailto:margrit.naegeli@ecofin.ch]
> Gesendet am: Dienstag, 28. November 2000 12:27
> An: 'cocoon-users@xml.apache.org'
> Betreff: RE: Including javascript
> 
> I seem to remember that it's not possible to write the 
> <script ... /> tag
> like this; 
> You have to do <script ...></script>.
> 
> Greetings, Maggie
> 
> > -----Original Message-----
> > From: Kai.Rehlen@pass-consulting.com
> > [mailto:Kai.Rehlen@pass-consulting.com]
> > Sent: Tuesday, November 28, 2000 11:58 AM
> > To: cocoon-users@xml.apache.org
> > Subject: Including javascript
> > 
> > 
> > Hi all,
> > can someone please help me on including a javascript file 
> > into an xml file?
> > The script is running fine if included into an html file 
> but trying to
> > include it into the xml file a javascript error occurs.
> > 
> > **************
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0" 
> > 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >
> > 
> > 
> > <xsl:template match="Upload">
> > <xsl:processing-instruction
> > name="cocoon-format">type="text/html"</xsl:processing-instruction>
> > 
> > <html>
> > <head>
> > <script language="JavaScript" type="text/javascript"  
> > src="./script.js"/>
> > 
> > 	<title>
> > 		Dokumenten Auswahl
> > 	</title>
> > </head>
> > 
> > <body bgcolor="orange">
> > 
> > <FORM ACTION="http://localhost:8080/fue/servlet/upload" 
> METHOD="POST"
> > ENCTYPE="multipart/form-data" onsubmit="return verify(this);">
> > 
> > <!-- and so on -->
> > 
> > <xsl:apply-templates/>
> > 
> > </FORM>
> > </body>
> > </html>
> >  <<script.js>> 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message