<?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>Bits, Bytes And Burps &#187; jquery</title>
	<atom:link href="http://www.brainyautomation.com/blog/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainyautomation.com/blog</link>
	<description>Tech Ramblings of a Confused Mind...</description>
	<lastBuildDate>Wed, 16 Mar 2011 20:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>jQuery UI Themeswitcher Cookie Expires</title>
		<link>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/</link>
		<comments>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 21:39:48 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[jquery UI]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.brainyautomation.com/blog/?p=110</guid>
		<description><![CDATA[So I disagree with the current setup that is the default configuration with jQuery UI Themeswitcher, it expires the cookie<a href="http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>So I disagree with the current setup that is the default configuration with jQuery UI Themeswitcher, it expires the cookie at the end of the session. I mean really if the user is going to change the cookie to some color scheme they like chances are its going to be for longer than the current session and for crying out loud the user is going to expect your site to load the theme they selected last &#8211; else it looks broken. Just a poor decision in my opinion &#8211; so here is how I fixed it to last 1 year.</p>
<p>Download the <a href="http://jqueryui.com/themeroller/themeswitchertool/">themeswitcher.js</a> and save it locally wherever you like.</p>
<p>Now add the &#8220;cookieName&#8221; below this to the options defition in the file;</p>
<pre name="code" class="javascript">
    var options = jQuery.extend({
        loadTheme: null,
        initialText: 'Switch Theme',
        width: 150,
        height: 200,
        buttonPreText: 'Theme: ',
        closeOnSelect: true,
        buttonHeight: 14,
        cookieName: 'jquery-ui-theme',
        cookieExpires: 365,
        onOpen: function () { },
        onClose: function () { },
        onSelect: function () { }
    }, settings);
</pre>
<p>Now modify where the cookie gets made to use this new &#8220;cookieExpires&#8221; option (line 49);</p>
<pre name="code" class="javascript">
        $.cookie(options.cookieName, themeName, { expires: options.cookieExpires });
</pre>
<p>Know you can either use the default set here (365) or set your own in the initializer in your calling script;</p>
<pre name="code" class="javascript">
    $('#switcher').themeswitcher({ cookieExpires: 365, path: '/', loadTheme: "Sunny"});
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2010/09/23/jquery-ui-themeswitcher-cookie-expires/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Two forms same page?</title>
		<link>http://www.brainyautomation.com/blog/2009/12/01/two-forms-same-page/</link>
		<comments>http://www.brainyautomation.com/blog/2009/12/01/two-forms-same-page/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 21:13:00 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">/blog/post/Two-forms-same-page.aspx</guid>
		<description><![CDATA[I have a page that has two forms in the same page, the catch is the second form is nested<a href="http://www.brainyautomation.com/blog/2009/12/01/two-forms-same-page/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I have a page that has two forms in the same page, the catch is the second form is nested inside the first form. Well this violates W3C, and it seems that IE8 doesn&#8217;t work with it. Color me surprised that IE8 actually is doing what it suppose to do according to the HTML specs.</p>
<p>Anyhow I needed this to work for my form to function and I was limited on time. So here is what I did to make the submit work with IE8.</p>
<p>1. Remove the &#8220;Submit&#8221; on the Button and just make it plain button;</p>
<pre name="code" class="html">
<input type="button" id="Save" value="Save" /></pre>
<p>2. Add some jQuery magic to submit the first (the outer) form;</p>
<pre name="code" class="js">
$("#Save").click(function() {
    var form = $("form:first").serialize();
        $.ajax({
	    type: "POST",
	    url: "/Tickets/Edit/",
	    data: form,
	    success: function(msg) {
	    window.location = '/Tickets/Details/';
	    }
	});
});</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2009/12/01/two-forms-same-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jqGrid get Row Column Value</title>
		<link>http://www.brainyautomation.com/blog/2009/09/19/jqgrid-get-row-column-value/</link>
		<comments>http://www.brainyautomation.com/blog/2009/09/19/jqgrid-get-row-column-value/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 04:10:00 +0000</pubDate>
		<dc:creator>steven</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">/blog/post/jqGrid-get-Row-Column-Value.aspx</guid>
		<description><![CDATA[This took me a while to figure out, so I am putting it here for prosperity. This is how to<a href="http://www.brainyautomation.com/blog/2009/09/19/jqgrid-get-row-column-value/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>This took me a while to figure out, so I am putting it here for prosperity. This is how to get the value of a specific column in a jqGrid selected Row;</p>
<p><pre name="code" class="js">
ondblClickRow: function(id, rowid) {
    var ret = $("#grid").getRowData(id);
    window.location = '/Clients/Details/' + ret.ClientID;
}</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brainyautomation.com/blog/2009/09/19/jqgrid-get-row-column-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

