当前位置: 首页>>代码示例>>PHP>>正文


PHP QApplication::ExecuteJsFunction方法代码示例

本文整理汇总了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;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:7,代码来源:QResizableBase.class.php

示例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
     */
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:14,代码来源:low_priority_js.php

示例3: GetEndScript

 public function GetEndScript()
 {
     $strJS = parent::GetEndScript();
     QApplication::ExecuteJsFunction('qcubed.draggable', $this->getJqControlId(), $this->ControlId, QJsPriority::High);
     return $strJS;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:6,代码来源:QDraggableBase.class.php

示例4: Render

 /**
  * Begins rendering the page
  */
 protected function Render()
 {
     if (QWatcher::WatchersChanged()) {
         QApplication::ExecuteJsFunction('qc.broadcastChange');
     }
     require $this->HtmlIncludeFilePath;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:10,代码来源:QFormBase.class.php

示例5: prepareAjaxList

 protected function prepareAjaxList($dataSource)
 {
     if (!$dataSource) {
         $dataSource = array();
     }
     QApplication::ExecuteJsFunction('qc.acSetData', $this->getJqControlId(), $dataSource, QJsPriority::Exclusive);
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:7,代码来源:QAutocompleteBase.class.php

示例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;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:10,代码来源:QProgressbarBase.class.php

示例7: GetEndScript

 /**
  * Override to enable the datagrid2 javascript.
  *
  * @return string
  */
 public function GetEndScript()
 {
     $strJS = parent::GetEndScript();
     QApplication::ExecuteJsFunction('qcubed.datagrid2', $this->ControlId);
     return $strJS;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:11,代码来源:QDataGridBase.class.php

示例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;
     }
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:51,代码来源:QRadioButton.class.php

示例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;
 }
开发者ID:vaibhav-kaushal,项目名称:qc-framework,代码行数:14,代码来源:QDialogBase.class.php


注:本文中的QApplication::ExecuteJsFunction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。