File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Alert Box/ Pop Up Problem 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 "Alert Box/ Pop Up Problem " Watch "Alert Box/ Pop Up Problem " New topic

Alert Box/ Pop Up Problem

Dave Rowntree

Joined: Jul 12, 2007
Posts: 1
I am trying to resolve a problem for an alert box. My problem being i have a field that when a certain thing is popualated in this instance a customer note i want a pop up box to alert me which i have using this simple bit of code

This does work fine but it now means every time i navigate around the system and because a customer is still present with the notes field still populated it alerts me again and everytime i do anything within the application. I know i need to do some sort of function but my javascript knowledge is pretty limited so i would appreciate it if someone could point me in the right direction
Andy Crane

Joined: Dec 30, 2008
Posts: 17
Hey Dave,

If you're just trying to get one alert, you can set a boolean flag and just check it when you call the alert.

- andy c
"Pseudo code first. If you can pseudo code accurately, when you start writing code, you're just applying syntax to the pseudo code. It separates the two most complicated pieces of programming into manageable bites. You create your app's workflow without worrying about syntax. Then you code without worrying about your app's workflow."
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Why are you outputting it all the time if you do not want it to show up all the time?

I agree. Here's the link:
subject: Alert Box/ Pop Up Problem
It's not a secret anymore!