php+javascript

Reply

Join Date: Mar 2007
Posts: 11
Reputation: heliumgas is an unknown quantity at this point 
Solved Threads: 0
heliumgas heliumgas is offline Offline
Newbie Poster

php+javascript

 
0
  #1
May 19th, 2007
hello

i´m trying to use the messagebox ok cancel in java to confirm or cancel when i try to eliminate some data from the database.
i don´t know how it works. could somebody help me, or give me an example...
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 42
Reputation: UrbanSky is an unknown quantity at this point 
Solved Threads: 4
UrbanSky UrbanSky is offline Offline
Light Poster

Re: php+javascript

 
0
  #2
May 19th, 2007
This isn't the right forum to past this in as it is a javascript question but i assume that you are trying to use confirm message box of ok or cancel. The confirm messaage box returns a true or false response. Below is a simple illistrated true or false method. If you have more question then please ask or I suggest googling javascript conformation boxes and you will find about a zillion tutorials on how to use them.

  1. confirmed = window.confirm("Click OK to continue. Click Cancel to stop.");
  2.  
  3. if (confirmed)
  4. {
  5. window.alert("Yoy clicked OK");
  6. }
  7. else
  8. {
  9. window.alert("You clicked Cancel");
  10. }
Urban
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC