Need a confirmation box with localized 'Yes/No' buttons

Viewpoint
Teradata Employee

Need a confirmation box with localized 'Yes/No' buttons


Hello,

My customer is asking me for a localized 'confirmation box' with german 'Yes/No' buttons
to be used in the portlet I developed.

The standard javascript 'confirm' box does not offer 'Yes/No' buttons.

Since the viewpoint framework does not offer such a (documented) widget,
I was wondering what workarounds other developers are using.

Can anybody recommend any 'confirmation box ' jQuery Plugins?

Any hints are welcome.

Thanks
Marcus

3 REPLIES
Teradata Employee

Re: Need a confirmation box with localized 'Yes/No' buttons

Anybody any ideas?

What confirmation boxes are you using?
Teradata Employee

Re: Need a confirmation box with localized 'Yes/No' buttons

Hello,

I've finally found a way to get an easy to use modal and localized javascript Yes/No-confirmation popup box.
It's basically just 1 line of code and it doesn't need any extra work like any of the jQuery plugins do.
It uses the 'VB-Script' confirm dialog and therefore it only works only for IE!

function confirmLoc(yourQuestion)
{
execScript('n = msgbox("' + yourQuestion + '", "4", "Your Title")', "vbscript");

return (n == 6); // returns true or false
}

regards
Marcus

Re: Need a confirmation box with localized 'Yes/No' buttons

Check this one...Javascript Confirm Box

http://www.corelangs.com/js/progs/popup.html

Winston