1,105,585 Community Members

JavaScript Dialog Box Button Control

Member Avatar
jbutardo
Junior Poster in Training
74 posts since Jan 2012
Reputation Points: -2 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi,

I just have a program that needs a dialog box,
but I have problem since I want the dialog box to do something.

for example, I have a javascript dialog box that would create a message
"You have an error, Do you want to save the Log File", Then after clicking the button, the function for creating log file will process..

Is this possible? If it is, can someone help me how to create this..

Thanks

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
0
 
Member Avatar
jbutardo
Junior Poster in Training
74 posts since Jan 2012
Reputation Points: -2 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

Look at using confirm(): http://www.tizag.com/javascriptT/javascriptconfirm.php

Or you can use jQuery's dialog box: http://jqueryui.com/demos/dialog/#modal-confirmation

I think I'll just use the javascript,
Our project must not use jquery, but thanks by the way

Question Answered as of 2 Years Ago by stbuchok
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: