jQuery get browser width including scrollBar

Posted by Damodar Bashyal on September 06, 2013

 

First Check if scrollbar is on:

if($(document).height() > $(window).height()){... srcollbar is on ...}

Now lets create a function to find the width of the scrollbar:

More»

Adding Menu separator Bars with jQuery.

Posted by Damodar Bashyal on April 30, 2012

 

I had a website whose menu items were loaded from different file blocks and cms static blocks. So, I decided to use jQuery for this purpose. So here is my menu.

More»

Using jQuery with Magento Including Protype, Scriptaculous etc...

Posted by Damodar Bashyal on May 03, 2009

 

How to use jQuery with Magento?

Download jQuery from jQuery site

Add this line to the bottom of jQuery.js

jQuery.noConflict();

Copy the file to the js/jquery folder|directory

In page.xml, add it to the list of js files as:

<action method="addJs"><script>jquery/jquery-1.2.6.noConflict.min.js</script></action>

or,

<action method="addItem"><type>js</type><name>jquery.js</name><params/></action>
How to use jQuery with magento now?

The below procedure is one way.

More»