jQuery, AJAX AND PHP for YouTube Style Rating/Voting System

Ajax, PHP Scripts, Techniques, Tutorials
Today we have made Youtube style rating framework which is likewise called thumbs up/down rating. It is 99% indistinguishable to unique youtube rating framework. I have tried my best to give you a jazzy and same youtube look rating framework. I have execute Ip address checks for the purpose that a solitary client can rate once. It looks extremely wonderful please attempt it and give your food backs. Database Structure CREATE TABLE IF NOT EXISTS `youtube_ip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userip` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) CREATE TABLE IF NOT EXISTS `youtube_rating` ( `id` int(11) NOT NULL AUTO_INCREMENT, `liked` int(11) NOT NULL, `dislike` int(11) NOT NULL, PRIMARY KEY (`id`) ) INSERT INTO `youtube_rating` (`id`, `liked`, `dislike`) VALUES (1, 0, 0); Download Source Code
Read More

jQuery, Ajax and PHP For Facebook like Autosuggestion

Ajax, PHP, Techniques, Tutorials
Facebook like Autosuggestion user search with jQuery, Ajax and PHP. It's simple and clean just you have to change the database details. Download the Script. Edit Config.php change the database details. Database create database table with name "test_user_data" CREATE TABLE test_user_data ( uid INT AUTO_INCREMENT PRIMARY KEY, fname VARCHAR(25), lname VARCHAR(25), country VARCHAR(25), img VARCHAR(50) ); Auto.html contains jquery(javascript) and HTML Code. Take a look at input field class valuessearch http://jquery.js </script> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') {} else { $.ajax({ type: "POST", url: "search.php", data: dataString, cache: false, success: function(html) { $("#display").html(html).show(); } }); }return false; }); }); </script> <input type="text" class="search" id="searchbox" /> Download Files
Read More

jQuery to create : Facebook Style Pagination

Ajax, PHP, PHP Scripts
As your site develops, it is no more drawn out down to earth to showcase all the information without a moment's delay on the same page. Also, the closure client will most likely be intrigued with just part of the substance. Likewise, stacking all the substance as soon as possible may build the server burden or basically a waste of transmission capacity. This is where pagination comes into play.first, I am not too beyond any doubt how you might as well call this thing that you are set to look into yet its objective is comparable to an ordinary pagination, That is, to presentation fractional substance and to spare data transfer capacity! This article is about how to make a comparable stuff to twitter and Facebook's route of showing information.…
Read More

PHP and jQuery to create : facebook post to wall system

Ajax, PHP, PHP Scripts, Tutorials
Assuming that you have not perused our past post on making a Facebook post to divider framework then you might as well read it first. In this article, we will demonstrate how I included code antiquated bind" for the purpose that when clicked, it will post the substance of the content range as divider post. HOW IT WORKS ? When you click on “share” button : The file insert.php is called via ajax to save message in database, if message is saved successfully , then add message to the unordered list like below: <ul id="posts"> <li>My wall post message </li> </ul> Jquery code below is used to add the message as list : $('ul#posts').prepend('My wall post message'); The textarea message is then cleared $('textarea#wall').val(''); If another message is shared on the…
Read More
Useful jQuery Plugins – Shopping Cart – jQuery – Plugins, Extensions

Useful jQuery Plugins – Shopping Cart – jQuery – Plugins, Extensions

Ajax, Android, Mobile Application Development
There are a mess excercise about making move and customize shopping truck, in this post I need to impart my variant still to Jquery, yet the diverse is this sample just indicates the code on the customer side, which mean all of information are hardcoded on the html, and numbering cost and all out things will be handle by javascript. The Html Default Item List Like I said there is no server side scripting, so this code only a hardcoded thing record, this case utilize 10 things, however the code beneath shows just two to make it straightforward. T-Shirt 1 $ 20 T-Shirt 2 $ 24 </div> Shopping Cart In shopping truck component, there are component for dropped thing zone, this range will be draggable so all the things could…
Read More

Drag & Drop functionality with Php & jquery

Ajax, PHP Scripts
The capacity to move and customize content on a page and have it safeguard the request can make for an extraordinary client interface and is really generally simple to execute with a couple of lines of jquery. You'll have to incorporate the jquery client interface library which you can find here: Jquery Google Api. All the records would have done well to get this up and running are in the download at the lowest part of this post. In this exercise we're set to be taking a gander at 2 fundamental Php pages. the index.php page which holds the substance and purpose to perform the customizable and the updatelist.php record which is a modest bit of code to upgrade the listorder section in the database utilizing Php and Mysql. Furthermore…
Read More

Auto suggest with jQuery Ajax and PHP/MYSQL

Ajax, Databases, Tutorials
Begin with Javascript There are two capacities in the piece of code underneath. the first "propose" performs the ajax ask for dependent upon the clients enter into the content field which is passed into the capacity when the capacity is run. We reference the data with the variable 'inputstring'. the primary area of code is a straightforward if proclamation to check if the length of the clients include in the content box is more than 0. Provided that it is we run the ajax ask for to get the record of prescriptions from the database. #country implies the id of the content enter in our shape. You can see that we're including the class "load" to the content info. This is to presentation an enlivened stacking gif to show the…
Read More

jquery Php and Mysql Username Availability Checker

Ajax, PHP, Tutorials
I was perusing Nettuts.com without much fanfare and saw the post by Matt Vickers on checking the accessibility of a username with Mootools. I tend not to utilize Mootools so i supposed I'd reproduce the system utilizing jquery. The code debases dexterously if Javascript is handicapped, it is exhorted that you dependably check the username against the database once more, simply before you add any information to the database. The Javascript So to begin with we have our jquery on report primed capacity, inside this we have an occasion audience .keyup capacity which when triggered runs the capacity 'username_check'. Inside the "username_check" capacity we firstly appoint the variable "username" to the worth of the data field with the id #username. We now run a couple of watches that the username…
Read More

Identifying an Ajax Request with Php

Ajax, PHP
Here's a fast bit of code that i find handy to check if a solicit that goes to a Php page was made through an Ajax call or a basic structure post. This system utilization the $_server['http_x_requested_with'] ask for to confirm if information was sent to a particular page utilizing a xmlhttprequest. It's worth acknowledging that there is no certification that each web server will furnish this setting, servers might discard particular $_server parameters, That said, an imposing number of these variables are accounted. if(isset($_server['http_x_requested_with']) && !empty($_server['http_x_requested_with']) && strtolower($_server['http_x_requested_with']) == 'xmlhttprequest') { // If its an ajax solicitation execute the code beneath reverberation 'this is an ajax request!'; retreat; } //provided that its not an ajax appeal resound the beneath. reverberation 'this is obviously not an ajax request!'; The code…
Read More

jQuery and PHP inline editing

Ajax, PHP Scripts, Tutorials
Inline altering as its known, or having the capacity to alter substance straightforwardly on a page is an incredible instrument have added to your repertoire. I'm set to run through precisely how it fills in and also how to Post the redesigned content through to a Php script for server side handling to put in the database. The Code It looks a little complex so i'm set to rapidly run through precisely what's going on. At the time you visit the demo page are given a piece of content. Assuming that you float your rodent over the content you'll see a little alter symbol comparative to when you need to alter substance on Facebook. Provided that the client clicks on the square of code the content is reinstated with a…
Read More