Wednesday, May 20, 2009

JQuery Power

I found that JQuery is very powerful and useful. It can make many
wonderful function for the web site.

"jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006 at BarCamp NYC by John Resig.

Dual licensed under the MIT License and the GNU General Public License, jQuery is free, open source software.

Both Microsoft and Nokia have announced plans to bundle jQuery[1] on their platforms, Microsoft adopting it initially within Visual Studio[2] for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform." From Wikimedia.
There is some useful link for JQuery:

http://www.jqueryajax.com/
http://www.demi.cn/archives/6519
http://www.cssrain.cn/article.asp?id=806
http://jquery.com/
http://jqueryui.com/

Thursday, May 14, 2009

Learning JQuery

There are some useful JQuery concept from the internet:

jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006 at BarCamp NYC by John Resig.

Dual licensed under the MIT License and the GNU General Public License, jQuery is free, open source software.

Both Microsoft and Nokia have announced plans to bundle jQuery[1] on their platforms, Microsoft adopting it initially within Visual Studio[2] and use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.


jQuery contains the following features:

DOM element selections using the cross-browser open source selector engine Sizzle, a spin-off out of jQuery project[3]
DOM traversal and modification, (including support for CSS 1-3 and basic XPath)
Events
CSS manipulation
Effects and animations
Ajax
Extensibility
Utilities - such as browser version and the each function.
JavaScript Plugins

Monday, May 4, 2009

PHP check validation

For my website i need the customer to input their information. So I need some validation for their input. Like email address should be including @ and . ;

Contact number should be number.

Here I want to introduce some method to valid data:

First ,is_numeric(); this funtion in PHP is to check the input is number or not
This should be use in Phone Number or Credit Number etc.

Second, preg_match(); this is quite powerful it using regular expression to do the validation. So in fact, using regular expression you can do every validation.
For instance, preg_match($emailforamt,$email) $emailforamt = "/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/"