Get Combo Box Value From Button
Assume I have:
var obj = new AW.UI.Combo();
obj.setId("staffCombo");
obj.setItemCount(myStaffVals.length);
obj.setItemText(myStaffVals);
obj.setItemValue(myStaffKeys);
document.write(obj);
and
var obj = new AW.UI.Button();
obj.setId("staffAdd");
obj.setControlText("Add Staff To Location");
obj.onControlClicked = function(event) {
window.location = "/wv_dev/client/addCommssionedStaff.asp?LID=<%= Request("LID") %>&PID=<%= Request("PID") %>&SID=";
};
document.write(obj);
How do I access the current, selected value of staffCombo in the onControlClicked of staffAdd?
Thanks.
var obj = new AW.UI.Combo();
obj.setId("staffCombo");
obj.setItemCount(myStaffVals.length);
obj.setItemText(myStaffVals);
obj.setItemValue(myStaffKeys);
document.write(obj);
and
var obj = new AW.UI.Button();
obj.setId("staffAdd");
obj.setControlText("Add Staff To Location");
obj.onControlClicked = function(event) {
window.location = "/wv_dev/client/addCommssionedStaff.asp?LID=<%= Request("LID") %>&PID=<%= Request("PID") %>&SID=";
};
document.write(obj);
How do I access the current, selected value of staffCombo in the onControlClicked of staffAdd?
Thanks.
Paul Tiseo
April 6,