cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuil Batsis (Manos)" <mbat...@humanmarkup.org>
Subject Re: XSP : integrate javascript
Date Mon, 05 May 2003 09:08:49 GMT
Sorry for not being more simple...

The MIME type is an HTTP header coming along with any file sent by the 
server to the client (browser). It's purpose is to explain to the client 
what the file is (independently of the file extention) for the client to 
have enough info to deside what to do with it.


Emmanuil Batsis (Manos) wrote:
> The RFCs covering Multipurpose Internet Mail Extensions (MIME) types are 
> from 2045 to 2049.
> 
> The right MIME for javascript is "application/x-javascript", although 
> too many use "text/javascript".
> 
> hth,
> 
> Manos
> 
> Maxime.Gheysen@swisscom.com wrote:
> 
>> 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
> 
> 
> 
> 


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