Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alert Box/ Pop Up Problem

 
Dave Rowntree
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you outputting it all the time if you do not want it to show up all the time?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic