<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>JavaScript Jungle - CSS-Tricks Forums</title>
      <link>http://css-tricks.com/forums/categories/javascript/p4/feed.rss</link>
      <pubDate>Tue, 21 May 13 09:56:59 -0400</pubDate>
         <description>JavaScript Jungle - CSS-Tricks Forums</description>
   <language>en-CA</language>
   <atom:link href="/forums/discussions/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Css doesn&#039;t apply to content with jQuery $.ajax</title>
      <link>http://css-tricks.com/forums/discussion/24434/css-doesn039t-apply-to-content-with-jquery-ajax</link>
      <pubDate>Thu, 25 Apr 2013 20:47:13 -0400</pubDate>
      <dc:creator>arkader</dc:creator>
      <guid isPermaLink="false">24434@/forums/discussions</guid>
      <description><![CDATA[<p>Hi Everyone,</p>

<p>Here is my issue,
I have created a template with handlebars.js and i would like to fetch the data from a json file. So far, it works, my trouble is that my css doesn't apply to my template and events don't work too (mouseenter, mouseleaver ...)
The css is well included on the same page.</p>

<p>Here is my js file : <a href="http://pastebin.com/AcUmYZvf" target="_blank" rel="nofollow">http://pastebin.com/AcUmYZvf</a>
my template : <a href="http://pastebin.com/D2hhXJKy" target="_blank" rel="nofollow">http://pastebin.com/D2hhXJKy</a>
and here is my website : <a href="http://emalsaifi.com/purprodv1/productions.php" target="_blank" rel="nofollow">http://emalsaifi.com/purprodv1/productions.php</a></p>

<p>For instance, the images with BANE should be 320px by 320px.</p>

<p>Can someone help me plese ? :)
And sorry for my poor english</p>
]]></description>
   </item>
   <item>
      <title>eCommerce - Shopping-cart-dropdown bug - Rebinding after &quot;Add to cart&quot; fails</title>
      <link>http://css-tricks.com/forums/discussion/24359/ecommerce-shopping-cart-dropdown-bug-rebinding-after-add-to-cart-fails</link>
      <pubDate>Mon, 22 Apr 2013 12:13:15 -0400</pubDate>
      <dc:creator>LimeX</dc:creator>
      <guid isPermaLink="false">24359@/forums/discussions</guid>
      <description><![CDATA[<p>Hi!
I have a wp-ecommerce page where the Shopping-cart is in a dropdown-menu.
When adding an item to the shopping cart, the DOM is manipulated and the dropdown-function needs to be rebound (jQuery).
As of now the function is so that 400ms after adding any item to the cart, the Js that makes the dropdown functioning is ran again.
However, if the user hovers the dropdown cart inbetween the pressing of "add to cart" and those 400ms the page needs to be refreshed tfor the dropdown-menu to function.</p>

<p>Take a look here: <a href="http://onedeal.se" target="_blank" rel="nofollow">http://onedeal.se</a></p>

<p>Help is greatly appreciated, since this is a requirement from the client that I cannot fix without your help...</p>
]]></description>
   </item>
   <item>
      <title>jQuery PrintArea Help</title>
      <link>http://css-tricks.com/forums/discussion/24422/jquery-printarea-help</link>
      <pubDate>Thu, 25 Apr 2013 10:38:13 -0400</pubDate>
      <dc:creator>Maddtechwf</dc:creator>
      <guid isPermaLink="false">24422@/forums/discussions</guid>
      <description><![CDATA[<p>I have a form that I need people to fill out and then print.  I've got the jQuery PrintArea plugin to work but I'm trying to modify it to work the way I need it to.</p>

<p>I need the user to fill in the fields but when the print button is clicked, I need what shows up in the popup box to show a little differently.  I need to add some verbiage to it to make the item they are printing and signing a legally binding agreement.  Can anyone help me with this?</p>

<p><a href="http://jsfiddle.net/maddtechwf/z9Efk/" target="_blank" rel="nofollow">http://jsfiddle.net/maddtechwf/z9Efk/</a></p>
]]></description>
   </item>
   <item>
      <title>Wordpress - prettyPhoto not working</title>
      <link>http://css-tricks.com/forums/discussion/9248/wordpress-prettyphoto-not-working</link>
      <pubDate>Sun, 19 Sep 2010 12:02:22 -0400</pubDate>
      <dc:creator>lukewilde</dc:creator>
      <guid isPermaLink="false">9248@/forums/discussions</guid>
      <description><![CDATA[I have followed what it says on their site and it doesn't want to work for me, anyone got any ideas? I have added the rel="prettyPhoto" to the image but for the some reason the prettyphoto js isn't being called even thought i have done it exactly the same as the examply on the site.<br /><br />This page has an image which should be opened in prettyphoto: <a href="http://lsw-design.com/tf/darkgreen/?portfolio=cannot-be-read" target="_blank" rel="nofollow">http://lsw-design.com/tf/darkgreen/?portfolio=cannot-be-read</a>]]></description>
   </item>
   <item>
      <title>Please, explain little problem</title>
      <link>http://css-tricks.com/forums/discussion/24397/please-explain-little-problem</link>
      <pubDate>Wed, 24 Apr 2013 05:33:37 -0400</pubDate>
      <dc:creator>Kuzyo</dc:creator>
      <guid isPermaLink="false">24397@/forums/discussions</guid>
      <description><![CDATA[<p>I'm try make drop-down menu and have some problem, can someone explain in steps where i made mistakes. I'm only started studying JS :(
<a href="http://jsfiddle.net/9LqsD/" target="_blank" rel="nofollow">http://jsfiddle.net/9LqsD/</a></p>
]]></description>
   </item>
   <item>
      <title>Freetile, mansory, isotope or column-count always result in gaps.</title>
      <link>http://css-tricks.com/forums/discussion/24398/freetile-mansory-isotope-or-column-count-always-result-in-gaps-</link>
      <pubDate>Wed, 24 Apr 2013 06:06:59 -0400</pubDate>
      <dc:creator>kayintveen</dc:creator>
      <guid isPermaLink="false">24398@/forums/discussions</guid>
      <description><![CDATA[<p>Hi all,</p>

<p>I've been strugeling for ages now. im searching a perfect way to get a grid layout with variable hights and widths. 
but whatever i try  i always get a missing hole.</p>

<p>See for example: <a href="http://jsfiddle.net/MTxXZ/116/" target="_blank" rel="nofollow">http://jsfiddle.net/MTxXZ/116/</a>
when you scale it down you always get this result: <a href="http://cl.ly/image/3N1R2h263M3H" target="_blank" rel="nofollow">http://cl.ly/image/3N1R2h263M3H</a></p>

<p>Why can't 6 fill up the hole. 
The only way to solve is to randomize the sort order. but thats just unlogical for a blog. i don't mind switching 5 and 6. 
but starting with 9 and ending up with 1 is just not the way.</p>

<p>I also tried it with mansory.</p>

<p>nice: <a href="http://cl.ly/image/1h0k3i0Q0134" target="_blank" rel="nofollow">http://cl.ly/image/1h0k3i0Q0134</a>
not so nice: <a href="http://cl.ly/image/063d2X2d361M" target="_blank" rel="nofollow">http://cl.ly/image/063d2X2d361M</a></p>
]]></description>
   </item>
   <item>
      <title>Print Form Contents</title>
      <link>http://css-tricks.com/forums/discussion/24380/print-form-contents</link>
      <pubDate>Tue, 23 Apr 2013 11:12:17 -0400</pubDate>
      <dc:creator>Maddtechwf</dc:creator>
      <guid isPermaLink="false">24380@/forums/discussions</guid>
      <description><![CDATA[<p>Currently I have a form that users fill out and then click print and the form prints out for the end user to sign and then submit to us.  The print function is in ASP.NET but I would like to move it to JQuery if possible.  Can this be done?</p>
]]></description>
   </item>
   <item>
      <title>Jquery Badge</title>
      <link>http://css-tricks.com/forums/discussion/24376/jquery-badge</link>
      <pubDate>Tue, 23 Apr 2013 09:31:55 -0400</pubDate>
      <dc:creator>socialbandit</dc:creator>
      <guid isPermaLink="false">24376@/forums/discussions</guid>
      <description><![CDATA[<p>JavaScript Guru's ! I have an issue which i feel you can help with , im working on a webpage 
<a href="http://big5auction.com/cars_suvs.html" target="_blank" rel="nofollow">http://big5auction.com/cars_suvs.html</a>. I need to edit the text on the red badges e.g. "under offer". When i pull the code in firefox i can see the original line of code but when i go to my editor the line of code is not visible. That means i can change the text. The js file for the badge is as follows</p>

<pre><code>  function($)
  {$.fn.badger=function(badge,callback)
  {var badgerExists=this.find('#Badger').html();if(!badge)
  {if(badgerExists)
  {this.find('#Badger').remove();}}
  else
  {var oldBadge=this.find('#Badge').text();if(badge.charAt(0)=='+')
  {if(isNaN(badge.substr(1)))
  {badge=oldBadge+badge.substr(1);}
  else
  {badge=Math.round(Number(oldBadge)+Number(badge.substr(1)));}}
  else if(badge.charAt(0)=='-')
  {if(isNaN(badge.substr(1)))
  {badge=oldBadge-badge.substr(1);}
  else
  {badge=Math.round(Number(oldBadge)-Number(badge.substr(1)));}}
  if(badgerExists)
  {this.find('#Badge').html(badge);}
  else
  {this.append('&lt;div class="badger-outter" id="Badger"&gt;&lt;div class="badger-inner"&gt;&lt;p class="badger-badge" id="Badge"&gt;'+badge+'&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;');}
  if(isNaN(badge))
  {this.find('#Badge').removeClass('badger-number').addClass('badger-text');}
  else
  {this.find('#Badge').removeClass('badger-text').addClass('badger-number');}
  if(callback){callback(badge);}}};})(jQuery);
</code></pre>

<p>What can i do to make code visible so i can make changes.</p>

<p>Many Thanks</p>
]]></description>
   </item>
   <item>
      <title>need help with one video using fitvids()</title>
      <link>http://css-tricks.com/forums/discussion/24361/need-help-with-one-video-using-fitvids</link>
      <pubDate>Mon, 22 Apr 2013 14:13:21 -0400</pubDate>
      <dc:creator>lascaux21</dc:creator>
      <guid isPermaLink="false">24361@/forums/discussions</guid>
      <description><![CDATA[<p>hi All</p>

<p>I'm using fitvids() and Izotopes masonry script on this page: <a href="http://www.ryniak.com/wpdev/" target="_blank" rel="nofollow">http://www.ryniak.com/wpdev/</a>.</p>

<p>Here's a CodePen link: <a href="http://codepen.io/anon/pen/BLpJh" target="_blank" rel="nofollow">http://codepen.io/anon/pen/BLpJh</a></p>

<p>There is one video on this page that is causing a problem in Firefox only. In FF only (v 20.0.1) the masonry is all thrown off on page load, but fixes itself as soon as I resize the browser. In all other browsers, the video fits properly right from the first page load.</p>

<p>I believe the offending video is the first one (green leaves). When I take it out, everything works including the other video on the page.</p>

<p>Everything seems to be loading properly, no errors thrown with the exception of "Error: Permission denied to access property 'toString'". I've looked into that one and I don't think it's the cause of this issue.</p>

<p>Any thoughts would be greatly appreciated.</p>
]]></description>
   </item>
   <item>
      <title>need help making one div fade out and another fade in in its place</title>
      <link>http://css-tricks.com/forums/discussion/24356/need-help-making-one-div-fade-out-and-another-fade-in-in-its-place</link>
      <pubDate>Mon, 22 Apr 2013 11:09:06 -0400</pubDate>
      <dc:creator>rgalysh</dc:creator>
      <guid isPermaLink="false">24356@/forums/discussions</guid>
      <description><![CDATA[<p>Hello everyone. I am new to anything beyond HTML5 and CSS3. I am in school for IST and am the interim webmaster for our campus until they hire a replacement.</p>

<p>I am trying to get the area below the menu bar to fade away when a tab is clicked and have the selected tab appear in its place. I have gotten the whole page to do it from searching the web, but when I try to apply it to just the divs it doesn't work.</p>

<p><a href="http://www.angelfire.com/va/miura/restituo.html" target="_blank" rel="nofollow">http://www.angelfire.com/va/miura/restituo.html</a></p>

<p>This page is where I try all my tricks before implementing them on live pages. If I can get help doing it here I can figure how to transfer it to others. Since I don't know JS or jquery yet please try to explain it too me like I was a 5 year old trying to defuse a bomb. Thanks.</p>
]]></description>
   </item>
   <item>
      <title>JS Media Query</title>
      <link>http://css-tricks.com/forums/discussion/24350/js-media-query</link>
      <pubDate>Mon, 22 Apr 2013 08:18:28 -0400</pubDate>
      <dc:creator>iknowdavehouse</dc:creator>
      <guid isPermaLink="false">24350@/forums/discussions</guid>
      <description><![CDATA[<p>Although my CSS is getting better I just simply do not understand javascript yet.</p>

<p>I am using a slider on a simple (one break point) responsive micro site.</p>

<p>All I want to do is add a variable on the js running the slider so</p>

<p>Desktop</p>

<pre><code>  $(function () {


    $(".rslides").responsiveSlides({
      auto: true,
      pager: true,
      nav: false,
      speed: 1000,

    });

  });
</code></pre>

<p>And then at the first breakpoint I just want to swap the pager and nav round:</p>

<pre><code>  $(function () {


    $(".rslides").responsiveSlides({
      auto: true,
      pager: false,
      nav: true,
      speed: 1000,

    });

  });
</code></pre>

<p>So how do add a media query to this script so that I can swap between these two options?</p>

<p>Thanks</p>
]]></description>
   </item>
   <item>
      <title>Replace string (SEK) on every occurance</title>
      <link>http://css-tricks.com/forums/discussion/24345/replace-string-sek-on-every-occurance</link>
      <pubDate>Mon, 22 Apr 2013 03:43:56 -0400</pubDate>
      <dc:creator>LimeX</dc:creator>
      <guid isPermaLink="false">24345@/forums/discussions</guid>
      <description><![CDATA[<p>Hi!
I have a Wordpress ecommerce page with the plugin "wp-ecommerce".
The prices are output with wpsc_the_product_price_display();
This outputs the price + the currency shorhand, which for Swedish Kronas is SEK. However, SEK isnt used in sweden, we us kr for kronas. 
So the client want me to change every SEK to Kr, and I'm thinking of doing a JS/jQuery solution with something like .find() .replace(), but since I'm really new to the 'Js Jungle', I need help with this.</p>

<p>The price only occurs a mere 5 times per page. Every price is in a div with a class of price.</p>

<p>How would i go about creating the jQuery code for this? Since there are multiple tags i guess .each() needs to be involved...</p>

<p>Help greatly appreciated!</p>
]]></description>
   </item>
   <item>
      <title>Double quotes problem.</title>
      <link>http://css-tricks.com/forums/discussion/24286/double-quotes-problem-</link>
      <pubDate>Fri, 19 Apr 2013 00:50:41 -0400</pubDate>
      <dc:creator>proudfist</dc:creator>
      <guid isPermaLink="false">24286@/forums/discussions</guid>
      <description><![CDATA[<p>I'm getting this string from a client and it can't be modified before I get it, this is what I have to work with:
(also I'm limited to JS only)</p>

<p>['history_pr_0_cost1'='0'],['L_AC_CMD'='module("pay_mdl")']</p>

<p>How do I even assign this string to a variable to begin cleaning it and work with it? The double quotes
mess things up.</p>
]]></description>
   </item>
   <item>
      <title>On body click, hide search</title>
      <link>http://css-tricks.com/forums/discussion/24330/on-body-click-hide-search</link>
      <pubDate>Sun, 21 Apr 2013 06:23:47 -0400</pubDate>
      <dc:creator>chrisburton</dc:creator>
      <guid isPermaLink="false">24330@/forums/discussions</guid>
      <description><![CDATA[<p>When clicking "Find" in my menu, it brings down the search bar. Unfortunately, to hide it again, you have to click "Find" a second time. Is there a way to just click anywhere and it hide?</p>

<p>jQuery:</p>

<pre><code>  $('.find').click(function() {
    $('.search').slideToggle('slow');
  });
</code></pre>

<p><a rel="nofollow" href="http://codepen.io/chrisburton/pen/JCnzi" target="_blank">CodePen</a></p>
]]></description>
   </item>
   <item>
      <title>How to get &quot;data-&quot; values under ul tag into a comma separated list?</title>
      <link>http://css-tricks.com/forums/discussion/24287/how-to-get-data-values-under-ul-tag-into-a-comma-separated-list</link>
      <pubDate>Fri, 19 Apr 2013 00:51:23 -0400</pubDate>
      <dc:creator>West415</dc:creator>
      <guid isPermaLink="false">24287@/forums/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>Any help here definitely appreciated</p>

<p>I have this HTML structure and I'm using jQuery 1.9.x and want to basically iterate through a series of <code>&lt;li&gt;</code> tags and grab the value of a the HTML 5 data attribute (data-customerid) and build a comma delimited list of all the values.   I can't figure out how to format my message on here, but basically i have a UL with a named "id" and a series of li tags underneath with a href tags underneath each li.  The href tags have a data attribute called "data-customerid".</p>

<pre><code>  &lt;ul id="myList"&gt;
      &lt;li&gt;Row 1 &lt;a href="javascript:void(0)" data-customerid="833"&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;Row 2 &lt;a href="javascript:void(0)" data-customerid="836" &gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;Row 3 &lt;a href="javascript:void(0)" data-customerid="839" &gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
</code></pre>

<p>I should end up with a string like this in a variable <code>833,836,839</code>.</p>

<p>How can I do this?</p>

<p>Thanks...</p>
]]></description>
   </item>
   <item>
      <title>How to add a class to a div after scroll? [Sticky Navigation]</title>
      <link>http://css-tricks.com/forums/discussion/24336/how-to-add-a-class-to-a-div-after-scroll-sticky-navigation</link>
      <pubDate>Sun, 21 Apr 2013 12:59:58 -0400</pubDate>
      <dc:creator>Keilowe</dc:creator>
      <guid isPermaLink="false">24336@/forums/discussions</guid>
      <description><![CDATA[<p>Check out this site please <a rel="nofollow" href="http://www.liveforthefunk.com/" title="http://www.liveforthefunk.com/">http://www.liveforthefunk.com/</a></p>

<p>I just want to learn how I can recreate it.
I tried to copy and paste to try and understand but it doesn't work.
P.S I'm a beginner, clearly.</p>

<p>Please help...</p>
]]></description>
   </item>
   <item>
      <title>Can CodeKit be set to not compile Javascript</title>
      <link>http://css-tricks.com/forums/discussion/24300/can-codekit-be-set-to-not-compile-javascript</link>
      <pubDate>Fri, 19 Apr 2013 14:45:19 -0400</pubDate>
      <dc:creator>nathangross</dc:creator>
      <guid isPermaLink="false">24300@/forums/discussions</guid>
      <description><![CDATA[<p>Was looking for the option "Nothing" here: <a href="http://cl.ly/image/1u0M2B3z1F3r" target="_blank" rel="nofollow">http://cl.ly/image/1u0M2B3z1F3r</a></p>

<p>Any ideas?</p>
]]></description>
   </item>
   <item>
      <title>Swapping menus</title>
      <link>http://css-tricks.com/forums/discussion/24144/swapping-menus</link>
      <pubDate>Sun, 14 Apr 2013 01:02:01 -0400</pubDate>
      <dc:creator>WeirdMike</dc:creator>
      <guid isPermaLink="false">24144@/forums/discussions</guid>
      <description><![CDATA[<p>I did a search and didn't find too much in regards to what I'm seeking.
I would like to have a fixed menu (horizontal) on my site to hide when my users scroll beyond it down the page and have another menu (vertical) appear to the left of the content and scroll along with the page. Then when the user heads back up the Vertical menu hides and the Horizontal menu appears again. I looked into different ways to achieve this on StackOverflow but nothing was found.
Any pointers (not too jquery savvy yet) would be much appreciated.
-Thanks</p>
]]></description>
   </item>
   <item>
      <title>jQuery equivalent for css selector progress::-webkit-progress-value</title>
      <link>http://css-tricks.com/forums/discussion/24216/jquery-equivalent-for-css-selector-progress-webkit-progress-value</link>
      <pubDate>Wed, 17 Apr 2013 03:58:47 -0400</pubDate>
      <dc:creator>godesign</dc:creator>
      <guid isPermaLink="false">24216@/forums/discussions</guid>
      <description><![CDATA[<p>I need to adjust the transition time for an HTML5 <code>&lt;progress&gt;</code>-Bar with JS (jQuery) but I cannot find the right selector in jQuery doing this.</p>

<p>My current tries:</p>

<p>CSS:</p>

<pre><code>progress::-webkit-progress-value {
   -webkit-transition: all 0.5s;
   -moz-transition: all 0.5s;
   -o-transition: all 0.5s;
   -ms-transition: all 0.5s;
   transition: all 0.5s; /* Works like a charm */
}
</code></pre>

<p>JavaScript (with no success):</p>

<pre><code>// These lines do nothing when the progress value changes:
$(".progressSelectorClass[progress-value]").css({"-webkit-transition" : "all 6s"}); 
$(".progressSelectorClass &gt; *").css({"-webkit-transition" : "all 6s"}); 
$(".progressSelectorClass").css({"-webkit-transition" : "all 6s"});

// This will return an error:
$(".progressSelectorClass::-webkit-progress-value").css({"-webkit-transition" : "all 6s"});
</code></pre>

<p>Is there any chance to select the <code>progress::-webkit-progress-value</code> in JavaScript (with or without jQuery)?</p>
]]></description>
   </item>
   <item>
      <title>.slideToggle() only one  open at the time</title>
      <link>http://css-tricks.com/forums/discussion/24291/-slidetoggle-only-one-open-at-the-time</link>
      <pubDate>Fri, 19 Apr 2013 06:18:22 -0400</pubDate>
      <dc:creator>jfmyself</dc:creator>
      <guid isPermaLink="false">24291@/forums/discussions</guid>
      <description><![CDATA[<p>Hi I’m having trouble trying to .slideToggle() a and close it when another one is toggled. Here’s the demo: <a href="http://www.antibiotics-band.ch/site/band.html" target="_blank" rel="nofollow">http://www.antibiotics-band.ch/site/band.html</a></p>

<p>Only one bio should be open at the time. When an other one is clicked, it should disappear.</p>

<p>Thank you very much for your help!
Johnny</p>
]]></description>
   </item>
   <item>
      <title>Help using PageScroller lite</title>
      <link>http://css-tricks.com/forums/discussion/24261/help-using-pagescroller-lite</link>
      <pubDate>Thu, 18 Apr 2013 05:46:51 -0400</pubDate>
      <dc:creator>Kevin Mamaqi</dc:creator>
      <guid isPermaLink="false">24261@/forums/discussions</guid>
      <description><![CDATA[<p>Hi everybody,</p>

<p>Just I have made my first website for a client and I'm trying to make <a rel="nofollow" href="http://pagescroller.com/" title="PageScroller">PageScroller</a> lite work, but I can't.</p>

<p>This is the webpage: <a rel="nofollow" href="http://www.thefaithkeepers.com" title="The Faith Keepers">The Faith Keepers</a></p>

<p>I'm using HTML5 document and in Head of index I included this:</p>

<pre><code>  &lt;script type="text/javascript" src="<a href="http://code.jquery.com/jquery-latest.min.js" target="_blank" rel="nofollow">http://code.jquery.com/jquery-latest.min.js</a>"&gt;&lt;/script&gt;  
  &lt;script type="text/javascript" src="&lt;?php echo $tpath; ?&gt;/js/jquery.pagescroller.lite.js"&gt;&lt;/script&gt;   
  &lt;script type="text/javascript"&gt;   
    $(document).ready(function(){       
      // initiate page scroller plugin    
      $('body').pageScroller({HTML5mode:true});           
    });     
  &lt;/script&gt;
</code></pre>

<p>I'm Using Joomla! And I load modules in different sections of website for the frontpage and in Menu I link to a href="#"...</p>

<p>Don't know what I'm doing wrong.</p>

<p>Pleas some help and thanks in advance.
Kevin.</p>
]]></description>
   </item>
   <item>
      <title>jQuery Masonary Order</title>
      <link>http://css-tricks.com/forums/discussion/24277/jquery-masonary-order</link>
      <pubDate>Thu, 18 Apr 2013 15:35:55 -0400</pubDate>
      <dc:creator>Antone1</dc:creator>
      <guid isPermaLink="false">24277@/forums/discussions</guid>
      <description><![CDATA[<p>I'm using <a rel="nofollow" href="http://masonry.desandro.com/index.html" title="http://masonry.desandro.com/index.html">jQuery Masonary</a> for a basic dynamic grid layout. All works well.</p>

<p><a rel="nofollow" href="http://stackoverflow.com/questions/8896502/jquery-dynamic-layout-plugin" title="http://stackoverflow.com/questions/8896502/jquery-dynamic-layout-plugin">Ben Foster</a> who posted this question on stackoverflow explains our problem very well:</p>

<p>"The plugin appears to calculate the "next available space" based on the height of elements on the previous row.</p>

<p>View example <a rel="nofollow" href="http://i.stack.imgur.com/0EXrx.png" title="http://i.stack.imgur.com/0EXrx.png">here</a>.</p>

<p>In this example item #6 goes to the far right because the height of #4 is less than the height of #2 (where I want it to go).</p>

<p>The layout I would like to achieve is more similar to left-floating elements:</p>

<p>View example <a rel="nofollow" href="http://i.stack.imgur.com/ElUDG.png" title="http://i.stack.imgur.com/ElUDG.png">here</a>.</p>

<p>Are there options on the above plugin to achieve this layout or perhaps a different plugin available?"</p>
]]></description>
   </item>
   <item>
      <title>Javascript :hover, is it possible to designate areas.</title>
      <link>http://css-tricks.com/forums/discussion/24253/javascript-hover-is-it-possible-to-designate-areas-</link>
      <pubDate>Thu, 18 Apr 2013 00:08:41 -0400</pubDate>
      <dc:creator>thesublimeobject</dc:creator>
      <guid isPermaLink="false">24253@/forums/discussions</guid>
      <description><![CDATA[<p>I have been working with a lot of large area images lately, that are in essence split into different areas. Let's take for example a square that is split into four different equal squares. Each of these smaller squares has a :hover state similar to any other normal :hover state. The thing is, with some of these more complex images (unlike a square), I am wondering if there is a way to keep the image as one image and designate an area for the hover. For example with the square, to be able to say something like,</p>

<p>if (the mouse enters area from x = 0, x = 90px &amp;&amp; y = 0, y = 90px) { switch to :hover state 1 }</p>

<p>That obviously wouldn't be the code, but I hope this explanation makes sense. So, is there a way to do this, and if so, could someone direct me to the proper place to figure it out. It would be quite useful. Thanks!</p>
]]></description>
   </item>
   <item>
      <title>Jquery get and post</title>
      <link>http://css-tricks.com/forums/discussion/24240/jquery-get-and-post</link>
      <pubDate>Wed, 17 Apr 2013 16:51:55 -0400</pubDate>
      <dc:creator>Htmlmainiac</dc:creator>
      <guid isPermaLink="false">24240@/forums/discussions</guid>
      <description><![CDATA[<p>I have some JavaScript that is trying to Ajax to a file on someone else's server and I need to send post ang hat data at the same time but I can't.</p>
]]></description>
   </item>
   <item>
      <title>Javascript  exercises</title>
      <link>http://css-tricks.com/forums/discussion/24239/javascript-exercises</link>
      <pubDate>Wed, 17 Apr 2013 16:44:32 -0400</pubDate>
      <dc:creator>Kuzyo</dc:creator>
      <guid isPermaLink="false">24239@/forums/discussions</guid>
      <description><![CDATA[<p>Hi, guys.
I'm started learning this wonderful language, and looking practical excersices. Maybe anybody can write me some interesting, from previous experience.
I appreciate any help. Thanks</p>
]]></description>
   </item>
   <item>
      <title>Is there a way to override jQuery offset when using media queries?</title>
      <link>http://css-tricks.com/forums/discussion/24218/is-there-a-way-to-override-jquery-offset-when-using-media-queries</link>
      <pubDate>Wed, 17 Apr 2013 04:47:43 -0400</pubDate>
      <dc:creator>Archie22is</dc:creator>
      <guid isPermaLink="false">24218@/forums/discussions</guid>
      <description><![CDATA[<p>Hi guys,</p>

<p>I have the following problem. I am using a single page design and use jQuery to get an offset of -85. It works for the larger screens, but as soon as I apply the media queries, the headers on each page disappear. What is the correct way to sort out the issue? CSS/JavaScript.... and where on planet Earth do I begin?</p>

<pre><code>  $('.scroll').click(function(event) {
  event.preventDefault();

    var full_url = this.href;

    var parts = full_url.split('#');
    var trgt = parts[1];

    //var target_offset = $('#'+trgt).offset();
    var target_offset = $('#'+trgt).offset();
    var target_top = target_offset.top -85;

    //add the magic
    $('html, body').animate({scrollTop:target_top}, 500);

});

$('nav#navigation a').click(function(){
  $('nav#navigation a').removeClass('active');
    $(this).addClass('active');
}); 
</code></pre>

<p><a href="http://cdpn.io/vBqin" target="_blank" rel="nofollow">http://cdpn.io/vBqin</a></p>
]]></description>
   </item>
   <item>
      <title>JavaScript slider for words</title>
      <link>http://css-tricks.com/forums/discussion/24236/javascript-slider-for-words</link>
      <pubDate>Wed, 17 Apr 2013 14:45:38 -0400</pubDate>
      <dc:creator>cwork</dc:creator>
      <guid isPermaLink="false">24236@/forums/discussions</guid>
      <description><![CDATA[<p><a rel="nofollow" href="http://grab.by/lJ6E">http://grab.by/lJ6E</a></p>

<p>Can someone point me in the right direction on how to achieve what is in the image?</p>

<p>I have no problem on working it out myself, but I need a nudge, because I don't know enough about JavaScript to know what to look for.</p>

<p>I think it is a slider, but I want to use one word instead of an image. When you click on the elipses, the word will change, but it will also change (fade) on it's own every few seconds or so.</p>

<p>I can do this in Drupal with a module, but I would like to achieve it in my html prototype as well. Any hints?</p>

<p>Thanks
C</p>
]]></description>
   </item>
   <item>
      <title>***HOW TO DETECT MOBILE DEVICES USING JQUERY***</title>
      <link>http://css-tricks.com/forums/discussion/24217/how-to-detect-mobile-devices-using-jquery</link>
      <pubDate>Wed, 17 Apr 2013 03:59:50 -0400</pubDate>
      <dc:creator>rahuldsg</dc:creator>
      <guid isPermaLink="false">24217@/forums/discussions</guid>
      <description><![CDATA[<p>you can use this minified jQuery snippet to detect if your user is viewing using a mobile device. If you need to test for a specific device I’ve included a collection of JavaScript snippets below which can be used to detect various mobile handheld devices such as iPad, iPhone, iPod, iDevice, Andriod, Blackberry, WebOs and Windows Phone.</p>

<pre><code>/**
 * jQuery.browser.mobile (<a href="http://detectmobilebrowser.com/" target="_blank" rel="nofollow">http://detectmobilebrowser.com/</a>)
 * jQuery.browser.mobile will be true if the browser is a mobile device
 **/
(function(a){jQuery.browser.mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
</code></pre>

<p><strong>Example Usage:</strong></p>

<pre><code>if(jQuery.browser.mobile)
{
   console.log('You are using a mobile device!');
}
else
{
   console.log('You are not using a mobile device!');
}
</code></pre>

<p><strong>Detect iPad</strong></p>

<pre><code>var isiPad = /ipad/i.test(navigator.userAgent.toLowerCase());
if (isiPad)
{
  ...
}
</code></pre>

<p><strong>Detect iPhone</strong></p>

<pre><code>var isiPhone = /iphone/i.test(navigator.userAgent.toLowerCase());
if (isiPhone)
{
  ...
}
</code></pre>

<p><strong>Detect iPod</strong></p>

<pre><code>var isiPod = /ipod/i.test(navigator.userAgent.toLowerCase());
if (isiPod)
{
  ...
}
</code></pre>

<p><strong>Detect iDevice</strong></p>

<pre><code>var isiDevice = /ipad|iphone|ipod/i.test(navigator.userAgent.toLowerCase());

if (isiDevice)
{
  ...
}
</code></pre>

<p><strong>Detect Andriod</strong></p>

<pre><code>var isAndroid = /android/i.test(navigator.userAgent.toLowerCase());

if (isAndroid)
{
  ...
}
</code></pre>

<p><strong>Detect Blackberry</strong></p>

<pre><code>var isBlackBerry = /blackberry/i.test(navigator.userAgent.toLowerCase());

if (isBlackBerry)
{
  ...
}
</code></pre>

<p><strong>Detect WebOs</strong></p>

<pre><code>var isWebOS = /webos/i.test(navigator.userAgent.toLowerCase());

if (isWebOS)
{
  ...
}
</code></pre>

<p><strong>Detect Windows Phone</strong></p>

<pre><code>var isWindowsPhone = /windows phone/i.test(navigator.userAgent.toLowerCase());

if (isWindowsPhone)
{
  ...
}
</code></pre>
]]></description>
   </item>
   <item>
      <title>Load a php page into a div</title>
      <link>http://css-tricks.com/forums/discussion/18549/load-a-php-page-into-a-div</link>
      <pubDate>Sat, 14 Jul 2012 17:27:29 -0400</pubDate>
      <dc:creator>ShiDomY</dc:creator>
      <guid isPermaLink="false">18549@/forums/discussions</guid>
      <description><![CDATA[Hello. I am new here,  and I am sorry if this discussion has already been posted and if I posted it in the wrong category :(. <br />I will get to the point and my problem which doesn't let me sleep at night xD.<br /><br />First I will explain what I want to do. I want to load a php file a div located in the current structure of the website. You might say that this is no problem, but things get a bit complicated. To get a perfect understanding the layout of my website is as current : <br /><br />My navigation is at the top of the page. Below the navigation I have 2 containers ( divs ). One includes a menu, which is located on the left side, and on the right side I have the content in which should the php file load when a link from the left menu is clicked. I have tried with AJAX, jQuery and couldn't get it to work. I might have done something wrong, but I don't know where. So basically I want to load a php file into the right container after clicking a link from the left container without leaving the current page.<br /><br />Hope you can help me out a bit, or point me in the right direction. Thank you for your time, and again I am sorry if I posted it in the wrong category.<br /><br />Have a good day,<br />ShiDomY]]></description>
   </item>
   <item>
      <title>Conditionally load the meta viewport tag?</title>
      <link>http://css-tricks.com/forums/discussion/24192/conditionally-load-the-meta-viewport-tag</link>
      <pubDate>Tue, 16 Apr 2013 10:59:11 -0400</pubDate>
      <dc:creator>neilcreagh</dc:creator>
      <guid isPermaLink="false">24192@/forums/discussions</guid>
      <description><![CDATA[<p>I want to conditionally load the meta viewport tag, but can't figure out how to do this (easily*).</p>

<p>I'm using a bootstrap based responsive design, but there is no 'middle' size, just desktop and mobile, so iPads and other small screens (greater than 480px) get the standard desktop view.</p>

<p>The viewport meta tag is required for the mobile layout, but I would like to remove this if the screen size is greater than 480px, because I would like the iPad and other tablet devices to automatically resize the desktop site to fit, as they do without the viewport tag.</p>

<p>Essentially I'm trying to do this:</p>

<pre><code>  &lt;span class="visible-phone"&gt;&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;&lt;/span&gt;
</code></pre>

<p>Which would work perfectly in the body area, but not in the head area of the html.</p>

<p>Any ideas?
*I'm already loading JQuery and Bootstrap's responsive features so is there anything in there that I can use, or does this involve custom javascripting (where I'm out of my depth)?</p>
]]></description>
   </item>
   </channel>
</rss>