<?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>About Web Development by Activo &#187; AJAX</title>
	<atom:link href="http://www.activoinc.com/blog/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.activoinc.com/blog</link>
	<description>Web Development in a Web 2.0 World</description>
	<lastBuildDate>Wed, 24 Nov 2010 00:25:02 +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>How to Detect if the Page is Secure in a Magento Template?</title>
		<link>http://www.activoinc.com/blog/2009/10/22/how-to-detect-if-the-page-is-secure-in-a-magento-template/</link>
		<comments>http://www.activoinc.com/blog/2009/10/22/how-to-detect-if-the-page-is-secure-in-a-magento-template/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 14:00:57 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=361</guid>
		<description><![CDATA[When you are designing a Magento template it is easy to overlook a simple fact: most links should not be hard-coded and you should always use the methods that are available for you like getSkinUrl() and getJsUrl(). In addition to pointing to the right root folder, these methods also point to the secure or unsecure [...]]]></description>
			<content:encoded><![CDATA[<p>When you are designing a Magento template it is easy to overlook a simple fact: most links should not be hard-coded and you should always use the methods that are available for you like <strong>getSkinUrl()</strong> and <strong>getJsUrl()</strong>. In addition to pointing to the right root folder, these methods also point to the secure or unsecure URLs, &#8216;https&#8217; and &#8216;http&#8217; respectively. However, how can you detect if a URL needs to be secured or not?</p>
<p><img class="aligncenter size-full wp-image-362" title="herring-hall-marvin-safe" src="http://www.activoinc.com/blog/wp-content/uploads/2009/10/herring-hall-marvin-safe.jpg" alt="herring-hall-marvin-safe" width="500" height="331" /></p>
<p>In a recent Magento project, I needed to do exactly that: find out if we are in secure or in a non secure page and point to the right <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery">jQuery file on Google CDN&#8217;s</a>. Here is the code:</p>
<pre>&lt;?php if(Mage::app()-&gt;getStore()-&gt;isCurrentlySecure()): ?&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;?php else: ?&gt;
&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;?php endif;  ?&gt;</pre>
<p>The key method here is the <em><strong>Mage::app()-&gt;getStore()-&gt;isCurrentlySecure()</strong></em>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/772f8f00-52d3-4f3a-885f-66a3ef6fbbd5/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=772f8f00-52d3-4f3a-885f-66a3ef6fbbd5" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>January 7, 2009 -- <a href="http://www.activoinc.com/blog/2009/01/07/2009-the-year-of-open-source-software/" title="2009, the year of Open Source Software">2009, the year of Open Source Software</a> (0)</li><li>December 7, 2008 -- <a href="http://www.activoinc.com/blog/2008/12/07/a-list-of-cms-ecommerce-and-blogging-systems-that-officially-support-jquery/" title="A list of CMS and eCommerce systems that officially support jQuery">A list of CMS and eCommerce systems that officially support jQuery</a> (2)</li><li>October 8, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/08/magentos-massaction-for-custom-plugins/" title="Magento&#8217;s massAction for Custom Plugins">Magento&#8217;s massAction for Custom Plugins</a> (0)</li><li>September 29, 2009 -- <a href="http://www.activoinc.com/blog/2009/09/29/magentos-order-management-workflow-comprehensive-but-unrealistic-2/" title="Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic #2">Magento&#8217;s Order Management Workflow: Comprehensive but Unrealistic #2</a> (2)</li><li>June 18, 2009 -- <a href="http://www.activoinc.com/blog/2009/06/18/the-case-for-zencart-supporting-the-long-tail-of-ecommerce/" title="The Case for ZenCart: Supporting the Long Tail of eCommerce">The Case for ZenCart: Supporting the Long Tail of eCommerce</a> (2)</li><li>January 28, 2009 -- <a href="http://www.activoinc.com/blog/2009/01/28/open-source-ecommerce-the-good-the-bad-and-the-ugly/" title="Open Source eCommerce: the Good, the Bad, and the Ugly!">Open Source eCommerce: the Good, the Bad, and the Ugly!</a> (1)</li><li>December 4, 2008 -- <a href="http://www.activoinc.com/blog/2008/12/04/can-magento-and-typo3-be-integrated-yes-with-typogento/" title="Can Magento and Typo3 be integrated? Yes, with TypoGento">Can Magento and Typo3 be integrated? Yes, with TypoGento</a> (0)</li><li>November 3, 2008 -- <a href="http://www.activoinc.com/blog/2008/11/03/jquery-emerges-as-most-popular-javascript-library-for-web-development/" title="jQuery Emerges as Most Popular Javascript Library for Web Development">jQuery Emerges as Most Popular Javascript Library for Web Development</a> (2)</li><li>October 29, 2008 -- <a href="http://www.activoinc.com/blog/2008/10/29/is-magento-commerce-the-new-joomla/" title="Is Magento Commerce the new Joomla?">Is Magento Commerce the new Joomla?</a> (1)</li><li>September 22, 2008 -- <a href="http://www.activoinc.com/blog/2008/09/22/zencart-and-magento-for-ecommerce/" title="ZenCart and Magento for eCommerce">ZenCart and Magento for eCommerce</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/10/22/how-to-detect-if-the-page-is-secure-in-a-magento-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009, the year of Open Source Software</title>
		<link>http://www.activoinc.com/blog/2009/01/07/2009-the-year-of-open-source-software/</link>
		<comments>http://www.activoinc.com/blog/2009/01/07/2009-the-year-of-open-source-software/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 05:15:23 +0000</pubDate>
		<dc:creator>Ron Peled</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Ektron]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.activoinc.com/blog/?p=176</guid>
		<description><![CDATA[We are lucky to live in our times. No, it is not fun going through (steep) downturn economy. But it is exciting to see the changes that such a recession will bring. One of the exciting changes that I predict for 2009 is a general boost to open source projects: increased usage and adoption by [...]]]></description>
			<content:encoded><![CDATA[<p>We are lucky to live in our times. No, it is not fun going through (steep) downturn economy. But it is exciting to see the changes that such a recession will bring. One of the exciting changes that I predict for 2009 is a general boost to open source projects: increased usage and adoption by corporations while communities and ecosystems grow. Perhaps even to a point of competition with commercial products (in some cases). This is another question by itself: Can an open source project compete with a commercial product?</p>
<p>This year, 2009, we will see how open source projects will make huge strides and erase the gap with commercial projects, if not gain an advantage over them. Here is why:</p>
<p>1. <strong>Unbeatable Price: free!</strong> I know, it is not entirely true, you still need services around open source products and arguably more than in commercial products. But as the market learns to adopt more and more open source products the TCO can be lower with open source than commercial products, especially if you have the right team on your side.</p>
<p>2. <strong>Gain from the &#8216;wisdom of the crowd&#8217;, instead of wisdom of one as is often the case with commercial products</strong>. We see examples of this all over, in particular in the web development industry: <a href="http://www.umbraco.org/">Umbraco</a> is gaining huge marketing share compared with <a href="http://www.ektron.com/">Ektron</a>. <a href="http://www.magentocommerce.com/">Magento Commerce</a> is <a href="http://www.activoinc.com/blog/2008/10/29/is-magento-commerce-the-new-joomla/">gaining huge market share over any other open source ecommerce platform</a> and some of the low and mid-level commercial products in the ecommerce industry. Similar thing is happening with ASP.NET: the framework is now adopting the MVC design pattern mostly due to the fact that other platforms like Zend Framework and Ruby are free and product amazing websites. Top it off by the adoption of jQuery in almost any commercial web product today including ASP.NET framework which dumped AJAX.NET in favour of jQuery.</p>
<p>3. This is the sad-but-true part: <strong>developers are being laid off and hence join open source projects</strong>. It is known that the IT industry lags about 6 months after the indicators have come in, in other words, hi-tech layoffs will continue to come. In any case, more developers will be out of a job and will have plenty of time to collaborate and volunteer in open source projects &#8211; a great way to polish a resume&#8230;</p>
<p>To summarize, in 2009 we will see a great boost in open source adoption. Now, I am not saying that commercial products will not see any upside this year, but the competition will certainly be tougher then ever before. I am excited to see how it plays out. We certainly are going to focus our energies and our client&#8217;s energies on the leaders of each industry. You?</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>December 7, 2008 -- <a href="http://www.activoinc.com/blog/2008/12/07/a-list-of-cms-ecommerce-and-blogging-systems-that-officially-support-jquery/" title="A list of CMS and eCommerce systems that officially support jQuery">A list of CMS and eCommerce systems that officially support jQuery</a> (2)</li><li>October 29, 2008 -- <a href="http://www.activoinc.com/blog/2008/10/29/is-magento-commerce-the-new-joomla/" title="Is Magento Commerce the new Joomla?">Is Magento Commerce the new Joomla?</a> (1)</li><li>October 22, 2009 -- <a href="http://www.activoinc.com/blog/2009/10/22/how-to-detect-if-the-page-is-secure-in-a-magento-template/" title="How to Detect if the Page is Secure in a Magento Template?">How to Detect if the Page is Secure in a Magento Template?</a> (0)</li><li>January 28, 2009 -- <a href="http://www.activoinc.com/blog/2009/01/28/open-source-ecommerce-the-good-the-bad-and-the-ugly/" title="Open Source eCommerce: the Good, the Bad, and the Ugly!">Open Source eCommerce: the Good, the Bad, and the Ugly!</a> (1)</li><li>November 3, 2008 -- <a href="http://www.activoinc.com/blog/2008/11/03/jquery-emerges-as-most-popular-javascript-library-for-web-development/" title="jQuery Emerges as Most Popular Javascript Library for Web Development">jQuery Emerges as Most Popular Javascript Library for Web Development</a> (2)</li><li>October 6, 2008 -- <a href="http://www.activoinc.com/blog/2008/10/06/ektron-cms400-70-issues-with-net-framework-35-sp1/" title="Ektron CMS400 7.0 issues with .NET Framework 3.5 SP1">Ektron CMS400 7.0 issues with .NET Framework 3.5 SP1</a> (2)</li><li>September 22, 2008 -- <a href="http://www.activoinc.com/blog/2008/09/22/zencart-and-magento-for-ecommerce/" title="ZenCart and Magento for eCommerce">ZenCart and Magento for eCommerce</a> (2)</li><li>September 5, 2008 -- <a href="http://www.activoinc.com/blog/2008/09/05/joomla-vs-ektron/" title="Joomla vs Ektron">Joomla vs Ektron</a> (2)</li><li>July 30, 2008 -- <a href="http://www.activoinc.com/blog/2008/07/30/ektron-clarification-on-user-controls-vs-api/" title="Ektron: Clarification on User Controls vs API">Ektron: Clarification on User Controls vs API</a> (0)</li><li>June 18, 2009 -- <a href="http://www.activoinc.com/blog/2009/06/18/the-case-for-zencart-supporting-the-long-tail-of-ecommerce/" title="The Case for ZenCart: Supporting the Long Tail of eCommerce">The Case for ZenCart: Supporting the Long Tail of eCommerce</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.activoinc.com/blog/2009/01/07/2009-the-year-of-open-source-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

