Guide to creating simple chromeless popup windows.

Written by Michael Bloch


Popup windows - hate 'em or love 'em; they are a constant companion during our Internet surfing. They can be quite useful, especiallyrepparttar chromeless variety.

A chromeless popup window is one that doesn't showrepparttar 119125 browsers menu or tool bar, but does retainrepparttar 119126 title bar (for easy closing). Some visitors have so many options on their tool bars that they take up over a quarter ofrepparttar 119127 screen height!

Chromeless popup windows are a great way to deliver list information and extra help for filling in forms without bogging down your pages.

There are many scripts available for creating popups, but sometimes you'll just want something simple that won't require you to incorporate 100 lines of JavaScript!

This particular chromeless popup window procedure will work in Netscape and IE Versions 4+. It will create a link activated window of a fixed size, but will allow for scrollbars if necessary.

To view a demo, click onrepparttar 119128 "20 second site survey" link onrepparttar 119129 right hand menu of our home page:

http://wwww.tamingthebeast.net

INSTRUCTIONS:

First, create and save a standard page withrepparttar 119130 information you wish to be displayed inrepparttar 119131 popup window. The elements should be placed within a table structure. Suggested width of table: around 330 - 350 pixels.

And if you want to create a "Close this Window" statement inrepparttar 119132 page:

Close this window< d>

If you choose not to include this snippet, visitors will still be able to closerepparttar 119133 window viarepparttar 119134 popup window title bar controls.

Second,repparttar 119135 script to launchrepparttar 119136 chromeless popup window. Copy and paste this intorepparttar 119137 HTML (betweenrepparttar 119138 and tags) ofrepparttar 119139 page you wish to launchrepparttar 119140 popup from (changerepparttar 119141 properties in capital letters to suit):



Validating Form Input in JavaScript

Written by Amrit Hallan


This time we'll make a form that collects information aboutrepparttar visitor at your site. You must have filled-in copious registration forms or survey forms where you had to enter your name, your email, your address, etc. Sometimes users, intentionally or unintentionally, enter wrong information that can either spoil your database scheme or give you lots of useless data and hence, waste your precious server space.

To avoid such problems, as much as it can be managed, we programmatically try to make sure, that data is entered in an orderly fashion, and no unusable fields are entered. Checking individual fields ofrepparttar 119124 form does this.

We'll see a form here with three fields: Name, Phone and Email. In this form, no field should be left blank, there should be no numbers inrepparttar 119125 Name field [1,2,3,4,.], and inrepparttar 119126 Email field, no email should be withoutrepparttar 119127 "@" sign. We can carry out more complex validations, but atrepparttar 119128 moment, these three should suffice.

/// Removerepparttar 119129 extra dots while testing. They have been just inserted so that some email programs don't freak out atrepparttar 119130 presence of a JavaScript inrepparttar 119131 email.

<..script language="JavaScript1.2"> function CheckName(HoldName) { NoNumThere='true'; for(i=0; i

Enter your name:

Enter you phone:

Enter your email:



Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use