Sending the data to the server-side event
function ob_OnNodeSelect(id)
{
// add client side code here
//alert("OnNodeSelect on " + id);
if(ob_ev("OnNodeSelect"))
{
if(typeof ob_post == "object")
{
// if a person was selected - not a department
if(id.indexOf("oCont_") != -1)
{
// add the parameter needed on server-side
// id will be a server-side argument for the OnNodeSelect method
// we use only the id of the contact from the database
// (not the whole id of the selected node)
ob_post.AddParam("id", id.replace("oCont_", ""));
ob_post.post(null, "OnNodeSelect", displayContactInfo);
}
}
else
{
alert("Please add obout_Postback ASP.NET control to
your page to use the server-side events");
}
}
}