Simple AngularJS Animations

Using the AngularJS framework we can easily create new animations. We just need to add the ng-animate attribute to the HTML element we want to animate and make sure the CSS that applies on our web page includes the required styling for the animation we want to get. The www.nganimate.org website overviews the possibilities. The […]

Simple Navigation Menu in AngularJS PRO

The AngularJS allows us to create navigation menus in one page web applications in a very simple way. The following code sample shows that. The following is the HTML file that includes a script element that refers the AngularJS library on Google servers. <!DOCTYPE html> <html> <head> <script src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js”></script> <link rel=”stylesheet” href=”design.css” type=”text/css” /> <title>simple […]

Developing Simple node.js Web Application on Our Desktop PRO

We can easily set up an up and running HTTP server on our desktop that runs a web application developed in node.js. We just need to write our code in a separated JavaScript file and execute it. var http = require(‘http’); var server = http.createServer(function (req, res) { res.writeHead(200, {‘Content-Type’:’text/plain’}); res.end(‘Hello World!\n’); }); server.listen(1400,’127.0.0.1′); The following video clip […]

Zend_Db_Table Simple Demo PRO

Using the Zend_Db_Table class, which is part of the Zend Framework, we can easily access a specific table in our database. The following code sample shows how simple it is to add a new row using this class. The following code includes our definition for the users controller. <?php require_once ROOT_DIR.’/models/Users.php’; class UsersController extends Zend_Controller_Action […]

Simple Zend_Form Demo PRO

I have recently created a simple demo for using the Zend_Form. In order to keep it simple I chose to avoid using decorators. You can download the files and place them on your own server. The demo provides us with a simple BMI calculator. The user get to see a simple form where he should enter […]

Simple Zend Framework Jump Start PRO

I have recently created a simple demo for using the PHP Zend Framework. The simple demo was prepared in order to assist my students doing their first steps using this framework. The demo includes few controllers and it basically shows a list of books and a list of reviews for each one of them. In […]

Simple Trait in PHP PRO

Defining a trait is very similar to defining a class. Instead of using the keyword class we use the keyword trait. The purpose of traits is to group functionality in a fine grained and consistent way. It is not possible to instantiate a trait. The trait servers as an additional capability that provides us with additional capabilities when […]

Simple Style Definition in Silverlight INFO

Instead of specifying separately for each and every element how exactly it should look we can define a style and then apply it on various elements. Using styles promotes code reuse, makes our code shorter and assists with the code maintenance in the long run. Defining a style is about defining a collection of property […]

Simple Template Definition in Silverlight PRO

Templates allow us to apply a set of design rules on the controls we have on our page. They change the visual face of every common control. Unlike styles, when using a template we are not limited for those properties that were defined in the Element class. Templates are limited for those elements that extend […]

Skip to content Update cookies preferences