GeeCON Prague 2014*
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


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
Author

Creating a pop up box in a funcion

todd stetter
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

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
author
Rancher

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a pop up box in a funcion