cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject RE: XSP : integrate javascript
Date Mon, 05 May 2003 09:04:03 GMT
Each possible file type has standarized a MIME type, for html is e.g. text/html or for *.gif
is image/gif.  For Javascript I think is text/javascript


--------
David

-----Mensaje original-----
De: Maxime.Gheysen@swisscom.com [mailto:Maxime.Gheysen@swisscom.com]
Enviado el: lunes, 05 de mayo de 2003 10:58
Para: cocoon-users@xml.apache.org
Asunto: RE: XSP : integrate javascript

If I put a js file, I have to add a pipeline in the sitemap like :

    <map:pipeline>
      <map:match pattern="scripts/*.js">
        <map:read src="myApp/scripts/{1}.js" mime-type="!!SOMETHING!!"/>
</map:match>
    </map:pipeline>

But what is the "mime-type"???
Thanks,

Maxime

-----Original Message-----
From: Stavros Kounis [mailto:gounis@osmosis.gr]
Sent: Friday, May 02, 2003 12:37 PM
To: cocoon-users@xml.apache.org
Subject: Re: XSP : integrate javascript



put your javascript code in external .js files
and then insert .js file in your .xsp just like in .html

-- stavros

On Thu, 1 May 2003 Maxime.Gheysen@swisscom.com wrote:

> Is there an easy way to insert javascript on buttons (like OnClick or
> OnMouseOver actions) into an XSP page?
>
> thanks
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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