content top

Ajax with jQuery in 3 easy steps

Ajax with jQuery in 3 easy steps

I figured I would make this small tutorial for all of you curious about it. Pulling data from a database with ajax should not be feared. It is actually very simple. The majority of the work is in the server side part of the ajax. So for this tutorial I will show you how to check if a username exists in a database. DEMO Step 1 So lets start by adding the jQuery into the head of the page where the form is. $(document).ready(function()...

Read More

Ajax Refresh

Ajax Refresh

Div Refreshing with Ajax. function createRequestObject() { var req; if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req = new XMLHttpRequest(); } else if(window.ActiveXObject) { // Internet Explorer 5+ req = new ActiveXObject("Microsoft.XMLHTTP"); } else { // There is an error creating the object, // just as an old browser is being used. alert("Your Browser Does Not Support This...

Read More

jQuery: Filter Select box with php and mysql

jQuery: Filter Select box with php and mysql

Lets filter a select box with jQuery, Sack, PHP and MySQL….. You may or may not need this, but it could come in handy at one point in time. So lets start.. I will show you the basics here, you may download the source at the bottom of the page. View the DEMO index.html include these into the head section of the page. ajax.js is the Sack js functions. I will get into Sack later. this goes into the head as well. var ajax = new...

Read More

Chained Select Boxes using PHP / MySQL / AJAX / jQuery

Chained Select Boxes using PHP / MySQL / AJAX / jQuery

UPDATE Well everyone, I’m almost done with the generator!! Watch this short clip to see it in action. If you are interested in this tool it is for sale, while I get together a payment system you can contact me about trying out a beta. DEMO 2 and 3 Dropdowns available in the download. It is fairly simple and consists of only 3 files. An index, database connection and a function file. So lets start. Make your database table and...

Read More
content top