<?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>Altmint Blog &#187; JavaScript</title>
	<atom:link href="http://blog.altmint.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.altmint.com</link>
	<description></description>
	<lastBuildDate>Mon, 24 Oct 2011 09:11:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Javascript Explode</title>
		<link>http://blog.altmint.com/javascript-explode</link>
		<comments>http://blog.altmint.com/javascript-explode#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:32:39 +0000</pubDate>
		<dc:creator>Kongoti</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[explode functionality in javascript]]></category>
		<category><![CDATA[Javascript explode]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=59</guid>
		<description><![CDATA[What is the equivalent function for php explode in Javascript? There is no explode function in java script.but we can handle the explode functionality by writing some custom functions. here is a simple java scriptÂ  code for you. If you Run the following code explode(&#8216;. &#8216;, &#8216;blog.altmint.com); It Could return 1.{0: &#8216;blog&#8217;, 1: &#8216;altmint&#8217;, 2: <a href="http://blog.altmint.com/javascript-explode">Continue Reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>What is the equivalent function for php explode in Javascript?</strong></p>
<p>There is no explode function in java script.but we can handle the explode functionality by writing some custom functions. here is a simple java scriptÂ  code for you.</p>
<p>If you Run the following code<br />
explode(&#8216;. &#8216;, &#8216;blog.altmint.com);</p>
<p>It Could return<br />
1.{0: &#8216;blog&#8217;, 1: &#8216;altmint&#8217;, 2: &#8216;com&#8217;}</p>
<pre class="brush: javascript">
function explode( delimiter, string, limit ) {
// Splits a string on string separator and return array of components. If limit is positive only limit number of components is returned. If limit is negative all components except the last abs(limit) are returned.
//
// version: 810.114
// discuss at: http://phpjs.org/functions/explode
// +     original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// +     improved by: kenneth
// +     improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// +     improved by: d3x
// +     bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// *     example 1: explode(&#039; &#039;, &#039;Kevin van Zonneveld&#039;);
// *     returns 1: {0: &#039;Kevin&#039;, 1: &#039;van&#039;, 2: &#039;Zonneveld&#039;}
// *     example 2: explode(&#039;=&#039;, &#039;a=bc=d&#039;, 2);
// *     returns 2: [&#039;a&#039;, &#039;bc=d&#039;]

var emptyArray = { 0: &#039;&#039; };

// third argument is not required
if ( arguments.length &lt; 2
|| typeof arguments[0] == &#039;undefined&#039;
|| typeof arguments[1] == &#039;undefined&#039; )
{
return null;
}

if ( delimiter === &#039;&#039;
|| delimiter === false
|| delimiter === null )
{
return false;
}

if ( typeof delimiter == &#039;function&#039;
|| typeof delimiter == &#039;object&#039;
|| typeof string == &#039;function&#039;
|| typeof string == &#039;object&#039; )
{
return emptyArray;
}

if ( delimiter === true ) {
delimiter = &#039;1&#039;;
}

if (!limit) {
return string.toString().split(delimiter.toString());
} else {
// support for limit argument
var splitted = string.toString().split(delimiter.toString());
var partA = splitted.splice(0, limit - 1);
var partB = splitted.join(delimiter.toString());
partA.push(partB);
return partA;
}
}
</pre>
<p>Click <a href="http://www.navioo.com/javascript/tutorials/Javascript_explode_1622.html" target="_blank">here to Read  more. </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/javascript-explode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alter Css Properties with Jquery</title>
		<link>http://blog.altmint.com/alter-css-properties-with-jquery</link>
		<comments>http://blog.altmint.com/alter-css-properties-with-jquery#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:40:11 +0000</pubDate>
		<dc:creator>Kongoti</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Alter Css Properties]]></category>
		<category><![CDATA[Javascript Css]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=41</guid>
		<description><![CDATA[how to change the Properties of class or id with javascript? It is very simple with jquery. we can alter or add any css property to the class or id. here is a sample example for it. Assuming Jquery is Included $(&#8220;#IdName&#8221;).css(&#8220;color&#8221;,&#8221;red&#8221;); (or) $(&#8220;.Classname&#8221;).css(&#8220;color&#8221;,&#8221;red&#8221;);]]></description>
			<content:encoded><![CDATA[<p><strong>how to change the Properties of class or id with javascript?</strong></p>
<p>It is very simple with jquery. we can alter or add any css property to the class or id. here is a sample example for it.</p>
<p>Assuming Jquery is Included</p>
<blockquote><p>$(&#8220;#IdName&#8221;).css(&#8220;color&#8221;,&#8221;red&#8221;);<br />
(or)<br />
$(&#8220;.Classname&#8221;).css(&#8220;color&#8221;,&#8221;red&#8221;);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/alter-css-properties-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

