This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've managed to create some code that creates a dialog window with an OK button, a choice of 3 images (warn, error, info) and I made it modal using some other semi-transparent divs.
What I'd like to do now is create my own custom confirm dialog that has YES/NO buttons similar to how I've done everything else. I've seen examples on the web, but the ones I have found are commercial so I can't see the code.
What I need to figure out how to do is attach a function handler to the YES/NO buttons and somehow from my function I use to actually create and display the dialog, return true/false from that handler to said function.
I'm a bit out of my league on this though. Any helpful tips?
So yesClicked and noClicked return true/false appropriatly, but I really need showConfirm to return that true/false value.
Joined: Nov 08, 2001