Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Wednesday, May 9, 2012

Bootstrap Registration Form Tutorial


This post is a continuation of my previous post Bootstrap tutorial for blog design and already explained about fluid page design. Today let's look at the form HTML elements that comes with Twitter Bootstrap toolkit using these I made a rich registration/sign up form with validation in 10 mins . Bootstrap helps you to produce clean and highly usable applications, it will reduce larger engineering efforts and gives uniform application solutions.



 Download Script       Live Demo 

Download Twitter Bootstrap Project from https://github.com/twitter/bootstrap . 

Bootstrap CSS 
Just include two CSS file bootstrap.css and bootstrap-responsive.css . You can use github url toohttp://twitter.github.com/bootstrap/assets/css/bootstrap.css 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Page Title </title>
<meta name="viewport" content=" width=device-width, initial-scale=1.0 ">
<link href=" assets/css/bootstrap.css " rel="stylesheet">
<link href=" assets/css/bootstrap-responsive.css " rel="stylesheet">
</head>
<body>
<div class=" container ">
<div class=" row ">
<div class=" span8 ">
// Registration form code.
</div>
</div>
</div>
</body>
</html>

Introduction and Installation of PHP



What is PHP?

PHP is an acronym for Hypertext Preprocessor. It is a dynamic server side scripting language that allows an application developer to create very simple to very complex mechanisms for the web. Think of PHP as the brain and central nervous system behind your applications. PHP code can be directly mingled in with your HTML page content as long as the page has a .php extension ( myPage.php ). Or it can be scripts and class files placed on server and connected to your front-end files. Any HTML file you have can be turned into a PHP file and PHP script will run inside it.

Monday, February 20, 2012

Twitter Bootstrap Tutorial



What is twitter bootstrap

Twitter Bootstrap is a toolkit to develop web apps and sites fast. It includes basic CSS and HTML for creating Grids, Layouts, Typography, Tables, Forms, Navigation, Alerts, Popovers etc.
In this and consequent pages, w3resource covers Twitter Bootstrap tool in detail, which will equip you to build web apps and sites using the tool.
twitter bootstarp

Browser Support

Twitter Bootstrap is created with modern browsers in mind. So, you will find it working perfectly with all the modern versions of Chrome, Firefox, Safari, Opera and Internet Explorer.
twitter bootstarp browser support

Obtain Twitter Bootstrap

Download Twitter Bootstrap from https://github.com/twitter/bootstrap.
Unzip the downloaded file and you will get all the necessary files for working with the toolkit.
twitter bootstrap folder

Getting started with Twitter Bootstrap

You can include twitter Bootstrap in your HTML page in two ways.
You can simply include
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.0.0.min.css">
in the head section of your HTML file.
Since Twitter Bootstrap supports LESS (CSS preprocessor for faster and easier web development), you can include the less css file and less JS file in your HTML page as
<link rel="stylesheet/less" href="/path/to/bootstrap.less">
<script src="/path/to/less.js"></script>

What you will learn

In w3resource "Twitter Bootstrap Tutorial" you will learn the following.

Grid system

You will see how to create Grid System using Twitter Bootstrap. It supports 940px wide 16 column Grid as default and many variations of it.

Layouts

You will see how to create 940px wide fixed Layout and how to create Fluid layouts. This will help you to build HTML templates easily.

Typography

You will see how to build Headings, paragraphs, lists, and other inline type elements.

Tables

You will see how to build tables for containing tabular data.

Forms

You will see how to build stylish forms, including textbox, radio button, textarea, various kind of buttons in your HTML page.

Navigation

You will see how to build stylish modern navigation. And also Pagination.

Alerts & Error

As a web designer / developer you often need to create alerts for errors, warnings etc. In this tutorial you will learn how to build those using Twitter Bootstrap.

Popovers

You will learn to use the toolkit to build modal windows, tooltips and popovers.

Sunday, February 5, 2012

Struts, an open-source MVC implementation


This article introduces Struts, a Model-View-Controller implementation that uses servlets and JavaServer Pages (JSP) technology. Struts can help you control change in your Web project and promote specialization. Even if you never implement a system with Struts, you may get some ideas for your future servlets and JSP page implementation.



A JavaServer Page (JSP) file is nothing more than another way to view a servlet. The concept of a JSP file is to allow us to see a Java servlet as an HTML page. This view eliminates all of the ugly print() statements that normally show up in Java code. The JSP file is pre-processed into a .java file, then compiled into a .class. If you are using Tomcat, you can view your pre-processed .java files in the work directory. Other containers may store the .java and .class files elsewhere; the location is container specific. Figure 1 demonstrates the JSP file-to-servlet flow.

Tuesday, January 24, 2012

Creating Your First Ruby on Rails Application From Scratch




This tutorial which will help you create a basic Ruby on Rails application, without worrying too much about Ruby basics for now. Well, if you want to learn more about Ruby or Rails basic concepts, please refer the following links: