Wednesday, June 3, 2009

Java 7 Coming

I just checked some website!

It said the Java 7 coming!

Very hoping to use the new version of Java.

Tuesday, June 2, 2009

Project Done

Today, I just finished my final project and fianl report!
Here is the link if you guys want to see it:

http://www-student.it.uts.edu.au/~juelu/DMTFinal/index.html

Thanks

Monday, June 1, 2009

CSS LAYOUT

To design the layout of the website, we can use table in html. But
nowadays, using CSS+DIV seems much more popular. In my DMT subject, I would like to try use CSS+DIV instead of the normal table.

Here is some examples:





















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}$/"

Saturday, April 4, 2009

Learn PHP--database connection

Today I review my PHP work which is about database connection using php.

the code is :
session_start();
function conncetdatabase(){
$user="potiro";
$pass="pcXZb(kL";
$db="poti";
$connection=mysql_connect("sally.it.uts.edu.au",$user,$pass);

if (!$connection)
die("Unable to connect to host.");

if (!mysql_select_db($db, $connection)) {
echo "Error Description: ".mysql_error()."
";
die("Database unavailable, exiting program.");
}

return $connection;
}

function disconnect($connection) {
mysql_close($connection);
}
\?>

This is code for connecting to the database.

And today I download the user manual for PHP and MySql. I think that is quite easy

and important for me to look for some information about PHP or MySql on a user book.

I use to search the info on Internet, such as google , yahoo.