Couple of question
1. How to use "else" without if?
example:
var sum1 = this.getField("field1").value;
var sum2 = this.getField("field2").value;
var total = sum1+sum2;
event.value = total;
else event.value = "";
2. In custom dialog box how to make "cancel" or "other" button do the same as "ok" button?
example:
commit: function(dialog)
{
var data = dialog.store();
this.strName = data["usnm"];
},
butn: function(dialog){
this.strName = data["usnm"];
},
but it does nothing.
if I set it like this:
butn: function(dialog){
dialog.end("butn");
then it works, but I want it to do same as "ok" button.
