<script language="javascript">
<!--
// create ActiveWidgets data model - XML-based table
var table = new Active.XML.Table;
// provide data URL
table.setURL("xmldata.php");
// start asyncronous data retrieval
table.request();
// define column labels
var columns = ["ID", "Institution", "Country", "Status", "Exp. Date", "Research Collab.", "Faculty Exch.", "Student Exch.", "Grad. Exch.", "Undergrad. Exch."];
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
obj.setAction("click", function(src){
var i = src.getProperty("item/index");
var j = src.getColumnProperty("index");
if (j==1) {
var link = "imoa_edit.php?imoaid=" + this.getDataProperty("text", i, 0);
parent.hideSearchbox();
document.location.href=link;
} ;
});
var row = new Active.Templates.Row;
row.setEvent("onmouseover", "mouseover(this, 'active-row-highlight')");
row.setEvent("onmouseout", "mouseout(this, 'active-row-highlight')");
obj.setTemplate("row", row);
// provide column labels
obj.setColumnProperty("texts", columns);
// provide external model as a grid data source
obj.setDataModel(table);
// write grid html to the page
document.write(obj);
//-->
</script>
<imoa>
<application>
<id>30</id>
<institution>Agence de Développement Urbain (A.D.U.), Buskerud University College</institution>
<country>Mauritania, Norway</country>
<status>Current</status>
<expdate>09-18-2006</expdate>
<researchcollab>No</researchcollab>
<facultyexch>Yes</facultyexch>
<studentexch>No</studentexch>
<gradexch>Yes</gradexch>
<undergradexch>No</undergradexch>
</application>
<application>
<id>31</id>
<institution>Al Farabi Kazakh National University</institution>
<country>Kazakhstan</country>
<status>Pending Renewal</status>
<expdate></expdate>
<researchcollab>Yes</researchcollab>
<facultyexch>Yes</facultyexch>
<studentexch>No</studentexch>
<gradexch>No</gradexch>
<undergradexch>No</undergradexch>
</application>
</imoa>
This topic is archived.