<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1380401963625867146</id><updated>2012-02-17T00:49:56.674+05:30</updated><category term='xp desktop video'/><category term='Firefox'/><category term='Mozilla'/><category term='FF'/><category term='Fast'/><title type='text'>Programming Simplified</title><subtitle type='html'>A Freelancers Tips and Tricks On Programming With Php , Ajax , CGI -PEARL ,Javascripting , CSS and GM(grease-monkey)..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ajaxhacks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-6569398507030476892</id><published>2008-08-01T20:20:00.001+05:30</published><updated>2008-08-01T20:21:50.992+05:30</updated><title type='text'>The Windows 7 FAQ (Frequently Asked Questions)</title><content type='html'>What is Windows 7?&lt;br /&gt;&lt;br /&gt;Windows 7 is the codename or working name for the successor to Windows Vista.&lt;br /&gt;&lt;br /&gt;When will it be released?&lt;br /&gt;&lt;br /&gt;Microsoft is aiming for a Jan 2010 release. But, it’s too early to tell for sure. If all is well, then it may even be released in time for 2009 Christmas. Otherwise, its also possible that it will be delayed like Windows Vista.&lt;br /&gt;&lt;br /&gt;What happened to Vienna? Wasn’t it supposed to be the succesor to Windows 7?&lt;br /&gt;&lt;br /&gt;Originally Windows Vista was supposed to be a minor update to Windows Xp and Vienna (formerly codenamed Blackcomb) it’s succesor was supposed to be a major update. Another build, codenamed Fiji was supposed to be released between Vista and Vienna. But Windows Vista evolved into a major update and got delayed severely. So out went plans for an interim release between Vista and Vienna.&lt;br /&gt;Last year Steven Sinofsky took over the reigns of the Windows Developement team from Jim Allchin. Sinofsky, not being a fan of the fancy random codenames Microsoft had being using during the Allchin era decided to get rid of them and decided to call the next build of Windows simply Windows 7. So Windows 7 is Vienna.&lt;br /&gt;&lt;br /&gt;Will it run on my current PC/Notebook?&lt;br /&gt;&lt;br /&gt;Windows 7 will feature an modified Windows Server 2008 kernel which itself evolved from Windows Vista kernel. Hence, Windows 7 will support all Vista compatible hardware. In fact Microsoft stated that all Vista drivers would work with Windows 7. Windows 7 will have 32bit as well as 64 bit editions.&lt;br /&gt;&lt;br /&gt;But the real question is if current generation PC/Notebook are powerful enough to deliver decent performance with Windows 7. Frankly speaking its too early to answer this question accurately. We will probably be in a better position to answer this question by the same time next year.&lt;br /&gt;Historically each version of Windows has been more resource hungry than the previous (heck, even Wndows XP SP2 was more resource hungry than Windows XP SP1). And this is only natural given that each version has more features and hence more background processes. But, Vista’s system requirements were fairly steep compared to Windows XP. &lt;br /&gt;&lt;br /&gt;Last year Bill Gates had claimed that Windows 7 would take less memory, consume less power and be more efficient (source). I find that a bit hard to believe (if it’s indeed true then it would prove conclusively that Windows Vista is indeed terribly unoptimised). Since, Windows 7 is evolutionary rather than revolutionary like Windows Vista, I dont expect the jump in system requirements to be as steep. But I would expect that it would require at least 2gb’s of ram and a decent Dual Core processor to run smoothly. Infoworld is providing a Windows 7 compatibility widget which aims at providing generalized sense of a system’s suitability for running a post-Vista Windows OS. &lt;br /&gt;&lt;br /&gt;What about software support. Will it be able to run all Vista compatible software?&lt;br /&gt;Yes. Since Windows 7 is an evolved version of the Windows Vista kernel, all Vista compatible software will run on Windows 7.&lt;br /&gt;&lt;br /&gt;What’s new in Windows 7?&lt;br /&gt;&lt;br /&gt;After the Vista debacle where Microsoft had to go back on many much hyped features, Microsoft isn’t talking a lot this time around. Their new mantra is Under Promise and Over Deliver. Hence, unlike pre Vista era where we were flooded with information regarding the then upcoming release, we know fairly little about Windows 7. Here is what we do know :&lt;br /&gt;&lt;br /&gt;One of the most hyped features of Windows 7 is the multi-touch support. Obviously, this feature would work only with multi-touch compatible displays. You can read more on this at the Windows Vista Blog. Windows 7 would bring home many of the capabilities of Microsoft Surface such as ability to paint with fingers and use multi-touch gestures to browse through photo-galleries.Windows 7 will also provide better support for other natural forms of input. Speech technology and handwriting recognition will be improved (source). &lt;br /&gt;&lt;br /&gt;Windows 7 is also expected to feature a OSX-like dock.&lt;br /&gt;&lt;br /&gt;According to TGDaily Windows 7 will feature a heterogeneous graphics system capable of handling multiple graphics cards from different vendors.&lt;br /&gt;&lt;br /&gt;Windows 7 will feature something called Windows Sensors. The exact purpose of this is not yet known.&lt;br /&gt;&lt;br /&gt;The start menu will receive minor improvements like the ability to easily pin/unpin any entry. Also if you search for an item the displayed results will occupy the entire start menu and not just the left coloumn.&lt;br /&gt;&lt;br /&gt;Windows 7 will feature updated and improved versions of many other Windows Components like Calculator, Paint and WordPad. Paint will now allow you to directly paint using your fingers as mentioned above. A part from that it will also include a ruler. The improved calculator will be multi-line and feature Programmer and Statistics modes along with unit conversion.&lt;br /&gt;&lt;br /&gt;Windows 7 is expected to support Virtual hard disk.&lt;br /&gt;&lt;br /&gt;Gadgets will be integrated with the explorer and now can be placed anywhere on the desktop.&lt;br /&gt;&lt;br /&gt;Windows 7 will have a new diagnostic tool called Windows Health Center.&lt;br /&gt;&lt;br /&gt;It will feature something called Recovery Center. Recovery Center will feature the System Restore option as well as a Wipe and Reload option to perform a complete restore to a previous condition (unlike in System Restore it will restore all previous documents and delete any new ones). Windows 7 will provide a functional rollback system&lt;br /&gt;&lt;br /&gt;Windows PowerShell which was planned for inclusion in Vista is also expected to be included in Windows 7.&lt;br /&gt;&lt;br /&gt;Windows 7 will have numerous other minor tweaks like a resizeable search box, transparent sidebar and removal of sidebar from the control panel.&lt;br /&gt;&lt;br /&gt;Windows 7 as well as Windows Vista will support DirectX 11. But given that DirectX normally has a 4 year development cycle I am not sure if it will be supported out of the box in Windows 7.&lt;br /&gt;&lt;br /&gt;It will feature tighter integration with Windows Live. According to Bill Gates one of the main goals of Windows 7 is to be more user-centric. Quoting Bill Gates&lt;br /&gt;&lt;br /&gt;That means that right now when you move from one PC to another, you’ve got to install apps on each one, do upgrades on each one. Moving information between them is very painful. We can use Live Services to know what you’re interested in. So even if you drop by a [public] kiosk or somebody else’s PC, we can bring down your home page, your files, your fonts, your favorites and those things. So that’s kind of the user-centric thing that Live Services can enable.&lt;br /&gt;&lt;br /&gt;How much of this actually makes it to the final release is yet to be seen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-6569398507030476892?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6569398507030476892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6569398507030476892'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2008/08/windows-7-faq-frequently-asked.html' title='The Windows 7 FAQ (Frequently Asked Questions)'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-1559374205836378598</id><published>2008-04-08T13:35:00.002+05:30</published><updated>2008-04-08T13:38:24.896+05:30</updated><title type='text'>Hidden Back-up उतिलिटी इन Win XP</title><content type='html'>Microsoft has included a Back-up utility in windows xp which is hidden by default. Herez how to acess it.&lt;br /&gt;&lt;br /&gt;Insert your windows XP disc into your PC.&lt;br /&gt;&lt;br /&gt;Click exit if your installation screen comes up.&lt;br /&gt;&lt;br /&gt;Now go too your CD drive in *My Computer*. Right-click and select open.&lt;br /&gt;&lt;br /&gt;Choose VALUE ADD\MSFT\NT BACK-UP FILE.&lt;br /&gt;&lt;br /&gt;In the *files of type* drop down list be sure that *select all files* is on.&lt;br /&gt;&lt;br /&gt;Click on the NTBACK-UP.msi file and click okay.&lt;br /&gt;&lt;br /&gt;Click the finish button and now go over too the start button\ALL PROGRAMS\ACCESSORIES\SYSTEM TOOLS\ and there it is now.. BACK-UP FILES...&lt;br /&gt;&lt;br /&gt;Great little tool that Microsoft never should have hidden. .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-1559374205836378598?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/1559374205836378598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/1559374205836378598'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2008/04/hidden-back-up-win-xp.html' title='Hidden Back-up उतिलिटी इन Win XP'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-6964640639704687504</id><published>2007-09-12T16:34:00.000+05:30</published><updated>2007-09-12T16:43:56.431+05:30</updated><title type='text'>Make XP Shutdown  Faster</title><content type='html'>when a user shuts down Windows XP, first the system has to kill all services&lt;br /&gt;currently running. Every once in a while the service does not shut down&lt;br /&gt;instantly and windows give it a change to shut down on its own before it kills it.&lt;br /&gt;This amount of time that windows wait is stored in the system registry.&lt;br /&gt;&lt;br /&gt;If you modify this setting, then windows will kill the service earlier. To modify&lt;br /&gt;the setting, follow the directions below:&lt;br /&gt;&lt;br /&gt;Start Regedit.&lt;br /&gt;&lt;br /&gt;Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control.&lt;br /&gt;&lt;br /&gt;Click on the "Control" Folder.&lt;br /&gt;&lt;br /&gt;Select "WaitToKillServiceTimeout"&lt;br /&gt;&lt;br /&gt;Right click on it and select Modify.&lt;br /&gt;&lt;br /&gt;Set it a value lower than 2000 (Mine is set to 200).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-6964640639704687504?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajaxhacks.blogspot.com/feeds/6964640639704687504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1380401963625867146&amp;postID=6964640639704687504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6964640639704687504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6964640639704687504'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/09/make-xp-shutdown-faster.html' title='Make XP Shutdown  Faster'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-8964243645582439333</id><published>2007-09-12T16:28:00.000+05:30</published><updated>2007-09-12T16:34:44.746+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mozilla'/><category scheme='http://www.blogger.com/atom/ns#' term='Fast'/><category scheme='http://www.blogger.com/atom/ns#' term='FF'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>How To Speed up your Firefox 20x Faster!</title><content type='html'>Many a times i have Come Across people who Use Firefox Still Have the Problem That Eventhough they use A good Broadband connection the pages take far more time to load. Now here is a small way to Speed up your Firefox 20x Faster!&lt;br /&gt;&lt;br /&gt;follow these simple steps&lt;br /&gt;&lt;br /&gt;1. Type "&lt;span style="font-weight:bold;"&gt;about:config&lt;/span&gt;" into the address bar and hit enter. Scroll down and look for the following entries , and Alter the entries as follows:&lt;br /&gt;&lt;br /&gt;Set "&lt;span style="font-weight:bold;"&gt;network.http.pipelining&lt;/span&gt;" to "&lt;span style="font-weight:bold;"&gt;true&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Set "&lt;span style="font-weight:bold;"&gt;network.http.proxy.pipelining&lt;/span&gt;" to "&lt;span style="font-weight:bold;"&gt;true&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;set "&lt;span style="font-weight:bold;"&gt;network.http.pipelining.maxrequests&lt;/span&gt;" to some number like &lt;span style="font-weight:bold;"&gt;30&lt;/span&gt;. This means it will make 30 requests at once.&lt;br /&gt;&lt;br /&gt;3. Lastly right-click anywhere and select New-&gt; Integer. Name it "&lt;span style="font-weight:bold;"&gt;nglayout.initialpaint.delay&lt;/span&gt;" and set its value to "&lt;span style="font-weight:bold;"&gt;0&lt;/span&gt;". &lt;br /&gt;This value is the amount of time the browser waits before it acts on information it recieves. &lt;br /&gt;&lt;br /&gt;Done.. Njoy the new speedy Firefox&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-8964243645582439333?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/8964243645582439333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/8964243645582439333'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/09/how-to-speed-up-your-firefox-20x-faster.html' title='How To Speed up your Firefox 20x Faster!'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-1307529757078086768</id><published>2007-08-28T14:18:00.000+05:30</published><updated>2007-08-28T14:20:39.208+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='xp desktop video'/><title type='text'>Set Any Video as Desktop Wallpaper In XP</title><content type='html'>This is a pretty simple tweak using which you can set any video as your desktop wallpaper.&lt;br /&gt;&lt;br /&gt;Just follow the steps given below:&lt;br /&gt;&lt;br /&gt;1. Download VLC Media Player and install it.&lt;br /&gt;&lt;a href="http://www.videolan.org/vlc/download-windows.html"&gt;(download)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Run VLC media player,go to Settings-&gt;preferences-&gt;Interface-&gt;Main interfaces,then click on wxWidgets.Remove the tick on "Taskbar" and put a tick on "Systray icon".&lt;br /&gt;&lt;br /&gt;3.Now go to Video-&gt;Output Modules-&gt;DirectX.On the bottom right put a tick on advanced options check box.You will now see some options.Put a tick on "Enable Wallpaper Mode ".&lt;br /&gt;&lt;br /&gt;4.Now,select playlist and put a check or tick on "Repeat current item ".&lt;br /&gt;&lt;br /&gt;5.Press the Save button.Now close the Vlc player and run it again(to save the settings permanently).&lt;br /&gt;&lt;br /&gt;6.Now play any video you would like to set as Wallpaper.Right click on the video and click on "Wallpaper".The video would be set as your wallpaper!!!!&lt;br /&gt;&lt;br /&gt;Since you have checked the option "repeat current item ",the selected video will play on continuously.It will start again when finished.VLC player will remain in your system tray.If you wish to remove the wallpaper simply close the player and you will get back your original wallpaper.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-1307529757078086768?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/1307529757078086768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/1307529757078086768'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/08/set-any-video-as-desktop-wallpaper-in.html' title='Set Any Video as Desktop Wallpaper In XP'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-5515117843411966322</id><published>2007-07-31T06:15:00.000+05:30</published><updated>2007-07-31T06:24:54.725+05:30</updated><title type='text'>Introdction To Ajax</title><content type='html'>Here I'll try to explain " What Is AJAX" in simple terms , so that budding programmers get a fairly good Basic Knowledge to follow thru and understand AJAX easily.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What Is AJAX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;AJAX, is a web development technique used for creating interactive web applications.The name is an acronym standing for Asynchronous JavaScript and XML (Asynchronous JavaScript + XML = AJAX).&lt;br /&gt;AJAX allows you to make a call to an http server (typically an RSS feed or a webpage), get its content and load them into your existing page without having to refresh the whole page. This means that services like email don't have to reload the whole page every time you click a message, saving on bandwidth (loading the header/footer all over again) and making things more efficient.&lt;br /&gt;The Main advantages of using AJAX are that, It provides a mechanism to mix and match xml with xhtml,It significantly reduces having to continually fetch things from a server ),It overcomes some speed bottlenecks that traditional Web development has fallen prey too. In most instances ( I hate to say always ) an Ajax based site will load quicker than a comparable traditional Web site.When done well, it significantly reduces initial load times.&lt;br /&gt;The HAndiness of Ajax is dat it doesnt require a complicated and continuous interaction with the webserver.This is Obtained By putting a JavaScript (and usually tucked away in a hidden frame) between the user and the server .{ advanced program geeks call it an Ajax engine,but for time being we call it jus javascripting becose the engine is nothing but a collection of javascript code}&lt;br /&gt;These javascripts are responsible for both rendering the interface the user sees and communicating with the server on the user’s behalf.&lt;br /&gt;the advantage here is that the user does not wait for any response from the sever after asigning any tasks.&lt;br /&gt;The core of Ajax is the xmlhttprequest object and its Microsoft's activeX equivalent. It is this object that allows data to be transferred asynchronously (ie it can handle processes independently from other processes).&lt;br /&gt;&lt;br /&gt;To give you A brief example of Ajax,see this simple code. This code goes between the [head] [/head] tags. {replace [ and ] with &lt; and &gt; respectively }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[code start]&lt;br /&gt;&lt;br /&gt; function loadurl(dest) {&lt;br /&gt;  &lt;br /&gt;       &lt;br /&gt;   &lt;br /&gt;      try {&lt;br /&gt;   &lt;br /&gt;          xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;&lt;br /&gt;      } catch (e) {&lt;br /&gt;  &lt;br /&gt;     &lt;br /&gt;  &lt;br /&gt;      } &lt;br /&gt;       &lt;br /&gt; &lt;br /&gt;      xmlhttp.onreadystatechange = triggered;&lt;br /&gt;&lt;br /&gt;      xmlhttp.open("GET", dest);&lt;br /&gt; &lt;br /&gt;      xmlhttp.send(null);&lt;br /&gt;  &lt;br /&gt;      }&lt;br /&gt;       function triggered() {&lt;br /&gt;  &lt;br /&gt;      if ((xmlhttp.readyState == 4) &amp;&amp; (xmlhttp.status == 200)) {&lt;br /&gt;  &lt;br /&gt;        document.getElementById("output").innerHTML = xmlhttp.responseText;&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;[code end]&lt;br /&gt;&lt;br /&gt;Now to Call it on An Html Page use this &gt;&gt;&lt;br /&gt;&lt;br /&gt;[body] [div id="output" onclick="loadurl('/testdir/helloworld.txt')"]click here to See " Hello World " in this div[/div] [/body]&lt;br /&gt;&lt;br /&gt;Note : In this Html code , Replace " [ " and " ] " with ' &lt; ' and ' &gt; ' respectively.&lt;br /&gt;&lt;br /&gt;here "helloworld.txt" is a Text file on the directory "testdir".&lt;br /&gt;Now remmember to put the destination url (here &gt;&gt; /testdir/helloworld.txt) in the same domain, otherwise errors may come.&lt;br /&gt;&lt;br /&gt;What The Above code does is that while clicking the link on the div, The contents of the text file "helloworld.txt" will be displayed on the same web page without refreshing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-5515117843411966322?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5515117843411966322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5515117843411966322'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/introdction-to-ajax.html' title='Introdction To Ajax'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-5538064475721410657</id><published>2007-07-30T22:51:00.000+05:30</published><updated>2007-07-31T12:36:04.716+05:30</updated><title type='text'>Introduction to Java-Scripting</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is JavaScript?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Javascript is an easy-to-use programming language that can be embedded in the header of your web pages. It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What's the difference between JavaScript and Java?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Actually, the 2 languages have almost nothing in common except for the name. Although Java is technically an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution. It is powerful enough to write major applications and insert them in a web page as a special object called an "applet." Java has been generating a lot of excitment because of its unique ability to run the same program on IBM, Mac, and Unix computers. Java is not considered an easy-to-use language for non-programmers.&lt;br /&gt;&lt;br /&gt;Javascript is much simpler to use than Java. With Javascript, if I want check a form for errors, I just type an if-then statement at the top of my page. No compiling, no applets, just a simple sequence.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is Object Oriented Programming?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Everyone that wants to program JavaScript should at least try reading the following section. If you have trouble understanding it, don't worry. The best way to learn JavaScript is from the examples presented in this tutorial. After you have been through the lessons, come back to this page and read it again.&lt;br /&gt;&lt;br /&gt;OOP is a programming technique (note: not a language structure - you don't even need an object-oriented language to program in an object-oriented fashion) designed to simplify complicated programming concepts. In essence, object-oriented programming revolves around the idea of user- and system-defined chunks of data, and controlled means of accessing and modifying those chunks.&lt;br /&gt;&lt;br /&gt;Object-oriented programming consists of Objects, Methods and Properties. An object is basically a black box which stores some information. It may have a way for you to read that information and a way for you to write to, or change, that information. It may also have other less obvious ways of interacting with the information.&lt;br /&gt;&lt;br /&gt;Some of the information in the object may actually be directly accessible; other information may require you to use a method to access it - perhaps because the way the information is stored internally is of no use to you, or because only certain things can be written into that information space and the object needs to check that you're not going outside those limits.&lt;br /&gt;&lt;br /&gt;The directly accessible bits of information in the object are its properties. The difference between data accessed via properties and data accessed via methods is that with properties, you see exactly what you're doing to the object; with methods, unless you created the object yourself, you just see the effects of what you're doing.&lt;br /&gt;&lt;br /&gt;Other Javascript pages you read will probably refer frequently to objects, events, methods, and properties. This tutorial will teach by example, without focusing too heavily on OOP vocabulary. However, you will need a basic understanding of these terms to use other JavaScript references.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-5538064475721410657?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5538064475721410657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5538064475721410657'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/introduction-to-java-scriptng.html' title='Introduction to Java-Scripting'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-4865821232868369294</id><published>2007-07-30T22:34:00.000+05:30</published><updated>2007-07-30T22:41:56.317+05:30</updated><title type='text'>Source code encryption</title><content type='html'>Firstly go to &lt;a href="http://www.iwebtool.com/html_encrypter"&gt;http://www.iwebtool.com/html_encrypter&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next put your HTML in the top textarea and click encrypt&lt;br /&gt;(This can take time depending on amount of HTML)&lt;br /&gt;&lt;br /&gt;after its encrypted put it in your old HTML e.g index.html&lt;br /&gt;&lt;br /&gt;IMPORTANT: ALWAYS MAKE A BACK UP COPY&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.iwebtool.com"&gt;http://www.iwebtool.com&lt;/a&gt; contains other things E.G meta tag maker&lt;br /&gt;but you can only use them 5 times per hour apart form Source code encryption and another tip is to put it all the way down make it look like&lt;br /&gt;that its not there put comments at the top saying something like this:&lt;br /&gt;&lt;br /&gt;                     SOURCE CODE PROTECTED&lt;br /&gt;&lt;br /&gt;NOTE: The only real reason you would use this is to protect your images &lt;br /&gt;&lt;br /&gt;the source code encrypter uses Javascript to make it unreadable to humans&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-4865821232868369294?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/4865821232868369294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/4865821232868369294'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/source-code-encryption.html' title='Source code encryption'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-5454079721494622895</id><published>2007-07-30T22:29:00.000+05:30</published><updated>2007-07-30T22:34:12.728+05:30</updated><title type='text'>Visitor Tracker</title><content type='html'>This is a Simple script to log visitors of your site. &lt;br /&gt;&lt;br /&gt;[code start]&lt;br /&gt;&lt;?php&lt;br /&gt;//User Tracker&lt;br /&gt;//Check refered page&lt;br /&gt;if (!$_SERVER['HTTP_REFERER']) {&lt;br /&gt;    $ref = 'None';&lt;br /&gt;} else {&lt;br /&gt;    $ref = $_SERVER['HTTP_REFERER'];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$date = date('d/m/Y H:i:s');&lt;br /&gt;$ip = $_SERVER['REMOTE_ADDR'];&lt;br /&gt;$data = 'IP Address: '. $ip. ' - ';&lt;br /&gt;$data .= 'Date: '. $date. ' - ';&lt;br /&gt;$data .= 'Referer: '. $ref. "\n";&lt;br /&gt;&lt;br /&gt;// Write information to a log file, Append mode.&lt;br /&gt;// Pointer placed below the record.&lt;br /&gt;file_put_contents('./track.log', $data, FILE_APPEND)&lt;br /&gt;or die ('Oopsy error on writing... You may go this time... Sorry :)');&lt;br /&gt;?&gt; &lt;br /&gt;&lt;br /&gt;[code end]&lt;br /&gt;&lt;br /&gt;how to use&gt;&gt;&lt;br /&gt;&lt;br /&gt;Just copy it to your homepage then overwrite your homepage in your server.&lt;br /&gt;This code records visit time, and Referrers to a text file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-5454079721494622895?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5454079721494622895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5454079721494622895'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/visitor-tracker.html' title='Visitor Tracker'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-2581271152470891728</id><published>2007-07-30T22:27:00.000+05:30</published><updated>2007-07-30T22:28:59.140+05:30</updated><title type='text'>Php Basics</title><content type='html'>You don't know PHP you say? Neither do I but i know a bit. Want to make your website easy to update and update something on every page without having to change every page? Well here's how!&lt;br /&gt;&lt;br /&gt;1)first off i suggest you make a directory called modules ( you can name it whatever you want but i did this )&lt;br /&gt;2)Choose what thing(s) you want to make editable. Like your title, footer, news, menu's, etc.&lt;br /&gt;3) Now open up Notepad( or whatever you would like ) and cut what you want to make editable on your site from your site and paste it to the NotePad.&lt;br /&gt;4)Now put in place of what you cut out &lt;?php include("modules/menu.php"); ?&gt; (Now lets just call it menu.php because just say we are making a editable menu) and of course save that notepad as menu.php&lt;br /&gt;5) upload the new menu.php file to the modules directory. and upload the index and you must save it as a *.php file or the &lt;?php include thing will not execute.&lt;br /&gt;6) Well enjoy the new editable section of your Website! Now all you have to do is edit the menu.php file and it will do it on every page that has &lt;?php include("modules/menu.php"); ?&gt; on it!&lt;br /&gt;&lt;br /&gt;Although if you do no PHP im sure you know this but i just thought i would share it with those who don't know ^_^&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-2581271152470891728?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/2581271152470891728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/2581271152470891728'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/php-basics.html' title='Php Basics'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-5678007760626739796</id><published>2007-07-30T22:08:00.000+05:30</published><updated>2007-07-30T22:15:33.992+05:30</updated><title type='text'>[MYSQL]functions/queries list</title><content type='html'>Here is a lot of the fuctions, queries list.&lt;br /&gt;&lt;br /&gt;FUNCTIONS&lt;br /&gt;mysql_query([query]) - execute query [query] with the database&lt;br /&gt;mysql_connect([host],[user],[pass]) - tries to connect you to [host] at username [user] and password [pass]&lt;br /&gt;mysql_select_db([db]) - selects the database [db] and tries to connect with&lt;br /&gt;mysql_num_rows(mysql_query([query)) - counts the amount of results queries in the query [query]&lt;br /&gt;mysql_fetch_assoc([query]) - set all results from the query [query] into a array $var[field]&lt;br /&gt;mysql_fetch_rows([query[) - works same as mysql_fetch_assoc but this one is some slower, more change on fail&lt;br /&gt;&lt;br /&gt;QUERIES&lt;br /&gt;SELECT [field] FROM [tabel] WHERE [field] [object] [value] LIMIT [limit] ORDER BY [field] [ordertype] GROUP BY [field] - selects [field] from the table [tabel] and where the field [field] is [object](== / != / ...) to [value], order the found results by the field [field] and order it [ordertype](DESC/ASC) and set it into a group by field [field]&lt;br /&gt;INSERT INTO&lt;br /&gt;([fields])VALUES([values) WHERE [field] [object] [value] - insert the values [values] into the fields [fields] (1st one in the 1st field, 2nd one in the 2nd filled in field, etc.) in the table&lt;br /&gt;, and where [field] is [object] (== / != / ...) [value]&lt;br /&gt;UPDATE&lt;br /&gt;SET [field] [object] [value] WHERE [field] [object] [value] - updates the table&lt;br /&gt;by setting the field [field] [object](== or !== or ...) to [value]&lt;br /&gt;DELETE FROM&lt;br /&gt;WHERE [field] [object] [value] - deletes a row from&lt;br /&gt;where [field] is [object](== or != or ...) [value]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-5678007760626739796?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5678007760626739796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/5678007760626739796'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/mysqlfunctionsqueries-list.html' title='[MYSQL]functions/queries list'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-6833473127340746786</id><published>2007-07-30T21:53:00.000+05:30</published><updated>2007-07-30T22:08:25.140+05:30</updated><title type='text'>Speed up your scripts by caching mysql data</title><content type='html'>As you know, the MySQL Server experiencs lots of strain. And When you have a large database, some queries end up taking too long and visitors get the Proxy Error message. Here is a method to modify your site to cache all dynamic data for 1 minute so as to reduce load.  By this method your homepage grabs canned data from the server, so that visitors will see something at least. It then waits a while and tries to get an updated copy through AJAX.&lt;br /&gt;&lt;br /&gt;(Note that it's a bad idea to cache stuff if your script runs on interaction based on realtime data. Don't do this to your forum, for example. A CMS might be able to benefit somewhat from this. If your site uses ADOdb, it's very simple to tell ADOdb to cache your queries.)&lt;br /&gt;&lt;br /&gt;Depending on the nature of your site, you may be able to do the same. Here are some basic PHP functions to help you get started:&lt;br /&gt;&lt;br /&gt;// $filename: name of cache file&lt;br /&gt;// $cachetile: how long the cache lasts in seconds&lt;br /&gt;// $data: string data to be cached&lt;br /&gt;&lt;br /&gt;function cachefresh($filename,$cachetime) {&lt;br /&gt;   if(!file_exists($filename)) $mtime = 0;&lt;br /&gt;   else $mtime = filemtime($filename);&lt;br /&gt;   $mtime += $cachetime;&lt;br /&gt;   if($mtime &gt; time()) return(true);&lt;br /&gt;   return(false);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function cachedata($filename,$data) {&lt;br /&gt;   $fp = fopen($filename,"w+");&lt;br /&gt;   fwrite($fp,$data);&lt;br /&gt;   fclose($fp);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function cachedatacheck($filename,$cachetime,$data) {&lt;br /&gt;   if(!cachefresh($filename,$cachetime)) cachedata($filename,$data);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;cachefresh() returns true if the cached data is still within the time limit. cachedata() puts string data into a file, overwriting original contents. cachedatacheck() puts string data into a file if the cache has expired, overwriting original contents.&lt;br /&gt;&lt;br /&gt;One way to use this is:&lt;br /&gt;1) check if cache is fresh. if so, just output the data using readfile() or similar.&lt;br /&gt;2) if not, generate and cache new data before sending it to the browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-6833473127340746786?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6833473127340746786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6833473127340746786'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/speed-up-your-scripts-by-caching-mysql.html' title='Speed up your scripts by caching mysql data'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-3768147430469144773</id><published>2007-07-30T21:41:00.000+05:30</published><updated>2007-07-30T21:45:30.915+05:30</updated><title type='text'>Compress your Javascript</title><content type='html'>Some ajax sites have to load lot's of javascript, and it might be spoiling your visitor's viewing experience (especially if they use dial-up).&lt;br /&gt;&lt;br /&gt;You can compress you javascript easily, and it can be from just removing whitespace, removing empty lines, removing comments, to renaming variables, rewriting your code, and obfuscation.&lt;br /&gt;&lt;br /&gt;So how to get started.&lt;br /&gt;&lt;br /&gt;Many javascript compressors use regex based systems, or sometimes they strip all newline characters-which could be a problem if you do not use semicolons on every line.&lt;br /&gt;For the best result, I start out with dojo shrinksafe (&lt;a href="http://dojotoolkit.org/docs/shrinksafe"&gt;&lt;/a&gt;) which compresses your variables (eg. var somerandomlongvariablename; to var _33; and automatically adds semicolons. for compression, it also removes comments etc.&lt;br /&gt;&lt;br /&gt;Then you should try using something like &lt;a href="http://javascriptcompressor.com"&gt;&lt;/a&gt; or &lt;a href="http://dean.edwards.name/packer/ "&gt;&lt;/a&gt;(enable base64 encode, and if you want- you can try shrink variables)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-3768147430469144773?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/3768147430469144773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/3768147430469144773'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/compress-your-javascript.html' title='Compress your Javascript'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-6296054905754012504</id><published>2007-07-30T21:37:00.000+05:30</published><updated>2007-07-30T22:42:43.386+05:30</updated><title type='text'>Create your own ajax based slideshow using minishowcase.</title><content type='html'>Step 1.  Go to &lt;a href="http://minishowcase.frwrd.net/?download"&gt;http://minishowcase.frwrd.net/?download&lt;/a&gt; and download the latest version.&lt;br /&gt;&lt;br /&gt;Step 2. Edit the config/settings.php file as you see necessary. Use something like wordpad (windows) or textedit (mac) to make any changes.  Each of the settings you can change are well commented, so they tell you what they do when you change them.  If you have any questions let me know and I will try to help you.&lt;br /&gt;&lt;br /&gt;Step 3.  One setting I recommend you change is you change $settings['create_thumbnails'] and $settings['cache_thumbnails'] to yes, this will make it so that it creates thumbnails, and that is caches them for faster load times when your website viewers are looking at your galleries.&lt;br /&gt;&lt;br /&gt;Step 4. It is now time to create your first gallery!  Create a new folder inside the galleries folder.  Name it whatever you wish that gallery to be listed as on your website.  If you want it to be named Christmas photos 2006 you would name the folder Christmas_photos_2006 notice I used _ for spaces.  This is important!&lt;br /&gt;&lt;br /&gt;Step 5. Place the photos you want for that gallery inside of your newly made, newly renamed folder.&lt;br /&gt;&lt;br /&gt;Step 6. Repeat for each new gallery you wish to create.&lt;br /&gt;&lt;br /&gt;Step 7. Upload these to your website!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-6296054905754012504?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6296054905754012504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/6296054905754012504'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/create-your-own-ajax-based-slideshow.html' title='Create your own ajax based slideshow using minishowcase.'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1380401963625867146.post-2004168810488677488</id><published>2007-07-30T21:32:00.001+05:30</published><updated>2007-07-30T21:37:41.557+05:30</updated><title type='text'>Basic Ajax Application</title><content type='html'>This is a simple tutorial that will teach you the basics of AJAX. This is the first application I wrote using the AJAX framework and hopefully will lead to a lot more.&lt;br /&gt;&lt;br /&gt;If you want to skip the tutorial and get to the code then click here. You will also find a Demo and Source Code at the bottom of this page.&lt;br /&gt;&lt;br /&gt;Lets begin!!&lt;br /&gt;&lt;br /&gt;First we must make the html page. Copy the code below to a My_First_Application.html file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;[html]&lt;br /&gt;    [head]&lt;br /&gt;    [title]First AJAX Application[/title]&lt;br /&gt;    [/head]&lt;br /&gt;    [body]&lt;br /&gt;        [a href="javascript:firstAppl();"&gt;Make Text Appear[/a][br/]&lt;br /&gt;        [span id="result_here"&gt;[/span]&lt;br /&gt;    [/body]&lt;br /&gt;[/html]&lt;br /&gt;&lt;br /&gt;(plz replace [ and ] from the above code with &lt; and &gt; respectively)&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The above code is very simple. If you are trying this tutorial you should understand everything in the html code, but I will explain it. There is a link which when clicked it calls the firstAppl() function. Also there is the span tag which will display the result after all the code is written.&lt;br /&gt;&lt;br /&gt;Next you will add javascript code to your .html page. The XmlHttpRequest object a big part of the AJAX framework. Internet Explorer does not support the XmlHttpRequest object and instead uses the ActiveXObject. We must check to see what browser is in use so the code works properly. You will want to paste the following code in the header of My_First_Application.html.&lt;br /&gt;&lt;br /&gt;&lt;script language="JavaScript" type="text/javascript"&gt;&lt;br /&gt;    //Determine what XmlHttpRequest object we will use.&lt;br /&gt;    function getXmlHttpRequestObject() {&lt;br /&gt;        if (window.XMLHttpRequest) {&lt;br /&gt;             return new XMLHttpRequest(); //Not Internet Explorer&lt;br /&gt;        } else if(window.ActiveXObject) {&lt;br /&gt;             return new ActiveXObject("Microsoft.XMLHTTP"); //Internet Explorer&lt;br /&gt;        } else {&lt;br /&gt;             //If it gets to here, an error has occurred and we inform the user of this&lt;br /&gt;             alert("An Error Has Occurred!");&lt;br /&gt;        }&lt;br /&gt;        }&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;The good part about this code is that you can copy and paste this into any AJAX application.&lt;br /&gt;&lt;br /&gt;Next you will want to copy the code below. You will want to paste it right below the getXmlHttpRequestObject() function but before the  tag.&lt;br /&gt;&lt;br /&gt;var getRequest = getXmlHttpRequestObject();&lt;br /&gt;&lt;br /&gt;This code will get a new XmlHttpRequest object and save it to the getRequest variable.&lt;br /&gt;&lt;br /&gt;Next we will create the firstAppl() function. This is the function that is called from the html page. Copy can paste the code below right after the code we just created.&lt;br /&gt;&lt;br /&gt;function firstAppl() {&lt;br /&gt;      //Checks to see if you XmlHttpRequest object is ready.&lt;br /&gt;      if (getRequest.readyState == 4 || getRequest.readyState == 0) {&lt;br /&gt;           //Makes a call to Display_Text.html with the GET&lt;br /&gt;           getRequest.open("GET", 'Get_Text.html', true);&lt;br /&gt;           //Call a function that will display the text in the span area on First_Ajax_Application.html&lt;br /&gt;           getRequest.onreadystatechange = displayText();&lt;br /&gt;           //Makes the request.&lt;br /&gt;           getRequest.send(null);&lt;br /&gt;     }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In this function, you do a couple of things. First, you check to see if the XmlHttpRequest object is ready. If the request is ready, you call the Get_Text.html. After this, you will call the displayText function to display the text on the First_Ajax_Application.html page.&lt;br /&gt;&lt;br /&gt;Next we will create the displayText function to display the text after the link is clicked. Copy and paste the text below the firstAppl() function we just created.&lt;br /&gt;&lt;br /&gt;function displayText() {&lt;br /&gt;      //Check to see if the XmlHttpRequests state is finished.&lt;br /&gt;      if (getRequest.readyState == 4) {&lt;br /&gt;            //Set the contents of our span element to the result of the asyncronous call.&lt;br /&gt;            document.getElementById('result_here').innerHTML = getRequest.responseText;&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In this function, we check to see if the XmlHttpRequest is finished. If if it we print out the text from Get_Text.html on the First_Ajax_Application.html.&lt;br /&gt;&lt;br /&gt;Next we will make the Get_Text.html&lt;br /&gt;&lt;br /&gt;The page is simple. You just type some text in a document called Get_Text.html. The text I chose was Done with your first AJAX Application.&lt;br /&gt;&lt;br /&gt;Next upload these two files to a your web server. You should be able to call the First_Ajax_application.html file and try out your application.&lt;br /&gt;&lt;br /&gt;That is all you need for this application! Hope this help you get a start on AJAX.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1380401963625867146-2004168810488677488?l=ajaxhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/2004168810488677488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1380401963625867146/posts/default/2004168810488677488'/><link rel='alternate' type='text/html' href='http://ajaxhacks.blogspot.com/2007/07/basic-ajax-application.html' title='Basic Ajax Application'/><author><name>..: GameOn :..</name><uri>http://www.blogger.com/profile/01639083018472441286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='20' height='32' src='http://aycu38.webshots.com/image/14717/2001036061069257054_th.jpg'/></author></entry></feed>
