Sigma Php Ajax framework, Ajax Components, GUI Builder
February 12, 2012, 12:13:24 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: Is it possible to get alert msg with "Yes", "No" buttons
Is it possible - 1 (100%)
any dynamic alert create option - 0 (0%)
Total Voters: 1

Pages: [1]
  Print  
Author Topic: i need javascript alert msg with "Yes" "No" buttons  (Read 8321 times)
manikandan
Jr. Member
**
Posts: 19


View Profile
« on: September 19, 2008, 01:15:47 PM »

Hi I have a question in Javascript.

I need a alert msg with "Yes", "No" buttons. If it is possible, Can we have a sample code?

Thanks
Mani
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #1 on: September 21, 2008, 09:52:28 PM »

A confirm box is often used if you want the user to verify or accept something.When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
if(confirm("Are you sure to reload data?")){
    grid.reload();
}else{
    //to do nothing
}
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!