Archive for December, 2008
Construct SQL Query Statements in an efficient way
This is a PHP function that generates an SQL Insert Query using 2 parameters: a variable (table name) and an array (field names & values).
Read moreSelect/Unselect checkbox(es) with Class Changer (Highlighter)
This is a tutorial that will give you an idea of how you can select/unselect all checkboxes from a form using JavaScript and also change the class style for the selected row from a table.
Read moreFree Animated Flash Charts and Graphs
Do you want to render data-driven and animated-charts for your web-applications and presentations using the power of Flash? Checkout the following FREE Flash Charting components. A lot of companies are using them to deliver eye-catching and snazzy graphics out of the boring (classical) data tables.
Read moreTable sorting, filtering etc. from JavaScript Toolbox
Tabular data in table form is very common in web sites and web applications, a common requirement being the manipulation of table data on the client side. It is a better alternative than going back to the server, to sort, filter etc. Here are some key features of the library that I found on JavaScript [...]
Read moreImage Cropping with JQuery, MooTools, Prototype & script.aculo.us
JCrop is a JQuery image cropping plugin that can be implemented easily and quickly into a web application. Its advanced cropping functionality can be integrated in any web-based application without sacrificing power and flexibility. This plugin also features clean and well-organized code that works in most modern browsers.
Features
- Any image can be attached unobtrusively
- Aspect [...]
Zoom Images using JQuery and MooTools
JQZoom is a JavaScript image magnifier built using the popular library JQuery. It works on all modern browsers: IE 6+, Mozilla Firefox 2+, Google Chrome 1.0, Safari 2+, Opera 9+.
Features
Standard zoom
Reverse zoom
Zoom without lens and title
Custom positioning the jqzoom window
Fade out effect while hiding
Fixed IE6- select box bug
Go to Project Page | View Demos
MooTools 1.2 [...]
Read moreCreating an AJAX Login Form using MooTools
Hello coders,
This is a tutorial useful to learn how to Ajaxify a basic login form. To do that we’ll use MooTools:
MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.
First, let’s [...]
Create a PHP script that logins in to a password protected area
Hi,
The aim of this tutorial is to help you create a web fetching script that can extract content from a password protected area using the necessary login credentials. I will use the well know cURL command line tool to connect to the protected web area. PHP supports libcurl which is required in order to use [...]
Scraping data with PHP Simple HTML DOM Parser
PHP Simple HTML DOM Parser, written in PHP5+, allows you to manipulate HTML in a very easy way. Supporting invalid HTML, this parser is better then other PHP scripts that use complicated regexes to extract information from web pages.
Before getting the necessary info, a DOM should be created from either URL or file. The following [...]
Some ways to scan a directory in PHP
This is a list with some methods to retrieve the contents from a directory (folder). The following functions show both the files & the folders located in a specific directory.
1. scandir()
array scandir ( string $directory [, int $sorting_order [, resource $context]] )
This function only works in PHP5+. It returns an array of files and [...]
How to retrieve Yahoo! Weather using MagPie RSS and JQuery
In this tutorial I will show you how to display the Yahoo! Weather on your website, using a PHP RSS Parser, called Magpie RSS and JQuery (AJAX). The Weather RSS Feed uses 2 parameters: ‘p’ for location & ‘u’ for degree units. The base URL for the Weather RSS Feed is http://weather.yahooapis.com/forecastrss. An address that [...]
Read moreA simple AJAX Username Availability Checker
Did you notice how many sites have a verification tool for the ‘username’ field when you try to register? Many use the power of AJAX to check if the nickname has already been assigned to an existing member. This short tutorial gives you an idea of how you can make such a feature in the pages of your website.
Read more