<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ProtoAspx &#187; aspnet</title>
	<atom:link href="http://www.gljakal.com/protoaspx/category/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gljakal.com/protoaspx</link>
	<description>Integrating Prototype and ASP.Net to create the next generation of web applications</description>
	<lastBuildDate>Thu, 26 Feb 2009 17:49:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Serving javascript with asp.net</title>
		<link>http://www.gljakal.com/protoaspx/2008/04/serving-javascript-with-aspnet/</link>
		<comments>http://www.gljakal.com/protoaspx/2008/04/serving-javascript-with-aspnet/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 17:17:13 +0000</pubDate>
		<dc:creator>Loris</dc:creator>
				<category><![CDATA[aspnet]]></category>

		<guid isPermaLink="false">http://gljakal.com/protoaspx/2008/04/serving-javascript-with-aspnet/</guid>
		<description><![CDATA[If you&#8217;re creating an aspx page that serves javascript, be sure to choose the application/x-javascript content encoding instead of the usual text/javascript.
I found out today that text/javascript will work fine in any browser, except for Internet Explorer. Changing it to application/x-javascript does the trick, however.
In case you&#8217;re wondering, the content type is easily changed by [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re creating an <code>aspx</code> page that serves javascript, be sure to choose the <code>application/x-javascript</code> content encoding instead of the usual <code>text/javascript</code>.</p>
<p>I found out today that <code>text/javascript</code> will work fine in any browser, except for Internet Explorer. Changing it to <code>application/x-javascript</code> does the trick, however.</p>
<p>In case you&#8217;re wondering, the content type is easily changed by adding:</p>
<pre class="csharpcode">Response.ContentType = <span class="str">&quot;application/x-javascript&quot;</span>;</pre>
<p>in the page_load event (or the onLoad method).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gljakal.com/protoaspx/2008/04/serving-javascript-with-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
