本文整理汇总了PHP中QApplication::ExecuteJsFunction方法的典型用法代码示例。如果您正苦于以下问题:PHP QApplication::ExecuteJsFunction方法的具体用法?PHP QApplication::ExecuteJsFunction怎么用?PHP QApplication::ExecuteJsFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QApplication
的用法示例。
在下文中一共展示了QApplication::ExecuteJsFunction方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetEndScript
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;
}
示例2: renderLowPriorityButton_Click
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
*/
}
示例3: GetEndScript
public function GetEndScript()
{
$strJS = parent::GetEndScript();
QApplication::ExecuteJsFunction('qcubed.draggable', $this->getJqControlId(), $this->ControlId, QJsPriority::High);
return $strJS;
}
示例4: Render
/**
* Begins rendering the page
*/
protected function Render()
{
if (QWatcher::WatchersChanged()) {
QApplication::ExecuteJsFunction('qc.broadcastChange');
}
require $this->HtmlIncludeFilePath;
}
示例5: prepareAjaxList
protected function prepareAjaxList($dataSource)
{
if (!$dataSource) {
$dataSource = array();
}
QApplication::ExecuteJsFunction('qc.acSetData', $this->getJqControlId(), $dataSource, QJsPriority::Exclusive);
}
示例6: GetEndScript
/**
* 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;
}
示例7: GetEndScript
/**
* Override to enable the datagrid2 javascript.
*
* @return string
*/
public function GetEndScript()
{
$strJS = parent::GetEndScript();
QApplication::ExecuteJsFunction('qcubed.datagrid2', $this->ControlId);
return $strJS;
}
示例8: __set
/**
* 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;
}
}
示例9: GetEndScript
/**
* 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;
}