Friday, August 22, 2008

Ajax tools-these tools help you a lot


Prototype window login form


Demonstrates the use of prototype Window login form with RubyOnRails and Ajax.


Masked Input Plugin for jQuery



This is useful for fixed width input where the data follows a certain format.


Form Validation Script



Shows some form input validators both serverside and browserside.


Tree with Checkbox



An extension for Ext.tree.TreeNodeUI to allow nodes to be ‘checked’.


Spry Auto Suggest



This page will highlights the capabilities of the Spry Auto Suggest Widget.


Resizeable text boxes



A textbox with resize handles on the bottom, right, and bottom-right corner.

Ajax login form (PHP)



Here?s another AJAX login form example using php, javascript and css.


Whizzywig - Rich text editor



It lets people create rich, formatted text through a web form. It creates html or xhtml.


An ajax file manager



An ajax file manager/file browser which may be used stand-alone, or as a plugin.

Anchor layout in forms



Anchor layout in forms to ensure a consistent size and position for form fields






Autocomplete - jQuery ajax



AutoCompleter - using jQuery(Ajax), PHP and MySQL, Tutorial and demo included.


jQuery.Suggest



jquery.suggest, an alternative jQuery based autocomplete library.

Custom Form Elements



A demonstration of how Moo Tools can be used to generate custom form elements.


Ajax contact form



An unobtrusive AJAX contact form (works even with JavaScript disabled).


widgEditor



Easily customisable WYSIWYG editor for simple content that replaces textareas.

ASP.net form validation



Client side validators using AJAX Control Toolkit, by adding callouts and modal dialog.


protect web form



Insure yourself from spam! The Anti Spam Insurance Company - ProtectWebForm!


Styling inputs with css and dom



This simple enhancement provides the ability to style file inputs with css, js, dom.

Pin plugin for Prototype



A pin plugin for prototype library which aims to remember some field’s values.


FormCheck - Mootools plugin



Performs different tests on forms and indicates errors, using moo tools library.


Asynchronous File Upload - YUI



This script uses YUI’s Connection Manager, to perform asynchronous File Upload.

Grow a textarea - A moo tools plugin



Just make a form, and this script will add the ability to resize each textarea

Wednesday, August 20, 2008

how to enable .htaccess in xamp

xampp provides a convenient way to quickly and easily install and setup a web server that works without much configuration. However, permalinks feature won’t work with the default installation of xampp, even though you can properly customize the permalinks structure to create the .htaccess file.

When you click on any permalinks, your WordPress blog will return a 404 error instead, saying the post not found. Instead, you can only access your blog posts via default permalinks structure, which is in the form of http://www.mydigitallife.info/?p=123.

This is because in xampp, mod_rewrite is not enable by default. Beside, AllowOverride directive in Apache configuration file is also set to None by default, causing Apache web server to ignore any .htaccess file, which used to rewrite the permalinks to the post’s actual url.

To use permalinks in WordPress that installed on xampp-based server, edit the httpd.conf that locates in C:\Program Files\xampp\apache\conf directory (folder). Open httpd.conf in any text editor, search for “mod_rewrite”. You should come to a line like this:

#LoadModule rewrite_module modules/mod_rewrite.so

Remove the hash sign (#) from the line. The # indicates the line is not in effect. The changed line should looks like this:

LoadModule rewrite_module modules/mod_rewrite.so

After that, search for “AllowOverride”. You will come to a line like this:

AllowOverride None

If the above line is contained within default directory (mean the directory declaration is just ), then it can be left as it is. Continue searching and you would come to a second instance of AllowOverride which is contained inside your web server’s document root (default for xampp is in Windows). Change the None to All to make the line looks like this:

AllowOverride All

Restart the Apache. Permalinks is working after restart.

Now the code in .htaccess like
RewriteEngine On
RewriteRule ^([0-9a-zA-Z_!%-.()]+).html$ contents.php?category_name=$1 [L,NC]