Potential Employers
I am an experienced back end web developer with front end skills as well.
Below are some code samples to show that I know how to code in object oriented PHP, Javascript, use JQuery, set up MySQL queries, and utilize the Codeigniter MVC framework. This page, while simple, uses AJAX, JQuery, the 960 Grid, the Google Custom Search API and CSS3. I am looking for permanent employment but I am willing to consider other opportunities. I can also pass a drug test and background check.
Gary Peach
954 533-8756
AJAX
//---------------------------------------------------------------------------------
// ajax3.js
// retrieves data from files and puts it where you want it
//---------------------------------------------------------------------------------
//Create a boolean variable to check for a valid Internet Explorer instance.
var XmlHttp = false;
// Check if we are using IE.
try {
// If the Javascript version is greater than 5.
XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
// If not, then use the older active x object.
try {
// If we are using Internet Explorer.
XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
// Else we must be using a non-IE browser.
XmlHttp = false;
}// end catch
}// end catch
// If we are using a non-IE browser, create a javascript instance of the object.
if (!XmlHttp && typeof XMLHttpRequest != 'undefined') {
XmlHttp = new XMLHttpRequest();
// degrade gracefully
if (!XmlHttp) {
window.location = 'no_ajax.html';
}
}// end if
// ---------------------------------------------------------------------------------
// function getData
// param fileName (what we are getting)
// param divId (where we are going to put it)
// param outputType value='val' or 'html' depending on output to val or
// innerHtml
// ---------------------------------------------------------------------------------
function getData(fileName, divId, outputType) {
var obj = document.getElementById(divId);
XmlHttp.open("GET", fileName);
XmlHttp.onreadystatechange = function() {
if (XmlHttp.readyState == 4 && XmlHttp.status == 200) {
clearTimeout(xmlHttpTimeout);
if (outputType == 'val') {
obj.value = XmlHttp.responseText;
} else if (outputType == 'html') {
obj.innerHTML = XmlHttp.responseText;
}// end else if
}// end if
;
}// end function
// sends an http request to the server and receives a response
XmlHttp.send(null);
var xmlHttpTimeout=setTimeout(ajaxTimeout,5000);
}// end function
//---------------------------------------------------------------------------------
//function ajaxTimeout
//---------------------------------------------------------------------------------
function ajaxTimeout(){
XmlHttp.abort();
alert('fail');
}//end function