<?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>Magento Design and Development &#187; jquery</title>
	<atom:link href="http://inchoo.net/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://inchoo.net</link>
	<description>Magento Design and Magento Development Professionals - Inchoo</description>
	<lastBuildDate>Wed, 16 May 2012 12:17:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Magento mobile theme &#8211; imobile</title>
		<link>http://inchoo.net/ecommerce/magento/magento-mobile-theme-imobile/</link>
		<comments>http://inchoo.net/ecommerce/magento/magento-mobile-theme-imobile/#comments</comments>
		<pubDate>Mon, 07 May 2012 11:22:43 +0000</pubDate>
		<dc:creator>Stanislav Mihic</dc:creator>
				<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Mobile web]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[magento theme]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[responsive design]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=14461</guid>
		<description><![CDATA[Magento meets jQuery mobile (ver 1.1.0), before we start please note this is only experiment, use this theme on your own, this is not (yet) production ready. In a nutshell &#8230;]]></description>
			<content:encoded><![CDATA[<p>Magento meets jQuery mobile (ver 1.1.0), before we start please note <strong>this is only experiment, use this theme on your own, this is not (yet) production ready</strong>. In a nutshell we have &#8220;package&#8221; under which we place all edited files. For start we use magento iphone theme and then add some &#8220;extra stuff&#8221;.<span id="more-14461"></span></p>
<p>Some of key features:</p>
<ul>
<li>Autodetects the mobile device</li>
<li>jQuery mobile (v. 1.1.0)</li>
<li>Homepage slider (<a href="http://swipejs.com/">http://swipejs.com/</a>)</li>
<li>Almost all pages styled <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p>Installation is simple, just copy downloaded files, (app, skin) after that go to administration and do some Magento magic. Magento already have browser detection, you only need to create rule. In our case we dropped table support because most of them will display normal desktop view store. Here is rule:</p>
<pre class="brush: php; title: ; notranslate">
iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini|Fennec
</pre>
<p>You can add any other browser to this Expression, just point your device to <a href="http://whatsmyuseragent.com/">http://whatsmyuseragent.com/</a> and find out user agent name of device browser. And this is how it looks in administration</p>
<div id="attachment_14465" class="wp-caption aligncenter" style="width: 619px"><a href="http://inchoo.net/wp-content/uploads/2012/05/packagesettings.jpg"><img class=" wp-image-14465 " title="packagesettings" src="http://inchoo.net/wp-content/uploads/2012/05/packagesettings.jpg" alt="" width="609" height="238" /></a><p class="wp-caption-text">Using expressions</p></div>
<p>We need to mention that theme is independent from main store theme, all files which are edited don&#8217;t &#8220;break&#8221; default Magento markup we are only using power of HTML5 and one of the new cool feature &#8220;<a href="http://www.w3.org/html/wg/html5/#custom">custom data attributes</a>&#8220;.</p>
<blockquote><p>Simply, the specification for custom data attributes states that any attribute that starts with &#8220;data-&#8221; will be treated as a storage area for private data (private in the sense that the end user can&#8217;t see it &#8211; it doesn&#8217;t affect layout or presentation).</p></blockquote>
<p>Short explanation by <a href="http://ejohn.org/blog/html-5-data-attributes/">John Resig</a></p>
<p>And here is our example for store header:</p>
<pre class="brush: php; title: ; notranslate">&lt;/pre&gt;
&lt;div data-role=&quot;header&quot; data-position=&quot;inline&quot; data-theme=&quot;c&quot;&gt;
&lt;h1&gt;&lt;a href=&quot;&lt;?php echo $this-&gt;getUrl('') ?&gt;&quot; data-icon=&quot;home&quot;&gt;
&lt;img src=&quot;&lt;?php echo $this-&gt;getLogoSrc() ?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;getLogoAlt() ?&gt;&quot; /&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;!--?php echo $this-----&gt;getChildhtml('top-user');?&gt;&lt;/div&gt;
&lt;pre&gt;</pre>
<p>We don&#8217;t have any local hosted files regarding to jQuery because it is much easier to edit and place the newest version of js.</p>
<pre class="brush: php; title: ; notranslate">
					&lt;![CDATA[&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;jQuery.noConflict();&lt;/script&gt;]]&gt;
					&lt;![CDATA[&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js&quot;&gt;&lt;/script&gt;]]&gt;
				&lt;![CDATA[		&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css&quot; /&gt;]]&gt;
            skin_jsjs/swipe.js
</pre>
<p>Ah, if you need more info about jQuery mobile framework go to: <a href="http://jquerymobile.com/">http://jquerymobile.com/</a>.</p>
<p>Swipe JS, <a href="http://swipejs.com/">http://swipejs.com/</a>,</p>
<blockquote><p>Swipe is a lightweight mobile slider with 1:1 touch movement, resistant bounds, scroll prevention, and completely library agnostic. <img src='http://inchoo.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p></blockquote>
<p>Ok, we made simple approach, create static block, named Slider with ID slider and place this code</p>
<pre class="brush: php; title: ; notranslate">&lt;/pre&gt;
&lt;div style=&quot;display: block;&quot;&gt;&lt;img src=&quot;{{media url=&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;display: none;&quot;&gt;&lt;img src=&quot;{{media url=&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;display: none;&quot;&gt;&lt;img src=&quot;{{media url=&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;display: none;&quot;&gt;&lt;img src=&quot;{{media url=&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;pre&gt;
</pre>
<p>If is there no needs for homepage slider just removed it from local.xml (from line 44).</p>
<p>For styling pages, we cover most of them but there is always more space to improve some part of Magento interface.</p>
<p>For demo and download go to our demo store <a href="http://imobile.inchoo4u.net">http://imobile.inchoo4u.net</a> with your smartphone, emulate in browser (change user agent), <a href="https://github.com/doxikus/imobile">visit @ github</a>, or just scan this QR code.</p>
<p><a href="http://inchoo.net/wp-content/uploads/2012/05/qr.png"><img class="aligncenter size-full wp-image-14484" title="qr" src="http://inchoo.net/wp-content/uploads/2012/05/qr.png" alt="" width="400" height="400" /></a></p>
<p>So if you have any suggestion, issues, trouble just comment below, enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/ecommerce/magento/magento-mobile-theme-imobile/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Create simple mobile ready search page</title>
		<link>http://inchoo.net/mobile-development/create-simple-mobile-ready-search-page/</link>
		<comments>http://inchoo.net/mobile-development/create-simple-mobile-ready-search-page/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 10:01:35 +0000</pubDate>
		<dc:creator>Stanislav Mihic</dc:creator>
				<category><![CDATA[Mobile development]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile friendly]]></category>
		<category><![CDATA[mobile web]]></category>
		<category><![CDATA[responsive design]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=11534</guid>
		<description><![CDATA[Idea is to create one page which will be ready for mobile devices and serve like mobile app. We will use google ajax search API and jQuery to enhance experience. &#8230;]]></description>
			<content:encoded><![CDATA[<p>Idea is to create one page which will be ready for mobile devices and serve like mobile app. We will use google ajax search API and jQuery to enhance experience. Also we will have script which will notice visitors how to add shorcut for iOs devices and use search like standalone app.<span id="more-11534"></span></p>
<p>Let&#8217;s start with HTML</p>
<pre class="brush: php; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;!-- if is screen bigeer than 481px load normal css --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; media=&quot;screen and (min-device-width: 481px)&quot; type=&quot;text/css&quot; /&gt;
&lt;!-- css for mobile devices, based on screen size --&gt;
&lt;!--&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;css/mobile.css&quot; /&gt;--&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot;  media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;css/mobile.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/mobile.css&quot; media=&quot;handheld&quot; type=&quot;text/css&quot; /&gt;
&lt;!--[if IE]&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; media=&quot;screen&quot; type=&quot;text/css&quot; /&gt;
&lt;![endif]--&gt;
&lt;!-- tell iPhone not to shrink mobile website --&gt;
&lt;!-- &lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; media=&quot;screen&quot; type=&quot;text/css&quot; /&gt;--&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&gt;
&lt;!-- enable full-screen mode (only when launched from home screen) --&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;
&lt;!-- iOS 2.0+: tell iOS not to apply any glare effects to the icon --&gt;
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;images/icon_home.png&quot; /&gt;
&lt;!-- iOS 3+: full-screen startup splash screen image (must be 320x460) --&gt;
&lt;link rel=&quot;apple-touch-startup-image&quot; href=&quot;images/startup.png&quot;&gt;

&lt;!-- bookmark popup window, use local storage HTML5 feature --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/bubble.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/bookmark.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; href=&quot;favicon.ico&quot; /&gt;
&lt;title&gt;Search and you shall find…&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;header&gt;
  &lt;h1&gt;My mobile search&lt;/h1&gt;
  &lt;h3&gt;Search for&lt;/h3&gt;
  &lt;ul class=&quot;icons&quot;&gt;
    &lt;li class=&quot;web&quot; title=&quot;Web Search&quot; data-searchType=&quot;web&quot;&gt;Web&lt;/li&gt;
    &lt;li class=&quot;images&quot; title=&quot;Image Search&quot; data-searchType=&quot;images&quot;&gt;Images&lt;/li&gt;
    &lt;li class=&quot;news&quot; title=&quot;News Search&quot; data-searchType=&quot;news&quot;&gt;News&lt;/li&gt;
    &lt;li class=&quot;videos&quot; title=&quot;Video Search&quot; data-searchType=&quot;video&quot;&gt;Videos&lt;/li&gt;
  &lt;/ul&gt;
  &lt;form id=&quot;searchForm&quot; method=&quot;post&quot;&gt;
    &lt;fieldset&gt;
      &lt;input id=&quot;s&quot; type=&quot;text&quot;  /&gt;
      &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; id=&quot;submitButton&quot; /&gt;
      &lt;div id=&quot;searchInContainer&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;check&quot; value=&quot;site&quot; id=&quot;searchSite&quot; checked /&gt;
        &lt;label for=&quot;searchSite&quot; id=&quot;siteNameLabel&quot;&gt;&lt;/label&gt;
        &lt;input type=&quot;radio&quot; name=&quot;check&quot; value=&quot;web&quot; id=&quot;searchWeb&quot; /&gt;
        &lt;label for=&quot;searchWeb&quot;&gt;Search The Web&lt;/label&gt;
      &lt;/div&gt;
    &lt;/fieldset&gt;
  &lt;/form&gt;
&lt;/header&gt;
&lt;section&gt;
  &lt;div id=&quot;resultsDiv&quot;&gt; &lt;/div&gt;
&lt;/section&gt;
&lt;footer&gt;
  &lt;div class=&quot;meta&quot;&gt; &lt;span class=&quot;alignleft&quot;&gt;&lt;a href=&quot;#&quot;&gt;Normal web&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;alignright&quot;&gt;&lt;a id='top' onclick='$(document).scrollTo(0,500);'&gt;Back to top&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/footer&gt;
&lt;!-- loading js files, moved to bottom, firs browser load html, css files then at the end js --&gt;

&lt;!-- loading jQuery from google CDN network --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- loading jQuery from google CDN network end --&gt;

&lt;!-- loading jQuery live serach and settings for search --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/search.js&quot;&gt;&lt;/script&gt;
&lt;!-- loading jQuery live serach and settings for search end--&gt;

&lt;!-- loading jQuery from back to top effect --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/scroll.js&quot;&gt;&lt;/script&gt;
&lt;!-- loading jQuery from back to top effect end--&gt;

&lt;!-- jQuery js settings, etc --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/control.js&quot;&gt;&lt;/script&gt;
&lt;!-- jQuery js settings, etc end --&gt;

&lt;!-- loading js files, end --&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>We will use CSS media query to detect screen size and adapt, add full-screen loading image with icon then load js for bubble notice and use HTML5 local storage to show only to new visitor bubble. At the end we are load jQuery scripts.</p>
<p>You need to edit search.js to add desired web address which will be included in search.</p>
<pre class="brush: php; title: ; notranslate">
	var config = {
		siteURL		: 'inchoo.net',	// Change this to your site
		searchSite	: true,
		type		: 'web',
		append		: false,
		perPage		: 8,			// A maximum of 8 is allowed by Google
		page		: 0				// The start page
	}
</pre>
<p>Now this is basic information how to get started with our little web app and customize to your needs. Use your smartphones to test demo page.</p>
<p>Live preview: <a title="Custom mobile web search" href="http://msearch.veselistudio.com">msearch.veselistudio.com</a></p>
<p>Download: <a href="http://inchoo.net/wp-content/uploads/2011/11/msearch.zip">Custom mobile web search</a></p>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/mobile-development/create-simple-mobile-ready-search-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery greater than ever</title>
		<link>http://inchoo.net/tools-frameworks/jquery-greater-than-ever/</link>
		<comments>http://inchoo.net/tools-frameworks/jquery-greater-than-ever/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 08:37:13 +0000</pubDate>
		<dc:creator>Ivan Weiler</dc:creator>
				<category><![CDATA[Tools & Frameworks]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=684</guid>
		<description><![CDATA[I&#8217;m a big fan of John Resig&#8216;s work. For those who doesn&#8217;t know he is the man behind jQuery JavaScript library, Firebug developer, Mozilla Corporation programmer and a man who &#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a rel="nofollow" href="http://ejohn.org/" target="_blank">John Resig</a>&#8216;s work. For those who doesn&#8217;t know he is the man behind jQuery JavaScript library, Firebug developer, Mozilla Corporation programmer and a man who <a rel="nofollow" href="http://ejohn.org/blog/classy-query/" target="_blank">made me laugh</a> more than once.</p>
<p>I would also like to mentione his <a href="http://ejohn.org/apps/learn/" target="_blank">Learning Advanced JavaScript</a> as a starting point for anyone who is, well, learning advanced JavaScript <img src='http://inchoo.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-684"></span>Few days ago jQuery celebrated 3 years with a announcment of <a href="http://docs.jquery.com/Release:jQuery_1.3" target="_blank">1.3 version</a> which brings us number of major changes and some new features to play with.</p>
<p>Sizzle: brand new CSS selector engine<br />
Live events: events that can be bound to all current AND FUTURE elements (now that&#8217;s a great idea!)<br />
Event object: some serious refactoring of the jQuery event system<br />
HTML injection rewrite: lightning-fast HTML appending<br />
Offset rewrite: super-quick position calculation<br />
No more browser sniffing: technique called feature detection</p>
<p>New Zend Framework 1.7 also introduces ZendX_JQuery component which integrates jQuery as an alternative to the already existing Dojo library. I didn&#8217;t tried it yet, but be sure i will. Maybe now Magento team would consider to use jQuery as their main library. I know it&#8217;s lot of work, but for some future versions, who knows.</p>
<p>I wish jQuery all the best and to last for many more years to come.</p>
<p><img class="alignnone size-full wp-image-691" title="jquery_rockstar" src="http://inchoo.net/wp-content/uploads/2009/01/jquery_rockstar.jpg" alt="jquery_rockstar" width="636" height="100" /></p>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/tools-frameworks/jquery-greater-than-ever/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FancyBox &#8211; Fancy image zooming tool</title>
		<link>http://inchoo.net/tools-frameworks/fancybox-fancy-image-zooming-tool/</link>
		<comments>http://inchoo.net/tools-frameworks/fancybox-fancy-image-zooming-tool/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 19:50:25 +0000</pubDate>
		<dc:creator>Tomislav Bilic</dc:creator>
				<category><![CDATA[Tools & Frameworks]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=7</guid>
		<description><![CDATA[There are many Lightbox clones this days. Some are fancier, some are lighter, some use jQuery, some do not. In this wast set of options, I found one I think I will prefer from today: FancyBox - fancy image zooming tool. It is based on jQuery and is a cool alternative to existing solutions.]]></description>
			<content:encoded><![CDATA[<p>There are many <a title="Lightbox JS" href="http://www.huddletogether.com/projects/lightbox/" target="_blank">Lightbox</a> clones this days. Some are fancier, some are lighter, some use jQuery, some do not. In this wast set of options, I found one I think I will prefer from today: <a title="FancyBox" href="http://fancy.klade.lv/" target="_blank">FancyBox &#8211; fancy image zooming tool</a></p>
<p>It is based on jQuery and is a cool alternative to existing solutions. Here are some features:</p>
<p><span id="more-7"></span></p>
<ul>
<li>Automatically scales large images to fit in window</li>
<li>Adds a nice drop shadow under the zoomed item</li>
<li>Groups related items and adds navigation through them (uses preloading)</li>
<li>Can display images, inline and iframed content</li>
<li>Customizable through settings and CSS</li>
</ul>
<p>Other <a title="Lightbox JS" href="http://www.huddletogether.com/projects/lightbox/" target="_blank">Lightbox</a> alternatives I found are:</p>
<ul>
<li><a title="Lightview" href="http://www.nickstakenburg.com/projects/lightview/" target="_blank">Lightview</a></li>
<li><a title="prettyPhoto" href="http://www.no-margin-for-errors.com/projects/prettyPhoto/" target="_blank">prettyPhoto</a></li>
<li><a title="Slimbox" href="http://www.digitalia.be/software/slimbox" target="_blank">Slimbox</a></li>
<li><a title="Highslide" href="http://vikjavev.no/highslide/" target="_blank">Highslide</a></li>
<li><a title="LightWindow" href="http://stickmanlabs.com/lightwindow/" target="_blank">LightWindow</a></li>
<li><a title="LightWindow" href="http://jquery.com/demo/thickbox/" target="_blank">Thickbox</a></li>
<li>and many more; full comparison can be found at <a title="The Lightbox Clones Matrix" href="http://planetozh.com/projects/lightbox-clones/" target="_blank">The Lightbox Clones Matrix</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/tools-frameworks/fancybox-fancy-image-zooming-tool/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

