-Identify which element was calling the function?
Works very well:
protected function GeneratePersonAnteil($strFormId, $strControlId, $strParameter) {
$this->txtKommentar->Text=$this->GetControl($strControlId)->SelectedValue;
- Pass a parameter to the function?
Works very well:
$this->lstRating->ActionParameter = $intUserId.','.$intContentId;
$this->lstRating->AddAction(new QChangeEvent(), new QAjaxControlAction($this, 'lstRating_Change()');
public function lstRating_Change($strFormId, $strControlId, $strParameter) {
list($intUserId, $intContentId) = split(',', $strParameter);
}
last one taken from http://qcodo.com/forums/topic.php/2730/1//?strSearch=strParameter