Archive for November, 2007

Beware of remote code injection exploit in PHP!

PHP is kind of convenient to build web pages that have common header and footer. This is the technique we normally use when coming to building corporate web sites to maintain same look and feel over the entire websites. For example in the following piece of code (index.php), it shows you how it’s used.

The index.php
<?php
      $page = $_REQUEST['p'].”.inc.php”;
      include “header.inc.php”;
      include $page;
      include “footer.inc.php”;
?>

Continue reading ‘Beware of remote code injection exploit in PHP!’

How well do you know Prototype? You should fully utilize it!

<script type=”text/javascript” src=”prototype.js”></script>

Juiry Zaytsev, someone who has used Prototype for almost a year for building dynamic web apps, has experienced many stupid questions raised on the Prototype discussion IRC channel. According to Juiry, that Prototype is only used at about 15% by most developers. Such as those include the 100KB Prototype.js in their web app, but what they use is only the Ajax.Request function, instead of the many short cuts and convenient functions provided by Prototype.

Continue reading ‘How well do you know Prototype? You should fully utilize it!’

Method Overloading is possible in JavaScript!

In a full-fledged Object Oriented Programming language such as Java, method overloading is the technique that you could use to create few functions or methods that having the same names but taking different arguments or parameters. Such as follows, the method findUser(), findUser(String), findUser(String, String) in Java.

public class Users
{
   public Collection findUser()
   {
      // the findUser() is a method that returns
      // all users in a java.util.Collection object

   }

   public Collection findUser(String name)
   {
      // the findUser(String) is a method that returns the users matched
      // by the specified name,
      // result returned in a java.util.Collection object

   }

   public Collection findUser(String firstMame, String lastName)
   {
      // the findUser(String,String) is a method that
      // returns the users matched by the specified
      // first and last name, results returned in a java.util.Collection object

   }
}

Continue reading ‘Method Overloading is possible in JavaScript!’

Prototype – a fantastic JavaScript Framework, simplifies Ajax coding

Prototype - a fantastic JavaScript Framework, simplifies Ajax codingWhat is Prototype? Prototype is a JavaScript framework that simplifies AJAX coding and extends the DOM structure. Prototype comes with several short-cut coding methods and modules to allow you to shorten your AJAX coding and it’s browser-safe. Prototype is now available with the latest version, 1.6 for download.

To start using Prototype in your web apps, it’s easy, just download the prototype.js file and include it in any JavaScript tag pairs shown as follows then you can start using the simplified coding in AJAX offered by Prototype.

<script src=”prototype.js” type=”text/javascript”></script>

Continue reading ‘Prototype – a fantastic JavaScript Framework, simplifies Ajax coding’

Welcome to AjaxApp.com

Welcome to AjaxApp.com. AjaxApp.com is a blog about the fun in web development, which we will continously feed you with the latest technologies in web development such as AJAX, generic JavaScript, DHTML, CSS. And we also include tutorial and custom coding on topics that cover PHP, JSP, RDBMs such as MySQL and Oracle and even Open source operating system such as Ubuntu and Fedora.

AjaxApp.com will be a blog that gets updated once we have interesting topics on tutorial and tips on the above-mentioned technologies. We’ll strike to write good tutorial that center around AJAX/PHP/JSP and other web development programming that is based on open source technique.

About

This blog is owned by Christopher K. Y. Chee, which is a blog for consistent learning and updating my friends and students on interactive web app development in AJAX, DHTML, CSS and even cover some open source tips such as PHP, JSP, MySQL, Linux etc.

To know more about what this blog is about, read this post!.

If you wanna know me more, I’m also the owner and chief blogger of TechChee.com, gadget and shopping blog.