public function GetEndScript() { $strJS = parent::GetEndScript(); // Attach the qcubed tracking functions just after parent script attaches the widget to the html object QApplication::ExecuteJsFunction('qcubed.resizable', $this->GetJqControlId(), $this->ControlId, QJsPriority::High); return $strJS; }
public function renderLowPriorityButton_Click($strFormId, $strControlId, $strParameter) { $this->intHitCnt++; $this->dtgButtons->MarkAsModified(); QApplication::ExecuteJsFunction('alert', 'alert 2: a low priority script', QJsPriority::Low); QApplication::ExecuteJsFunction('alert', 'alert 1: a low priority script', QJsPriority::Low); QApplication::ExecuteJsFunction('alert', 'Just updated the datagrid: --> the javascript for adding the css class to the buttons is executed first!', QJsPriority::Low); QApplication::ExecuteSelectorFunction(".ui-button", 'addClass', "ui-state-error"); /* QApplication::ExecuteJavaScript("alert('alert 3: a low priority script')", QJsPriority::Low); QApplication::ExecuteJavaScript("alert('alert 1: a low priority script')", QJsPriority::Low); QApplication::ExecuteJavaScript("alert('Just updated the datagrid: --> the javascript for adding the css class to the buttons is executed first!')", QJsPriority::Low); QApplication::ExecuteJavaScript('$j(".ui-button").addClass("ui-state-error")'); //change the button color: this is executed with standard priority */ }
public function GetEndScript() { $strJS = parent::GetEndScript(); QApplication::ExecuteJsFunction('qcubed.draggable', $this->getJqControlId(), $this->ControlId, QJsPriority::High); return $strJS; }
/** * Begins rendering the page */ protected function Render() { if (QWatcher::WatchersChanged()) { QApplication::ExecuteJsFunction('qc.broadcastChange'); } require $this->HtmlIncludeFilePath; }
protected function prepareAjaxList($dataSource) { if (!$dataSource) { $dataSource = array(); } QApplication::ExecuteJsFunction('qc.acSetData', $this->getJqControlId(), $dataSource, QJsPriority::Exclusive); }
/** * The javascript for the control to be sent to the client. * @return string The control's JS */ public function GetEndScript() { $strJS = parent::GetEndScript(); QApplication::ExecuteJsFunction('qcubed.progressbar', $this->GetJqControlId(), QJsPriority::High); return $strJS; }
/** * Override to enable the datagrid2 javascript. * * @return string */ public function GetEndScript() { $strJS = parent::GetEndScript(); QApplication::ExecuteJsFunction('qcubed.datagrid2', $this->ControlId); return $strJS; }
/** * PHP __set magic method implementation * * @param string $strName Name of the property * @param string $mixValue Value of the property * * @return mixed * @throws Exception|QCallerException|QInvalidCastException */ public function __set($strName, $mixValue) { switch ($strName) { case "GroupName": try { $strGroupName = QType::Cast($mixValue, QType::String); if ($this->strGroupName != $strGroupName) { $this->strGroupName = $strGroupName; $this->blnModified = true; } break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Checked": try { $val = QType::Cast($mixValue, QType::Boolean); if ($val != $this->blnChecked) { $this->blnChecked = $val; if ($this->GroupName && $val == true) { QApplication::ExecuteJsFunction('qcubed.setRadioInGroup', $this->strControlId); } else { $this->AddAttributeScript('prop', 'checked', $val); // just set the one radio } } break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } break; } }
/** * Overrides the parent to add code to cause the default button to be fired if an enter key is pressed * on a control. This purposefully does not include textarea controls, which should get the enter key to * insert a newline. * * @return string */ public function GetEndScript() { $strJS = parent::GetEndScript(); $strControlId = $this->GetJqControlId(); QApplication::ExecuteJsFunction('qc.dialog', $strControlId, QJsPriority::High); return $strJS; }