<?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>Freelance PHP Web Developer London &#187; Javascript</title>
	<atom:link href="http://rizfolio.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://rizfolio.com/blog</link>
	<description>Freelance PHP/Web Developer walthamstow London. tutorials,scripts ecommerce solution guide and many more.</description>
	<lastBuildDate>Sun, 16 Aug 2009 16:29:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Javascript Animated Window Opener</title>
		<link>http://rizfolio.com/blog/javascript-animated-window-opener/</link>
		<comments>http://rizfolio.com/blog/javascript-animated-window-opener/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 23:45:28 +0000</pubDate>
		<dc:creator>Rizwan</dc:creator>
				<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[animated]]></category>
		<category><![CDATA[opener]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://rizfolio.com/blog/?p=75</guid>
		<description><![CDATA[Animated window opener with javascript. Cick on a link or button it will start from top left corner by expending horizontally then vertically. developed by web developer london.]]></description>
			<content:encoded><![CDATA[<p>If you are looking something cool and got board from old style popup opener which is blocked by many popup blockers then you should try this animated window opener. It’s not new but I am posting in my newly installed blog or want to share with others.</p>
<p>I found this one somewhere then i tried to tweak it and submitted to Dynamic Drive script sharing website and they did kind of a tweak as well to make it.</p>
<h3>How it works :</h3>
<p>When you click on a link or button it will start from top left corner by expending horizontally then vertically. It loads quite fast so you don’t have to sit back and watch it dancing in front of you.</p>
<p><strong>Code to place between head tags</strong></p>
<pre lang="javascript"><script><!--mce:0--></script></pre>
<p><strong>Code to place in body tag:</strong></p>
<pre lang="html"><!-- set up your links, either via text links or form buttons-->
<a onclick="expandingWindow('http://www.yahoo.com');return false" href="#">Yahoo.com</a>
<form action="" >
<input onclick="expandingWindow('http://www.freewarejava.com')" type="button" value="Freewarejava" />
</form>
</pre>
<p><script src="http://rizfolio.com/blog/post_stuff/animate_window.js" type="text/javascript"></script><br />
Example:<br />
<!-- set up your links, either via text links or form buttons--><br />
<a onclick="expandingWindow('http://www.rizfolio.com');return false" href="#">Rizfolio.com</a></p>
<form action="">
<input onclick="expandingWindow('http://www.google.com')" type="button" value="Google" /> </form>
<p><strong>Please note this was developed in 2004.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://rizfolio.com/blog/javascript-animated-window-opener/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Anchor Tips &amp; Tricks</title>
		<link>http://rizfolio.com/blog/javascript-anchor-tips-tricks/</link>
		<comments>http://rizfolio.com/blog/javascript-anchor-tips-tricks/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 13:49:02 +0000</pubDate>
		<dc:creator>Rizwan</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[goto]]></category>
		<category><![CDATA[jump]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://rizfolio.com/blog/?p=54</guid>
		<description><![CDATA[Jump to the anchor with javascript and html. tutorial will explain how can we use javascript to jump to the anchor in an html page.]]></description>
			<content:encoded><![CDATA[<p>In this article i will try to explain how can we use javascript to jump to different anchor within a page.</p>
<p>Anchor HTML Code</p>
<pre class="brush: xml;">&lt;a name=&quot;mystory&quot;&gt;&lt;/a&gt;</pre>
<p>Anchor Link</p>
<pre class="brush: xml;">&lt;a href=&quot;#mystory&quot;&gt;Test HTML Code&lt;/a&gt;
</pre>
<p>Example: <a href="#mystory">Test HTML Code</a></p>
<p>Javascript function to jump to the anchor</p>
<pre class="brush: jscript;">
function goToAnchor(nameAnchor){
     window.location.hash=nameAnchor;
}
</pre>
<p>How to call javascript function to jump to anchor</p>
<pre class="brush: xml;">&lt;a href=&quot;javascript:goToAnchor('mystory')&quot;&gt;Test Javascript Code&lt;/a&gt;
</pre>
<p>Example: <a href="javascript:goToAnchor('mystory')">Test Javascript Code</a></p>
<p><script type="text/javascript"><!--
function goToAnchor(nameAnchor){
     window.location.hash=nameAnchor;
}
// --></script><br />
Anchor is here &#8211;&gt; <a name="mystory"></a> &lt;&#8211;</p>
<p><script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shCore.js?ver=2.0.320" type="text/javascript"></script><br />
 <script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushXml.js?ver=2.0.320" type="text/javascript"></script></p>
<p><script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushJScript.js?ver=2.0.320" type="text/javascript"></script><br />
 <script type="text/javascript"><!--
	SyntaxHighlighter.config.clipboardSwf = 'http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf';
	SyntaxHighlighter.config.strings.expandSource = 'expand source';
	SyntaxHighlighter.config.strings.viewSource = 'view source';
	SyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard';
	SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now';
	SyntaxHighlighter.config.strings.print = 'print';
	SyntaxHighlighter.config.strings.help = '?';
	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
	SyntaxHighlighter.all();
// --></script></p>
]]></content:encoded>
			<wfw:commentRss>http://rizfolio.com/blog/javascript-anchor-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Radio button value with javascript</title>
		<link>http://rizfolio.com/blog/radio-button-javascript/</link>
		<comments>http://rizfolio.com/blog/radio-button-javascript/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 20:00:19 +0000</pubDate>
		<dc:creator>Rizwan</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[checked]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://rizfolio.com/blog/?p=29</guid>
		<description><![CDATA[Tutorial to get / set value of a checkbox , radio button with javascript function. This funciton can be used to validate radio/checkbox.]]></description>
			<content:encoded><![CDATA[<p>This tiny little javascript function can really be helpfull during your webdevelopment work. I used them very often when it requires for  javascript validation or if there is need of AJAX work. I will try to explain in beginner mode so I can cover as many readers as I can, But I assume you must have some knowledge of  HTML/Javascript Syntax.</p>
<pre class="brush: jscript;">

function checkOptionValue(inputObj){
var objLength = inputObj.length;
if(objLength == undefined){
if(inputObj.checked)
return inputObj.value;
else
return &quot;&quot;;
}else{
for(var i = 0; i &lt; objLength; i++) {
if(inputObj[i].checked) {
return inputObj[i].value;
}
}
}
return &quot;&quot;;
}</pre>
<p>Another way to find out if object exists or not</p>
<pre class="brush: jscript;">
function objExists(objToTest) {
if (null == objToTest) {
return false;
}
if (&quot;undefined&quot; == typeof(objToTest) ) {
return false;
}
return true;
}
</pre>
<h3>function explained</h3>
<p>Pass the radio option as form object not the only the name  of the radio button.<br />
Example:  function  like checkOptionValue(document.form1.myoption);</p>
<p>var objLength = inputObj.length; &#8211; It gets the  length of the radio options.<br />
Example if there are 2 radio input like (male, female)  its length will be 2.</p>
<p>if(objLength == undefined){ &#8211; Check if there is only one  radio option, then length method will return undefined.</p>
<p>if(inputObj.checked) “checked” function returns true or  false, true  if option is checked/selected.</p>
<p>return inputObj.value; return the value of checked option.</p>
<p>Else return &#8220;&#8221;; if its not check return empty  string.</p>
<p>Else do a loop based on the length of the radio object</p>
<p>Keep checking if any option found checked return its value.</p>
<p><strong>Working Example</strong></p>
<p><script type="text/javascript"><!--
function checkOptionValue(inputObj){
	var objLength = inputObj.length;
	if(objLength == undefined){
		if(inputObj.checked)
			return inputObj.value;
		else
			return "";
	}else{
		for(var i = 0; i < objLength; i++) {
			if(inputObj[i].checked) {
				return inputObj[i].value;
			}
		}
	}
	return "";
}
// --></script></p>
<form method="post">Which language you like the most?</p>
<p><label></label></p>
<input id="RadioGroup1" name="RadioGroup1" type="radio" value="Javascript" /> Javascript</p>
<p><label></label></p>
<input id="RadioGroup1" name="RadioGroup1" type="radio" value="PHP" /> PHP</p>
<p><label></label></p>
<input id="RadioGroup1" name="RadioGroup1" type="radio" value="ASP .NET" /> ASP .NET</p>
<input id="button" onclick="javascript:alert('So you like '+checkOptionValue(document.form1.RadioGroup1)+'! ahaan..')" name="button" type="button" value="check" />
</form>
<p>NEXT: Setting the radio option value with javascript.<br />
<script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shCore.js?ver=2.0.320" type="text/javascript"></script> <script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js?ver=2.0.320" type="text/javascript"></script></p>
<p><script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushJScript.js?ver=2.0.320" type="text/javascript"></script> <script src="http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushXml.js?ver=2.0.320" type="text/javascript"></script></p>
<p><script type="text/javascript"><!--
	SyntaxHighlighter.config.clipboardSwf = 'http://rizfolio.com/blog/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf';
	SyntaxHighlighter.config.strings.expandSource = 'expand source';
	SyntaxHighlighter.config.strings.viewSource = 'view source';
	SyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard';
	SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now';
	SyntaxHighlighter.config.strings.print = 'print';
	SyntaxHighlighter.config.strings.help = '?';
	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
	SyntaxHighlighter.all();
// --></script></p>
]]></content:encoded>
			<wfw:commentRss>http://rizfolio.com/blog/radio-button-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to make a website?</title>
		<link>http://rizfolio.com/blog/how-to-make-a-website/</link>
		<comments>http://rizfolio.com/blog/how-to-make-a-website/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 17:13:24 +0000</pubDate>
		<dc:creator>Rizwan</dc:creator>
				<category><![CDATA[News & Updates]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://localhost/rizfolio/blog/?p=1</guid>
		<description><![CDATA[How to become a developer? or if you want to develope a website and you are new to this fields then my article an help you learn some basics to start with your web development career by web development london.]]></description>
			<content:encoded><![CDATA[<p>Are you new to web development or websites? then you have came to write place.</p>
<p>I will be writing tutorials and articles starting from start. easy and friendly way.</p>
<p>keep visiting this blog for latest updates and tutorials.</p>
]]></content:encoded>
			<wfw:commentRss>http://rizfolio.com/blog/how-to-make-a-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

