<?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"
	>

<channel>
	<title>developersnippets.com &#187; xml</title>
	<atom:link href="http://developersnippets.com/category/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://developersnippets.com</link>
	<description>developersnippets</description>
	<pubDate>Tue, 02 Dec 2008 17:17:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Simple steps to develop AJAX Website – DeveloperSnippets</title>
		<link>http://developersnippets.com/2008/08/16/simple-steps-to-develop-ajax-website-%e2%80%93-developersnippets/</link>
		<comments>http://developersnippets.com/2008/08/16/simple-steps-to-develop-ajax-website-%e2%80%93-developersnippets/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 17:55:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ajax]]></category>

		<category><![CDATA[Designing]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[xml]]></category>

		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://developersnippets.com/?p=236</guid>
		<description><![CDATA[As we all know AJAX is rocking the Web World all around, just I had a thought to developer a simple AJAX website which has got possible links to navigate to the respective page. To built this simple AJAX website I have used Nifty Cube Layouts for better look and feel, as we all know [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know AJAX is rocking the Web World all around, just I had a thought to developer a simple AJAX website which has got possible links to navigate to the respective page. To built this simple AJAX website I have used Nifty Cube Layouts for better look and feel, as we all know Nifty Cubes are rocking with their simple and robust layouts by providing us excellent features which are developed using simple JavaScript and CSS Techniques. After going through this article you might know how we can create a simple awesome AJAX website.<span id="more-236"></span></p>
<p>If you see this layout, the sections are rendered in rounded corners as Nifty Cubes are famous for Rounded Corners without images.</p>
<p>Basically the one which I have developed is a static website using some simple concepts of AJAX, this will depicts the concepts of AJAX and those who are new to AJAX can learn some simple concepts of AJAX. In this article, if you are interested can download the code and can learn some tips.</p>
<p>You can download the entire code here - <a title="Simple AJAX Website" href="http://www.developersnippets.com/SimpleAjaxWebsite/SimpleAJAXWebsite.zip" title="Simple AJAX Website">download</a> , and if you want to see live preview - here is the link to visit - <a title="Simple AJAX Website" href="http://www.developersnippets.com/SimpleAjaxWebsite/" title="Simple AJAX Website">SimpleAJAXWebsite</a></p>
<p><img src="http://developersnippets.com/wp-content/uploads/2008/08/ajaxwebsite.jpg" alt="Simple steps to develop AJAX Website" /></p>
<p><strong>Steps to develop simple AJAX Website:</strong></p>
<p>1. After downloading, just open index.html page in to your favorite html editors, once you have done that, if you can see some styles has been used in that page like below screen shot, those are related to Nifty Cubes (This has been used for Rounded Corners). And below <strong>&lt;styles&gt;</strong> some JavaScript stuff is used for Rounded Corners.</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">&lt;script type=&quot;text/javascript&quot; src=&quot;js/niftycube.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.onload=function(){
Nifty(&quot;div#content,div#nav&quot;,&quot;same-height&quot;);
}
&lt;/script&gt;</pre>
<p>2. After the above script, you can see a <strong>&lt;script&gt;</strong> tag in which we are calling one external JavaScript file (<strong>ajax.js</strong> )</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">&lt;script type=&quot;text/javascript&quot; src=&quot;js/ajax.js&quot; language=&quot;JavaScript&quot;&gt;&lt;/script&gt;</pre>
<p>3. After the above &lt;script&gt; tag, actual body content starts here, where in which you can see some tags and unordered lists used in the respective content code.</p>
<p>4. If you watch carefully,  for menu we are using &lt;ul&gt; unordered lists like below</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">&lt;ul&gt;
&lt;li onClick=&quot;activeLink('home.html')&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;home&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li onClick=&quot;activeLink('about.html')&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;about&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
&lt;li onClick=&quot;activeLink('downloads.html')&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;downloads&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;li onClick=&quot;activeLink('webresources.html')&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;webresources&quot;&gt;Web Resources&lt;/a&gt;&lt;/li&gt;
&lt;li onClick=&quot;activeLink('techvideobytes.html')&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; id=&quot;techvideobytes&quot;&gt;Tech Video Bytes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>For each link we are calling one JavaScript function like “activeLink()”, when user clicks on the respective links provided this link loads the respective page in the container provided. That is, here container is the “pagecontent”. Search for “pagecontent” in the respective file you can see this is as a div “Id”.</p>
<p>5. Now just open “<strong>ajax.js</strong> ” file, and search for the function <strong>activeLink(linkId)</strong> , here “<strong>linkId</strong> ” is the parameter we are passing to this function. This will holds the respective page file name like <strong>activeLink(&#8217;about.html&#8217;)</strong> , here we are passing <strong>about.html</strong> as a parameter to the function activeLink. From there we are passing this parameter to another function named “<strong>loadPage()</strong> ”.</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">function activeLink(linkId)
{
loadPage(linkId, 'pagecontent', '&lt;p&gt;&lt;img src=\&quot;images/loading.gif\&quot; /&gt; Content is loading, Please Wait...&lt;/p&gt;', '&lt;p&gt;Error in Loading page &lt;img src=\&quot;images/error_caution.png\&quot; /&gt;&lt;/p&gt;');
}</pre>
<p>6. <strong>loadPage()</strong> has got more parameters like <strong>pageURL</strong> , <strong>divElementId</strong> , <strong>loadingMessage</strong> , <strong>pageErrorMessage</strong> .</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">loadPage(pageUrl, divElementId, loadinglMessage, pageErrorMessage)</pre>
<p><em>Description of  the above parameters are depicted below:</em></p>
<p><strong>pageURL</strong> – this is the parameter where in which we are passing the respective page URL that is respective filename, here we are passing respective file names as “home.html”, “about.html”, “downloads.html”, “webresources.html”, “techvideobytes.html”.</p>
<p><strong>divElementId</strong> – here we are giving the container id, that is when user clicks on the respective links the respective page will be called into that container.</p>
<p><strong>loadingMessage</strong> – this parameter is used for showing the user a message while loading the page.</p>
<p><strong>pageErrorMessage</strong> – this parameter is used when there is error in loading a respective page .</p>
<p>7. In <strong>loadPage()</strong> function we are creating respective HTTP request objects for different browsers.</p>
<p>8. Once the request is success then we are calling one function named “<strong>responsefromServer()</strong> ” where in which we are sending two parameters one is “divElementId” and the other is “pageErrorMessage”.</p>
<p>9. Once the request is success, it will load the page into the respective container using open function with get method.</p>
<pre style="border: 3px solid #959595; padding: 5px; overflow: auto; background-color: #f3f3f3; line-height: normal; color: #666666; font-size: 12px; width: 445px;">var req;
function loadPage(pageUrl, divElementId, loadinglMessage, pageErrorMessage) {
document.getElementById(divElementId).innerHTML = loadinglMessage;
try {
req = new XMLHttpRequest(); /* e.g. Firefox */
} catch(e) {
try {
req = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);  /* some versions IE */
} catch (e) {
try {
req = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);  /* some versions IE */
} catch (E) {
req = false;
}
}
}
req.onreadystatechange = function() {responsefromServer(divElementId, pageErrorMessage);};
req.open(&quot;GET&quot;,pageUrl,true);
req.send(null);
}function responsefromServer(divElementId, pageErrorMessage) {
var output = '';
if(req.readyState == 4) {
if(req.status == 200) {
output = req.responseText;
document.getElementById(divElementId).innerHTML = output;
} else {
document.getElementById(divElementId).innerHTML = pageErrorMessage+&quot;\n&quot;+output;
}
}
}</pre>
<p>If you want to know more information regarding the concepts of AJAX, and need to know more about the HTTP request objects then need to visit this page once - <a title="Ajax: A New Approach to Web Applications" href="http://www.adaptivepath.com/ideas/essays/archives/000385.php" title="Ajax: A New Approach to Web Applications">Ajax: A New Approach to Web Applications</a> , this is a very powerful page where you can learn the actual concept of AJAX and at the bottom of the page you can see some Question and Answers section, where you can get most of the Answers for your questions.</p>
<p>Hope the above steps help us a lot in developing robust web applications using AJAX.</p>
<p><strong>Download and Live Preview:</strong><br />
You can download the entire code here - <a title="Simple AJAX Website" href="http://www.developersnippets.com/SimpleAjaxWebsite/SimpleAJAXWebsite.zip" title="Simple AJAX Website">download</a> , and if you want to see live preview - here is the link to visit - <a title="Simple AJAX Website" href="http://www.developersnippets.com/SimpleAjaxWebsite/" title="Simple AJAX Website">SimpleAJAXWebsite</a></p>
<p><strong>You may like to read this:</strong></p>
<p>1. <a title="Snippet Code for Simple Ajax Tabs with cool CSS Styles" href="http://developersnippets.com/2007/05/19/snippet-code-for-simple-ajax-tabs-with-cool-css-styles/" title="Snippet Code for Simple Ajax Tabs with cool CSS Styles">Snippet Code for Simple Ajax Tabs with cool CSS Styles</a></p>
<p>2. <a title=" Using XMLHttpRequest, reading XML data (Adobe AIR Application)" href="http://developersnippets.com/2007/08/19/using-xmlhttprequest-reading-xml-data-adobe-air-application/" title=" Using XMLHttpRequest, reading XML data (Adobe AIR Application)">Using XMLHttpRequest, reading XML data (Adobe AIR Application)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://developersnippets.com/2008/08/16/simple-steps-to-develop-ajax-website-%e2%80%93-developersnippets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>We the Team won in Truveo Developer Challenge Contest - TechVideoBytes</title>
		<link>http://developersnippets.com/2008/08/01/we-the-team-won-in-truveo-developer-challenge-contest-techvideobytes/</link>
		<comments>http://developersnippets.com/2008/08/01/we-the-team-won-in-truveo-developer-challenge-contest-techvideobytes/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 19:51:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Accessibility]]></category>

		<category><![CDATA[Action Scripting]]></category>

		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Ajax]]></category>

		<category><![CDATA[Apollo]]></category>

		<category><![CDATA[Blogroll]]></category>

		<category><![CDATA[C++]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Databases]]></category>

		<category><![CDATA[Designing]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Firefox]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Games]]></category>

		<category><![CDATA[Gfx]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[LightBox]]></category>

		<category><![CDATA[Maya]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Mootools]]></category>

		<category><![CDATA[Mozilla]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[ProtoType]]></category>

		<category><![CDATA[Reg Exp]]></category>

		<category><![CDATA[Safari Browser]]></category>

		<category><![CDATA[Technology News]]></category>

		<category><![CDATA[ThickBox]]></category>

		<category><![CDATA[Thoughts to Think about]]></category>

		<category><![CDATA[YUI]]></category>

		<category><![CDATA[Yahoo]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[xml]]></category>

		<category><![CDATA[Browser]]></category>

		<category><![CDATA[Ext JS]]></category>

		<category><![CDATA[Flash CS3]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://developersnippets.com/?p=230</guid>
		<description><![CDATA[We are glad to announce that, we the Team (Developers Snippets - TechVideoBytes ) won a prize gift in Truveo Developer Challenge Contest and in this contest we stand in top 4th place. We would like to thank the Truveo Team for conducting this contest, this indeed helps us in developing good web applications and [...]]]></description>
			<content:encoded><![CDATA[<p>We are glad to announce that, we the Team (<a title="Developer Snippets" href="http://www.developersnippets.com" title="Developer Snippets">Developers Snippets</a> - <a title="Tech Video Bytes" href="http://www.developersnippets.com/techvideobytes" title="Tech Video Bytes">TechVideoBytes</a> ) won a prize gift in Truveo Developer Challenge Contest and in this contest we stand in top 4th place. We would like to thank the Truveo Team for conducting this contest, this indeed helps us in developing good web applications and can show case the same to the entire Web World. We the Team is striving hard to showcase some useful stuff to the developer to develop their career in technology.<span id="more-230"></span></p>
<p>If you see, <a title="Tech Video Bytes" href="http://www.developersnippets.com/techvideobytes" title="Tech Video Bytes">TechVideoBytes</a> is completely a technology based website, which depicts the ease of highlighting video tutorials on various software tools and various programming languages. You can learn tools online without paying anything, yes! its absolutely free bucks. Just select your favorite keyword and on a click you can view the respective video playing on the other page, and on the page we are consolidating all the relative videos in respect to your keyword selected, if you would like know more about the <a title="Tech Video Bytes" href="http://www.developersnippets.com/techvideobytes" title="Tech Video Bytes">TechVideoBytes</a> just crawl into the website – <a title="Tech Video Bytes" href="http://www.developersnippets.com/techvideobytes" title="Tech Video Bytes">TechVideoBytes</a> .</p>
<p><strong>About the contest:</strong><br />
Here in this contest there are nine $10,000 first place winners, and the 20 $500 second place winners which are determined by the 5 categories of TopCoder Community Favorite. If you guys want to know more about this contest just jump into <a title="TopCoder" href="http://www.topcoder.com/truveo" title="TopCoder">TopCoder</a></p>
<p>In the first place winners we stand in 4th place, and the categories includes <strong>Usage</strong> – 90, <strong>Innovation</strong> – 80, <strong>API</strong> – 80, <strong>AOL</strong> – 62, <strong>TC Rank</strong> – 94 and coming to over all <strong>Weighted Score</strong> is – 81.2</p>
<p>We are glad to bags this prize gift, and will strive hard to come up with other innovative web applications in coming future.</p>
<p><a href="http://www.developersnippets.com/techvideobytes/?tags=Flash+CS3"><img style="border: 1px solid #b6b6b6; padding: 2px;" src="http://developersnippets.com/wp-content/uploads/2008/08/techvideobytes_contest.jpg" border="0" alt="TechVideoBytes" /> </a></p>
<p>We had a crawl to all the websites which are listed in the prize winning list, we have many favorites websites which we liked the most is  <a title="MapOfVideo" href="http://mapofvideo.com/" title="MapOfVideo">MapOfVideo</a> , <a title="SVid" href="http://cyb3r.in/svid/" title="SVid">SVid</a> , <a title="VideoBuzz" href="http://www.wittysparks.com/searchvideos/" title="VideoBuzz">VideoBuzz</a> the network of <a title="WittySparks" href="http://www.wittysparks.com" title="WittySparks">Wittysparks</a> , <a title="VideoSearchBot" href="http://sites.google.com/a/i2r.a-star.edu.sg/video-search-bot/" title="VideoSearchBot">VideoSearchBot</a> .<a title="MapOfVideo" href="http://mapofvideo.com/" title="MapOfVideo"> MapOfVideo</a> has also got good features in the application which provided has got many other options by clicking on the respective spot and stands in 1st Position, <a title="SVid" href="http://cyb3r.in/svid/" title="SVid">SVid</a> it has got featured all the categories in all aspects, which is awesome enough to see and stands in 2nd place, <a title="VideoBuzz" href="http://www.wittysparks.com/searchvideos/" title="VideoBuzz">VideoBuzz</a> has bagged in 14th position in the contest. This site has got good look and feel providing all the respective top videos, featured videos and upcoming videos related to Hollywood, Bollywood, Tollywood, Kollywood and more. <a title="VideoSearchBot" href="http://sites.google.com/a/i2r.a-star.edu.sg/video-search-bot/" title="VideoSearchBot">VideoSearchBot</a> is an AIM bot for video search based on Truveo Video Search API. Just type the query and he will give you the video list with integrated links, which stands in 3rd position in $500 prize winner.</p>
<p>Finally! Kudos to all people who won prize gifts from Truveo.</p>
]]></content:encoded>
			<wfw:commentRss>http://developersnippets.com/2008/08/01/we-the-team-won-in-truveo-developer-challenge-contest-techvideobytes/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
