<?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>My Web Experiences &#187; Javascript</title>
	<atom:link href="http://www.mywebexperiences.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebexperiences.com</link>
	<description>A web development blog</description>
	<lastBuildDate>Thu, 05 Jan 2012 14:56:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Prototype Compressed</title>
		<link>http://www.mywebexperiences.com/2008/06/28/prototype-compressed/</link>
		<comments>http://www.mywebexperiences.com/2008/06/28/prototype-compressed/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 02:25:42 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/?p=40</guid>
		<description><![CDATA[I am a prototype user, but i want to save some bandwidth using a compressed version, so i start looking for it and i found a compressed version called protopack it includes different versions, just spaces removed ( no eval required ), encrypted(eval required) and gziped version for both. i prefere the just spaces removed [...]]]></description>
			<content:encoded><![CDATA[<p>
I am a <a href="http://www.prototypejs.org/">prototype</a> user, but i want to save some bandwidth using a compressed version, so i start looking for it and i found a compressed version called 
<a href="http://groups.google.com/group/prototype-core/files">protopack</a> it includes different versions, just spaces removed ( no eval required ), encrypted(eval required) and gziped version for both. i prefere the just spaces removed version since it dosen&#8217;t require use of eval.
</p>
<p>
Another good option is to use the <a href="http://code.google.com/apis/ajaxlibs/">Google AJAX Libraries API </a> that serves a compressed version of prototype that will be cached by a year and sent with compression headers , you can include it using the full url or the Googles&#8217;s API
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/script.html"><span class="kw2">&lt;script</span></a> <span class="kw3">type</span>=<span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span>=<span class="st0">&quot;http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js&quot;</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;/script&gt;</span></span></div></li>
<li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">OR</div></li>
<li class="li2"><div class="de2">&nbsp;</div></li>
<li class="li1"><div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/script.html"><span class="kw2">&lt;script</span></a> <span class="kw3">type</span>=<span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span>=<span class="st0">&quot;http://www.google.com/jsapi&quot;</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;/script&gt;</span></span></div></li>
<li class="li1"><div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/script.html"><span class="kw2">&lt;script</span></a> <span class="kw3">type</span>=<span class="st0">&quot;text/javascript&quot;</span><span class="kw2">&gt;</span></span></div></li>
<li class="li1"><div class="de1">google.load(&quot;prototype&quot;, &quot;1.6.0.2&quot;);</div></li>
<li class="li1"><div class="de1"><span class="sc2"><span class="kw2">&lt;/script&gt;</span></span></div></li>
<li class="li2"><div class="de2">&nbsp;</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>
You can find compressed versions of <a href="http://script.aculo.us/">scriptaculous</a>,  <a href="http://jquery.com/">jQuery</a>, <a href="http://mootools.net/">MooTools</a>, <a href="http://dojotoolkit.org/">dojo</a> as well.
The bad thing is there are no https support so it wont work for secure sites.
</p>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/06/28/prototype-compressed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send a post request to a popup</title>
		<link>http://www.mywebexperiences.com/2008/01/26/send-a-post-request-to-a-popup/</link>
		<comments>http://www.mywebexperiences.com/2008/01/26/send-a-post-request-to-a-popup/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 06:11:01 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/archives/5</guid>
		<description><![CDATA[Today i want to send the post request from a form to a pop up window and the solution is pretty simple first we have to create our form and then we add a target attribute where we specify the name that our popup window will have second we add a onsumbit call to the [...]]]></description>
			<content:encoded><![CDATA[<p>
Today i want to send the post request from a form to a pop up window and the solution is pretty simple first we have to create our form and then we add a target attribute where we specify the name that our popup window will have second we  add a onsumbit call to the form that will popup the new window and submit the form we also have to assign and id to our form that will be usefull when calling the function that popup the windows
</p>

<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/form.html"><span class="kw2">&lt;form</span></a> <span class="kw3">action</span>=<span class="st0">&quot;index.php&quot;</span> <span class="kw3">method</span>=<span class="st0">&quot;post&quot;</span> <span class="kw3">target</span>=<span class="st0">&quot;windowName&quot;</span> <span class="kw3">onsubmit</span>=<span class="st0">&quot;return postPopup();&quot;</span> <span class="kw3">id</span>=<span class="st0">&quot;postForm&quot;</span><span class="kw2">&gt;</span></span></div></li>
<li class="li1"><div class="de1">&nbsp;<span class="sc2"><a href="http://december.com/html/4/element/input.html"><span class="kw2">&lt;input</span></a> <span class="kw3">type</span>=<span class="st0">&quot;text&quot;</span> <span class="kw3">name</span>=<span class="st0">&quot;value1&quot;</span> /<span class="kw2">&gt;</span></span></div></li>
<li class="li1"><div class="de1">&nbsp;<span class="sc2"><a href="http://december.com/html/4/element/input.html"><span class="kw2">&lt;input</span></a> <span class="kw3">type</span>=<span class="st0">&quot;text&quot;</span> <span class="kw3">name</span>=<span class="st0">&quot;value2&quot;</span> /<span class="kw2">&gt;</span></span></div></li>
<li class="li2"><div class="de2">&nbsp;<span class="sc2"><span class="coMULTI">&lt;!&#8211; put all the form elements here &#8211;&gt;</span></span></div></li>
<li class="li1"><div class="de1">&nbsp;<span class="sc2"><a href="http://december.com/html/4/element/input.html"><span class="kw2">&lt;input</span></a> <span class="kw3">type</span>=<span class="st0">&quot;submit&quot;</span> /<span class="kw2">&gt;</span></span></div></li>
<li class="li1"><div class="de1"><span class="sc2"><span class="kw2">&lt;/form&gt;</span></span></div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<br />
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&lt;script type=<span class="st0">&quot;text/javascript&quot;</span>&gt;</div></li>
<li class="li1"><div class="de1"><span class="kw2">function</span> postPopup<span class="br0">&#40;</span> formElem <span class="br0">&#41;</span> <span class="br0">&#123;</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// here we popup the new window, the second attribute have to be the same as the form target attribute</span></div></li>
<li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; window.<span class="kw3">open</span><span class="br0">&#40;</span> <span class="st0">&#8221;</span>, <span class="st0">&#8216;windowName&#8217;</span>, <span class="st0">&#8216;width=800, height=400, resizable=yes, scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no&#8217;</span> <span class="br0">&#41;</span>;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// we submit the form 50 milliseconds after so the browser creates the popup</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; setTimeout<span class="br0">&#40;</span><span class="st0">&quot;document.getElementById(&#8216;postForm&#8217;).submit();&quot;</span>,<span class="nu0">50</span><span class="br0">&#41;</span>;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// we stop the regurar form submit</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">false</span>;</div></li>
<li class="li2"><div class="de2"><span class="br0">&#125;</span></div></li>
<li class="li1"><div class="de1">&lt;/script&gt;</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/01/26/send-a-post-request-to-a-popup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

