This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Alert Box/ Pop Up Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Alert Box/ Pop Up Problem " Watch "Alert Box/ Pop Up Problem " New topic
Author

Alert Box/ Pop Up Problem

Dave Rowntree
Greenhorn

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
Greenhorn

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

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

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Alert Box/ Pop Up Problem
 
Similar Threads
problem when integrating jspell with tinyMCE editor
pass a variable in the URl
bean value persists on clicking back
Eclipse: JSP page has no errors, still eclipse complains
Ajax, Struts, and a few pesky event based issues