Tuesday, May 27th, 2008

Since Ajax is under constant development, it’s imperative to stay current on the latest and greatest Ajax news. One of the best, frequently updates sites about Ajax is Ajaxian. On their site you’ll find information, reviews on JavaScript frameworks, helpful tools, and server-side technology specific articles (such as articles about PHP, RoR, and .NET). If you need Ajax news and information, be sure to check out Ajaxian frequently. There’s a ton of information there all the time and you are sure to learn something new every time you visit their site!
Popularity: 3%
Posted in Ajax, PHP | No Comments »
Saturday, April 19th, 2008
A quick AJAX script that will check User Name availability on the fly.
Insert this JavaScript into the HEAD of your page, write a file called checkui.php or asp that will check availability of the username in your database and write the message to the screen, then this snipit of JavaScript will write that message to the SPAN on your page.
// AJAX USERNAME AVAILABILITY CHECK
// - uses PHP file: checkui.php
function xmlhttpPost(theui) {
var strURL = “/checkui.php?uid=”+theui; // URL OF THE PHP/ASP FILE
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if (window.XMLHttpRequest) {
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else if (window.ActiveXObject) {
self.xmlHttpReq = new ActiveXObject(”Microsoft.XMLHTTP”);
}
self.xmlHttpReq.open(’POST’, strURL, true);
self.xmlHttpReq.setRequestHeader(’Content-Type’, ‘application/x-www-form-urlencoded’);
self.xmlHttpReq.onreadystatechange = function() {
if (self.xmlHttpReq.readyState == 4) {
updatepage(self.xmlHttpReq.responseText);
}
}
self.xmlHttpReq.send(getquerystring());
}
// GRABS THE USERNAME FROM THE FORM AND ADDS IT TO THE PHP/ASP FILE URL
function getquerystring() {
var form = document.forms[’u_register’];
var word = form.m_username.value;
qstr = ‘uid=’ + escape(word); // NOTE: no ‘?’ before querystring
return qstr;
}
// SENDS THE FINAL RESULTS TO THE SPAN ON THE PAGE
function updatepage(str){
document.getElementById(”checkui”).innerHTML = str;
}
// END AJAX USERNAME AVAILABILITY CHECK
NOTE: This is a quick reference, not an extensive explanation of AJAX.
Popularity: 5%
Posted in Ajax | No Comments »
Monday, February 11th, 2008
Ajax has becoming very popular recently, but most designers seem to rehash the same script over and over (you’ll see it in a lot of Wordpress Themes and Plugins). Perhaps we aren’t using ajax technology to its full potential, myself included. The list is made up of the best scripts available.
read more | digg story
Popularity: 3%
Posted in Ajax, JavaScript | No Comments »