wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes Creating a pop up box in a funcion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Creating a pop up box in a funcion" Watch "Creating a pop up box in a funcion" New topic

Creating a pop up box in a funcion

todd stetter

Joined: Oct 27, 2006
Posts: 4
am trying to add a pop up box that displays an error message when they enter the wrong format. For ex. the proper format is 3 letters followed by 3 numbers (INF334). If they enter something such as (INFD334) I want a J.S. pop up box to display and have them try again. I cant seem to figure out where I need to include this within my function I created though. Can someone please help! Here is my function:

[ February 02, 2008: Message edited by: todd stetter ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62298

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15383
You probbaly want to use class.match(/[A-Z]{3}[0-9]{3}/) into a variable and add an if statement with the alert.

Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Creating a pop up box in a funcion