So here's a little more data to help show the JSOnChangeSelection problem. I've got the following code, and the columns set with the column editor:
复制内容到剪贴板
代码:
class Unit4 extends Page
{
public $ListView1 = null;
function ListView1BeforeShow($sender, $params)
{
$data=array("1", "2", "3", "4", "5");
$data2=array("asd", "fd", "3", "wer", "m");
$data3=array("a", "b", "c", "d", "e");
$this->ListView1->addItem("name", $data);
$this->ListView1->addItem("asfsadf", $data2);
$this->ListView1->addItem("tef", $data3);
}
function ListView1JSSelectionChanged($sender, $params)
{
?>
//Add your javascript code here
<?php
}
} And when i try to run it, it's completely blank. Take away the ListView1JSSelectionChanged and it works. According to the javascript error console in Firefox and IE6, it tells me that ListView1JSSelectionChanged is not defined... so it looks like this is a javascript error after all. I admit, my javascript skills are rather abysmal. Can anyone point me in the right direction to get the program to recognize this function?