* and to take information from XML documents and either return information from them or modifiy the
* form appropriately.
*/
-
-
+
+
function onGroupingChange() {
hideAllForms();
showElement("groupeditform");
var updateGroupingsResponseCallback =
{
- success:updateGroupingsResponse,
- failure:responseFailure,
-};
+ success:function(o) {
-
-/**
- * The callback function for updateGroupings()
- * Takes the XML containing the grouping details that has been sent back and updates the display.
- */
-function updateGroupingsResponse() {
-
- alert("Called updateGroupingsResponse");
- if (updategroupingsrequest.readyState == 4 && updategroupingsrequest.status == 200) {
- alert("updateGroupingsResponse called");
- var xmlDoc = updategroupingsrequest.responseXML;
- error = getFromXML(updategroupingsrequest.responseXML, 'error');
+ // alert("updateGroupingsResponse called");
+ var xmlDoc = o.responseXML;
+ error = getFromXML(o.responseXML, 'error');
if (error != null) {
alert(error);
}
- alert(updategroupingsrequest.responseText);
+ // alert(o.responseXML);
var noofoptions = addOptionsFromXML("groupings", xmlDoc);
// If the selected grouping is not set, set it to the first grouping in the list
enableButton("showcreategroupform");
enableButton("showaddgroupstogroupingform");
}
- }
-}
+},
+ failure:responseFailure,
+};
+
+
+
/**
* Updates the list of groups when groupingid is marked as selected
}
-
-
-
-
-
-
-
-