...
Code Block |
---|
initAHAH: function (targetId, URL) {
var target = document.getElementById(targetId);
var callback = function(results) {
// callback function defines what to do when the ahah response is received,
// the response will be placed in the "results" variable
target.innerHTML = results; // put the html in the target div
RSF.transformActionDomToAJAX(target); // navigation and forms will retarget via AHAH
RSF.getDOMModifyFirer().fireEvent(); // notify portal that DOM height has changed
}
// set up the function which initiates the AJAX form submission request
var updater = RSF.getAJAXLinkUpdater({href:URL}, callback, URL);
// run the updater function immediately to get the current data into the results fields
updater();
},
|
...