Add products to a shopping cart using AJAX

Ajax, Techniques, Web Design & Programming
This class could be utilized to add items to a shopping truck without reloading the page. It can recover a rundown of items from a Mysql database and produce HTML to show the items on a page with connections to add or evacuate them to a shopping cart. The point when the client clicks on the item interfaces the browser sends an AJAX solicitation to the server to add or evacuate the items to the shopping cart. Download files from here
Read More

Process browser events on the server using AJAX

Ajax, PHP, Techniques, Tips
RSPA stands for Really Simple PHP and AJAX. It is a framework with components for processing browser events on the server using AJAX to provide interaction between the browser and the server without page reloading. It can be used for calling PHP class functions from the browser side. It provides means to manipulate JavaScript objects on the browser page. It can be used to manipulate common HTML page elements. It also provides custom page elements such as labels and auto-complete inputs. It now works with PHP 4 and PHP 5 Download files from here
Read More

Generate editable text box that is saved with AJAX

Ajax, PHP, PHP Scripts, Techniques
This class might be utilized to produce a content box that gets editable when the client twofold clicks on the content. It shows the content to be altered inside a DIV tag that is displaced by a content info when the client twofold clicks on the DIV. The point when the content data looses the center, the altered content is submitted to the server to be spared without reloading the page utilizing AJAX. Download Files
Read More

Compress your HTML code using PHP

Software Development, Techniques, Tips
When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out all the line breaks and spaces in your code and puts it on one line, compressing your code and making it faster. <?php // start output buffer ob_start('compress_html'); ?> <!-- all xhtml content here --> <?php // end output buffer and echo the page content ob_end_flush(); // this function gets rid of tabs, line breaks, and white space function compress_html($compress) { $i = array('/>[^S ]+/s','/[^S ]+</s','/(s)+/s'); $ii = array('>','<','1'); return preg_replace($i, $ii, $compress); } ?>
Read More

Use PHP to Gzip CSS files

PHP, Techniques, Tips
Minimising the time a client needs to sit tight for a site page to load is significant. Utilizing Gzip and Php we can minimise document sizes of Css records. This method is a compelling and basic path to lessen page download examine and speed your webpage that will work with generally Php establishments, even those on imparted hosting that don’t have mod_deflate turned on in their Apache setup. Just add the code below at the top of your page. You then need to change the links to point to your CSS files. if(extension_loaded('zlib')){ ob_start('ob_gzhandler'); } header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT"; header ($expire); ob_start("compress"); function compress($buffer)…
Read More

Utilizing web thumbs to improve client experience

Techniques, Tips, Tutorials
In the course of recent years I've had the chance to finalize a couple of individual ventures. This permitted me to trial progressively with methods that I wouldn't have ordinarily utilized on customer locales. Throughout this time I was assembling a blogging stage, I soon discovered that it was challenging to display the information and make it look fascinating to the client, this is where i uncovered web thumbnails to accomplish this. There are an assortment of web thumbnail benefits out there however the best and most effortless to use far and away is shrinktheweb.com Using the Shrinktheweb.com Pro Features Specific Page Captures – “inside pages” Full Length Captures Custom Sized Captures Refresh On-Demand – queued instantly Custom System Messages – private label with your own system message thumbnails Native…
Read More

Key web development skills

Mobile Applications, Techniques, Tips
Api Knowledge A crux instrument for any maturing web designer is Api information. It's great to acquaint yourself with a mixed bag of provision interfaces. I began utilizing the Twitter Rest Api with Php and Curl when twitter initially started the Api to fundamentally get a clients tweets, pretty modest now I think back, yet around then it was the first occasion when i'd done such a marvel as this. As the improvement of social media proceeds this will in an ever widening margin open up chances to improve more requisitions that interface with each one in turn and make our every day errands more astounding. Frameworks There's usually a system for practically each modifying dialect out there. If you choose to study the jquery schema for Javascript or Cake…
Read More

Comment system with jQuery, PHP AND MYSQL

Ajax, Databases, PHP, Techniques
This time we are set to improve Comment framework without invigorating page with jquery, Ajax and Php. In this requisition we had actualized with gravatarimage. It's is helpful and basic just a few lines of code. Examine the live demo impact. javascript code. http://jquery.js $(function() { $(".submit").click(function() { var name = $("#name").val(); var email = $("#email").val(); var comment = $("#comment").val(); var dataString = 'name='+ name + '&email=' + email + '&comment=' + comment; if(name=='' || email=='' || comment=='') { alert('Please Give Valid Details'); } else { $("#flash").show(); $("#flash").fadeIn(400).html('Loading Comment...'); $.ajax({ type: "POST", url: "commentajax.php", data: dataString, cache: false, success: function(html){ $("ol#update").append(html); $("ol#update li:last").fadeIn("slow"); $("#flash").hide(); } }); }return false; }); }); C omment.php Contains HTML code here class timeline li{display:none} <ol id="update" class="timeline"> </ol> Name Email commentajax.php Contains PHP and HTML…
Read More

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