We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,145 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

JavaScript Dialog Box Button Control

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

2
Contributors
2
Replies
1 Day
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
jbutardo
Junior Poster in Training
74 posts since Jan 2012
Reputation Points: 8
Solved Threads: 2
Skill Endorsements: 0
stbuchok
Practically a Posting Shark
876 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2

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

jbutardo
Junior Poster in Training
74 posts since Jan 2012
Reputation Points: 8
Solved Threads: 2
Skill Endorsements: 0
Question Answered as of 1 Year Ago by stbuchok

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0634 seconds using 2.69MB