<?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>~ overflow ~ &#187; jQuery</title>
	<atom:link href="http://www.overflow.biz/blog/lang/en-us/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.overflow.biz/blog</link>
	<description>Coding and Internet Randomness</description>
	<lastBuildDate>Sun, 08 Jan 2012 23:34:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>label for=&#8221;id&#8221; don&#8217;t work on IE</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/09/27/label-forid-dont-work-on-ie?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=label-forid-dont-work-on-ie</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/09/27/label-forid-dont-work-on-ie#comments</comments>
		<pubDate>Mon, 27 Sep 2010 04:20:18 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[labels]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=494</guid>
		<description><![CDATA[Problem:

&#60;input type='radio' value='x' id='something_1' name='something'&#62;
&#60;label for='something_1'&#62;cool label&#60;/label&#62;

When user clicks on the label radio should be selected, this only happens on firefox.
Solution:

$(&#34;label&#34;).click(function(){
	if ($(this).attr(&#34;for&#34;) != &#34;&#34;)
		$(&#34;#&#34; + $(this).attr(&#34;for&#34;)).click();
});

More info on this issue:
Stackoverflow posting
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<pre class="brush: xml;">
&#60;input type='radio' value='x' id='something_1' name='something'&#62;
&#60;label for='something_1'&#62;cool label&#60;/label&#62;
</pre>
<p>When user clicks on the label radio should be selected, this only happens on firefox.</p>
<p><strong>Solution:</strong></p>
<pre class="brush: jscript;">
$(&#34;label&#34;).click(function(){
	if ($(this).attr(&#34;for&#34;) != &#34;&#34;)
		$(&#34;#&#34; + $(this).attr(&#34;for&#34;)).click();
});
</pre>
<p><strong>More info on this issue:</strong></p>
<p><a href="http://stackoverflow.com/questions/2677933/clickable-label-not-working-in-ie-8" target="_blank">Stackoverflow posting</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/09/27/label-forid-dont-work-on-ie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Validator scrollTo snippet</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/09/26/jquery-validator-scrollto-snippet?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-validator-scrollto-snippet</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/09/26/jquery-validator-scrollto-snippet#comments</comments>
		<pubDate>Mon, 27 Sep 2010 02:01:13 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery scrollTo]]></category>
		<category><![CDATA[jquery validator]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=491</guid>
		<description><![CDATA[Problem:
How to automatically scroll to the first wrong input on a long form validated using jquery validator?
Solution:

invalidHandler: function(form,validator) {
	if (validator.numberOfInvalids())
		setTimeout(function(){
			$.scrollTo($(&#34;form_id&#34;).(&#34;:input.error:first&#34;), 500);
		},250);
}

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to automatically scroll to the first wrong input on a long form validated using jquery validator?</p>
<p><strong>Solution:</strong></p>
<pre class="brush: jscript;">
invalidHandler: function(form,validator) {
	if (validator.numberOfInvalids())
		setTimeout(function(){
			$.scrollTo($(&#34;form_id&#34;).(&#34;:input.error:first&#34;), 500);
		},250);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/09/26/jquery-validator-scrollto-snippet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MarkItUp set em português (pt-br)</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/10/markitup-set-em-portugues-pt-br?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=markitup-set-em-portugues-pt-br</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/10/markitup-set-em-portugues-pt-br#comments</comments>
		<pubDate>Sat, 10 Jul 2010 19:48:12 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[markitup]]></category>
		<category><![CDATA[pt-br]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=468</guid>
		<description><![CDATA[Variáveis de markitup em português com youtube

markitup_bbcode = {
  nameSpace:          &#34;bbcode&#34;, // Useful to prevent multi-instances CSS conflict
  previewParserPath:  &#34;~/sets/bbcode/preview.php&#34;,
  markupSet: [
      {name:'Negrito', key:'B', openWith:'[b]', closeWith:'[/b]'},
      {name:'Italico', key:'I', openWith:'[i]', closeWith:'[/i]'},
   [...]]]></description>
			<content:encoded><![CDATA[<p>Variáveis de markitup em português com youtube</p>
<pre class="brush: jscript;">
markitup_bbcode = {
  nameSpace:          &#34;bbcode&#34;, // Useful to prevent multi-instances CSS conflict
  previewParserPath:  &#34;~/sets/bbcode/preview.php&#34;,
  markupSet: [
      {name:'Negrito', key:'B', openWith:'[b]', closeWith:'[/b]'},
      {name:'Italico', key:'I', openWith:'[i]', closeWith:'[/i]'},
      {name:'Sublinhado', key:'U', openWith:'[u]', closeWith:'[/u]'},
      {separator:'---------------' },
      {name:'Imagem', key:'P', replaceWith:'[img][![Url]!][/img]'},
      {name:'YouTube', key:'Y', openWith:'[youtube]', closeWith:'[/youtube]', placeHolder:'[![Url do YouTube]!]'},
      {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Coloque o texto do link aqui...'},
      {separator:'---------------' },
      {name:'Cores', openWith:'[color=[![Cor]!]]', closeWith:'[/color]', dropMenu: [
          {name:'Amarelo', openWith:'[color=yellow]', closeWith:'[/color]', className:&#34;col1-1&#34; },
          {name:'Laranja', openWith:'[color=orange]', closeWith:'[/color]', className:&#34;col1-2&#34; },
          {name:'Vermelho', openWith:'[color=red]', closeWith:'[/color]', className:&#34;col1-3&#34; },
          {name:'Azul', openWith:'[color=blue]', closeWith:'[/color]', className:&#34;col2-1&#34; },
          {name:'Roxo', openWith:'[color=purple]', closeWith:'[/color]', className:&#34;col2-2&#34; },
          {name:'Verde', openWith:'[color=green]', closeWith:'[/color]', className:&#34;col2-3&#34; },
          {name:'Branco', openWith:'[color=white]', closeWith:'[/color]', className:&#34;col3-1&#34; },
          {name:'Cinza', openWith:'[color=gray]', closeWith:'[/color]', className:&#34;col3-2&#34; },
          {name:'Preto', openWith:'[color=black]', closeWith:'[/color]', className:&#34;col3-3&#34; }
      ]},
      {name:'Tamanho', key:'S', openWith:'[size=[![Tamanho do texto]!]]', closeWith:'[/size]', dropMenu :[
          {name:'Grande', openWith:'[size=200]', closeWith:'[/size]' },
          {name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
          {name:'Pequeno', openWith:'[size=50]', closeWith:'[/size]' }
      ]},
      {separator:'---------------' },
      {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
      {separator:'---------------' },
      {name:'Limpar', className:&#34;clean&#34;, replaceWith:function(h) { return h.selection.replace(/\[(.*?)\]/g, &#34;&#34;) } }
   ]
};
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/10/markitup-set-em-portugues-pt-br/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery validator method for twitter</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/07/jquery-validator-method-for-twitter?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-validator-method-for-twitter</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/07/jquery-validator-method-for-twitter#comments</comments>
		<pubDate>Wed, 07 Jul 2010 23:27:52 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=466</guid>
		<description><![CDATA[Problem:
How to validate twitter @your_crap_name using jQuery&#8217;s validator plugin?
Solution:

jQuery.validator.addMethod(&#34;twitter&#34;, function(twitter, element) {
	return this.optional(element) &#124;&#124; twitter.match(/^@+\b[A-Z0-9._%-]+\b/i);
}, &#34;Twitter inválido&#34;);

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to validate twitter @your_crap_name using jQuery&#8217;s validator plugin?</p>
<p><strong>Solution:</strong></p>
<pre class="brush: jscript;">
jQuery.validator.addMethod(&#34;twitter&#34;, function(twitter, element) {
	return this.optional(element) &#124;&#124; twitter.match(/^@+\b[A-Z0-9._%-]+\b/i);
}, &#34;Twitter inválido&#34;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/07/jquery-validator-method-for-twitter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery validator validate a single field</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/06/jquery-validator-validate-a-single-field?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-validator-validate-a-single-field</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/06/jquery-validator-validate-a-single-field#comments</comments>
		<pubDate>Tue, 06 Jul 2010 20:32:25 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=462</guid>
		<description><![CDATA[Problem:
How to programatically validade a single non keyup field with jquery validator?
Solution: 

$(&#34;input[name=YOUR_FIELD_NAME]&#34;).valid()

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to programatically validade a single non keyup field with jquery validator?</p>
<p><strong>Solution: </strong></p>
<pre class="brush: jscript;">
$(&#34;input[name=YOUR_FIELD_NAME]&#34;).valid()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/06/jquery-validator-validate-a-single-field/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to abort ajax requests gracefully</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/06/28/how-to-abort-ajax-requests-gracefully?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-abort-ajax-requests-gracefully</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/06/28/how-to-abort-ajax-requests-gracefully#comments</comments>
		<pubDate>Mon, 28 Jun 2010 23:09:14 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[stuck ajax requests]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=453</guid>
		<description><![CDATA[Problem:
Ajax is great, everyone knows, but sometimes for network issues, server slowdowns or simply users issues request fails or keep loading for a long time. How to abort a request or all of them without needing to reload the whole page?
Solution:
First you need to throw all your ajax requests into a array, that way you [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>Ajax is great, everyone knows, but sometimes for network issues, server slowdowns or simply users issues request fails or keep loading for a long time. How to abort a request or all of them without needing to reload the whole page?</p>
<p><strong>Solution:</strong></p>
<p>First you need to throw all your ajax requests into a array, that way you can use it as api, so you can abort any &#8220;slow&#8221; requests, in my case i have a complex admin interface which sometimes bugs or get swamped with lots of requests at same time, usually due user related issues, so i added this &#8220;cancel&#8221; button which clears up all pending ajax requests, making the system more realiable. Before developing it i did a test on how it works, here&#8217;s the source:</p>
<pre class="brush: php;">
&#60;?php

// (c) z3n - R1V1@100628 - www.overflow.biz - rodrigo.orph@gmail.com

if (isset($_REQUEST['q'])) {
	header('Content-Type: application/json; charset=utf-8'); // mandatory for jquery compatibility
	if (!isset($_REQUEST['a']))
		sleep(20);
	echo json_encode(array(&#34;r&#34; =&#62; 1));
	die;
} else {

?&#62;

&#60;html&#62;
	&#60;head&#62;
		&#60;script src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;
		&#60;script type=&#34;text/javascript&#34;&#62;
			var _ajax=[];

			function do_dbg(msg) {
				$(&#34;#dbg&#34;).prepend(msg+&#34;&#60;BR&#62;&#34;);
			}

			function do_ajax() {
				do_dbg(&#34;do ajax&#34;);
				_ajax[_ajax.length] = $.ajax({data:&#34;q=something&#34;,success:function(r,s) {
					do_dbg(&#34;do ajax reply&#34;);
					return;
				}});
			}

			function do_ajax_fast() {
				do_dbg(&#34;do ajax_fast&#34;);
				_ajax[_ajax.length] = $.ajax({data:&#34;q=something&#38;a=other_thing&#34;,success:function(r,s) {
					do_dbg(&#34;do ajax fast reply&#34;);
					return;
				}});
			}

			function kill_ajax() {
				do_dbg(&#34;aborting all ajax&#34;);
				for (var i in _ajax)
					_ajax[i].abort();
			}

			$(document).ready(function(){
				$.ajaxSetup({
					url:&#34;&#60;?=$_SERVER['PHP_SELF']?&#62;&#34;,
					global:true,
					type:&#34;POST&#34;,
					dataType:'json',
					cache:false,
					async:true,
					timeout:12000000,
					scriptCharset:&#34;UTF-8&#34;
				});
			});
		&#60;/script&#62;
	&#60;/head&#62;
	&#60;body&#62;
		&#60;input type=&#34;button&#34; onClick=&#34;do_ajax();&#34; value=&#34;do ajax&#34;&#62;
		&#60;input type=&#34;button&#34; onClick=&#34;kill_ajax();&#34; value=&#34;kill ajax&#34;&#62;
		&#60;input type=&#34;button&#34; onClick=&#34;do_ajax_fast();&#34; value=&#34;do ajax fast&#34;&#62;

		&#60;BR&#62;&#60;BR&#62;

		&#60;span id=&#34;dbg&#34;&#62;&#60;/span&#62;
	&#60;/body&#62;
&#60;/html&#62;
&#60;?php

}

?&#62;</pre>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/06/28/how-to-abort-ajax-requests-gracefully/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery validator special highlights for radio and checkbox</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/06/17/jquery-validator-special-highlights-for-radio-and-checkbox?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-validator-special-highlights-for-radio-and-checkbox</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/06/17/jquery-validator-special-highlights-for-radio-and-checkbox#comments</comments>
		<pubDate>Fri, 18 Jun 2010 01:47:56 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[customizing]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=447</guid>
		<description><![CDATA[Problem:
Highlighting a checkbox or radio button on error with jquery&#8217;s validator plugin is not a good idea, specially if you&#8217;re adding borders , backgrounds or something like, since it&#8217;s NOT supported over all browsers. I have a little bar around them that goes red if something is wrong, however, it&#8217;s not possible to add it [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>Highlighting a checkbox or radio button on error with jquery&#8217;s validator plugin is not a good idea, specially if you&#8217;re adding borders , backgrounds or something like, since it&#8217;s NOT supported over all browsers. I have a little bar around them that goes red if something is wrong, however, it&#8217;s not possible to add it if there&#8217;s many elements, so it&#8217;s better add a wrapper element and style it, in my case i added an element which ID is the same of input NAME, a little change on the plugin make things automatic.</p>
<p><strong>Solution:</strong></p>
<pre class="brush: jscript;">
		highlight: function( element, errorClass, validClass ) {
			$(element).addClass(errorClass).removeClass(validClass);
			if (($(element).attr(&#34;type&#34;) == &#34;radio&#34; &#124;&#124; $(element).attr(&#34;type&#34;) == &#34;checkbox&#34;) &#38;&#38; $(&#34;#&#34;+$(element).attr(&#34;name&#34;)).length &#62; 0)
				$(&#34;#&#34;+$(element).attr(&#34;name&#34;)).addClass(errorClass).removeClass(validClass);
		},
		unhighlight: function( element, errorClass, validClass ) {
			$(element).removeClass(errorClass).addClass(validClass);
			if (($(element).attr(&#34;type&#34;) == &#34;radio&#34; &#124;&#124; $(element).attr(&#34;type&#34;) == &#34;checkbox&#34;) &#38;&#38; $(&#34;#&#34;+$(element).attr(&#34;name&#34;)).length &#62; 0)
				$(&#34;#&#34;+$(element).attr(&#34;name&#34;)).removeClass(errorClass).addClass(validClass);
		}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/06/17/jquery-validator-special-highlights-for-radio-and-checkbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic width / height jQuery tools overlay content</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/06/17/dynamic-width-height-jquery-tools-overlay-content?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dynamic-width-height-jquery-tools-overlay-content</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/06/17/dynamic-width-height-jquery-tools-overlay-content#comments</comments>
		<pubDate>Thu, 17 Jun 2010 23:27:26 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[jcrop]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[uplodify]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=445</guid>
		<description><![CDATA[Problem:
I have a form where user sends a image and, if needed, he will select an area of the image for cropping. Everything is loaded by AJAX and image size is dynamic, nothing wrong with Jcrop but overlay is not able to work right if there&#8217;s no width set the div floats at wrong position.
The [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I have a form where user sends a image and, if needed, he will select an area of the image for cropping. Everything is loaded by AJAX and image size is dynamic, nothing wrong with Jcrop but overlay is not able to work right if there&#8217;s no width set the div floats at wrong position.</p>
<p>The setup of the form is quite complex (uploadify + jQuery tools overlay + Jcrop + AJAX), so it was complicated isolating the issue.</p>
<p><strong>Solution:</strong></p>
<p>By adding a image height / width reply to the ajax after image upload, setting the overlay container css width with it and reloading the overlay call fixed the issue.<br />
Here&#8217;s a snippet:</p>
<pre class="brush: jscript;">
				$(&#34;#crop_container&#34;).css({
					height:&#34;auto&#34;,
					width: r.w+&#34;px&#34;
				}).overlay({
					speed: 500,
					fixed:false,
					closeOnClick: false,
					closeOnEsc: false,
					oneInstance: true,
					mask: {
						color: '#fff',
						opacity: 0.5
					}
				});

				$(&#34;#crop_container &#62; span&#34;).html(&#34;&#60;img height=&#34;+r.h+&#34; width=&#34;+r.w+&#34; src='&#34;+img+&#34;?&#34;+Math.random()+&#34;' id='crop_img'&#62;&#34;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/06/17/dynamic-width-height-jquery-tools-overlay-content/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>packable qTip</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/03/19/packable-qtip?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=packable-qtip</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/03/19/packable-qtip#comments</comments>
		<pubDate>Fri, 19 Mar 2010 03:20:00 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[packer]]></category>
		<category><![CDATA[qtip]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=334</guid>
		<description><![CDATA[Problem:
I was looking around and found this great jQuery plugin, qTip, i added to my auto packer javascript script and then it didn&#8217;t worked at all.
Reading further on their site i found out that they have a YUI compressed version which is not what i need.
Solution:
After hunting a lot of missing ; and extra ;, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I was looking around and found this great <a href="http://www.jquery.com" target="_blank">jQuery</a> plugin, <a href="http://craigsworks.com/projects/qtip/download/" target="_blank">qTip</a>, i added to my auto packer javascript script and then it didn&#8217;t worked at all.</p>
<p>Reading further on their site i found out that they have a <a href="http://developer.yahoo.com/yui/compressor/" target="_blank">YUI compressed</a> version which is not what i need.</p>
<p><strong>Solution:</strong></p>
<p>After hunting a lot of missing ; and extra ;, i&#8217;ve got a working packable version.</p>
<p><a title="qtip 1.0.0-rc3 packable" href="http://www.overflow.biz/blog/~scripts/jquery.qtip-1.0.0-rc3-packable.rar" target="_blank">download here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/03/19/packable-qtip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gracefully overriding fixed width/height divs</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/02/25/gracefully-overriding-fixed-widthheight-divs?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gracefully-overriding-fixed-widthheight-divs</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/02/25/gracefully-overriding-fixed-widthheight-divs#comments</comments>
		<pubDate>Thu, 25 Feb 2010 18:03:57 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[li]]></category>
		<category><![CDATA[overriding things]]></category>
		<category><![CDATA[tableless]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=327</guid>
		<description><![CDATA[Problem:
It&#8217;s like a industry standard now having everthing tableless, although i still thinking that EVERYTHING is too much, this been like the motto of many programmers around. But let&#8217;s skip the blablaing about this and go straight to the point:
You have 2 fixed width div/li `rows` on a site, they are nested and inside the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>It&#8217;s like a industry standard now having everthing tableless, although i still thinking that EVERYTHING is too much, this been like the motto of many programmers around. But let&#8217;s skip the blablaing about this and go straight to the point:</p>
<p>You have 2 fixed width div/li `rows` on a site, they are nested and inside the content, due the complex nature of the layout, there&#8217;s some other complications. All of sudden the client decides that he wants to ruin your layout adding a long, waaaaaaaaay long, horizontal listing, which not also overlapps the width of your left column but mostly like will make user&#8217;s screen to horizontally scroll.</p>
<p><strong>Solution:</strong></p>
<p>As much i like to discuss with client, it&#8217;s useless and i will be just wasting my time. This is also a tricky thing to fix since the column sizes are fixed, i would need to make the whole content column bigger, ruining the rest of the top elements. Let&#8217;s take a look on the example:</p>
<blockquote><p>&#60;div style=&#8221;width:600px&#8221;&#62;</p>
<p>content div header code here</p>
<p>&#60;div style=&#8221;width:2000px&#8221;&#62;</p>
<p>way long client designed div to ruin layouts</p>
<p>&#60;/div&#62;</p>
<p>&#60;/div&#62;</p></blockquote>
<p>(styles are just to simplifly)</p>
<p>so the solution (1) would be something like this:</p>
<blockquote><p>&#60;div style=&#8221;width:600px&#8221;&#62;</p>
<p>content div header code here</p>
<p>&#60;div style=&#8221;width:2000px;<strong>position:absolute;</strong>&#8220;&#62;</p>
<p>way long client designed div to ruin layouts</p>
<p>&#60;/div&#62;</p>
<p><strong>&#60;img src=&#8221;blank_image.gif&#8221; width=1 height=</strong><em>same height as the long width div</em><strong>&#62;</strong></p>
<p>&#60;/div&#62;</p></blockquote>
<p>solution (2), if your abomination div is also height dynamic:</p>
<blockquote><p>&#60;div style=&#8221;width:600px&#8221; <strong>id=&#8221;container&#8221;</strong>&#62;</p>
<p>content div header code here</p>
<p>&#60;div style=&#8221;width:2000px;<strong>position:absolute;</strong>&#8221; <strong>id=&#8221;abomination&#8221;</strong>&#62;</p>
<p>way long client designed div to ruin layouts</p>
<p>&#60;/div&#62;</p>
<p>&#60;/div&#62;</p>
<p><strong>&#60;script type=&#8221;text/javascript&#8221;&#62;</strong></p>
<p><strong>// after loading all the content of the abomination div, also assuming that you&#8217;re using jquery<br />
</strong></p>
<p><strong>$(&#8220;#container&#8221;).height(parseFloat($(&#8220;#abomination&#8221;).height()+50)+&#8221;px&#8221;);<br />
</strong></p>
<p><strong>&#60;/script&#62;</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/02/25/gracefully-overriding-fixed-widthheight-divs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

