Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Confirm function (http://www.go4expert.com/forums/confirm-function-t512/)

prashantSum 18Nov2005 17:23

Confirm function
 
hi all,

I want a Confirm dialog, but want it's button's names to be changed to some other values like 'Add' and 'Update' instead of 'Ok' and 'Cancel', is it possible to change the labels of buttons of comfirm dialog, or is there any other function where I can customize the dialog...

shabbir 18Nov2005 17:48

Re: Confirm function
 
Quote:

Originally Posted by prashantSum
hi all,

I want a Confirm dialog, but want it's button's names to be changed to some other values like 'Add' and 'Update' instead of 'Ok' and 'Cancel', is it possible to change the labels of buttons of comfirm dialog, or is there any other function where I can customize the dialog...

I am not a javascript expert but as far as I know it cannot be customized. What you can do is make a page that looks similar to the dialog with the colours same as Confirm dialog and display that as popup window.

pradeep 19Nov2005 10:06

Re: Confirm function
 
JavaScript cannot be customized to show user defined texts on the alerts & dialog boxes.But VBScript offers a variety of dialogs, like Yes-No, Yes-No-Cancel, and many more.
What you can do with JavaScript is create a modal window, with whatever button you require.

prashantSum 19Nov2005 15:05

Re: Confirm function
 
thx for replies,
I will create a modal window.......
thx...


All times are GMT +5.5. The time now is 10:23.