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


PHP xajaxResponse::append方法代码示例

本文整理汇总了PHP中xajaxResponse::append方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxResponse::append方法的具体用法?PHP xajaxResponse::append怎么用?PHP xajaxResponse::append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajaxResponse的用法示例。


在下文中一共展示了xajaxResponse::append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addHandler

function addHandler($sId, $sHandler)
{
    $objResponse = new xajaxResponse();
    $objResponse->addHandler($sId, "click", $sHandler);
    $objResponse->append('log', 'innerHTML', '<div id="handler' . $sHandler . '">*-- ' . $sHandler . ' (attached)</div>');
    return $objResponse;
}
开发者ID:asad345100,项目名称:mis-pos,代码行数:7,代码来源:events.php

示例2: ajax_refreshCart

 public function ajax_refreshCart()
 {
     $objResponse = new xajaxResponse();
     $objResponse->clear("cart-contents", "innerHTML");
     $objResponse->append("cart-contents", "innerHTML", $this->getCartTemplate());
     return $objResponse;
 }
开发者ID:krisldz,项目名称:Gekosale2,代码行数:7,代码来源:cartpreviewbox.php

示例3: removeHandler

function removeHandler($sId, $sHandler)
{
    $objResponse = new xajaxResponse();
    $objResponse->removeHandler($sId, "click", $sHandler);
    $objResponse->append('log', 'innerHTML', "{$sHandler} disabled.<br />");
    return $objResponse;
}
开发者ID:nbgmaster,项目名称:wiflash,代码行数:7,代码来源:eventHandlerTest.php

示例4: create_file

function create_file($tipo, $fileName, $formNum)
{
    $objResponse = new xajaxResponse();
    global $user, $smarty, $tikilib;
    $class = $tipo == "Imagem" ? "Image" : ($tipo == "Texto" ? "Text" : ($tipo == "Outro" ? "Other" : $tipo));
    $publicationClass = $class . "Publication";
    require_once "FileReference.php";
    require_once $publicationClass . ".php";
    if ($error = FileReference::isForbiddenExtension($fileName)) {
        // Estranho ficar aqui, mas onde colocar?
        $error .= ' Veja a <a href="tiki-index.php?page=Formatos+de+arquivos+do+Acervo+Livre">lista de formatos suportados</a>';
        $objResponse->script("setUploadErrorMsg('{$error}')");
        return $objResponse;
    }
    $fields = array("user" => $user);
    if ($licencaId = $tikilib->get_user_preference($user, 'licencaPadrao')) {
        $fields["licenseId"] = $licencaId;
    }
    $arquivo = new $publicationClass($fields);
    $objResponse->call("setPublication", $arquivo->id);
    $objResponse->script("newUpload({$formNum});");
    if (in_array($tipo, array('Audio', 'Video', 'Imagem'))) {
        $templateName = 'el-gallery_metadata_' . $tipo . '.tpl';
        $smarty->assign('permission', true);
        $content = $smarty->fetch($templateName);
        $objResponse->append('ajax-gUpMoreOptionsContent', 'innerHTML', $content);
        $objResponse->script(_extractScripts($content));
    }
    return $objResponse;
}
开发者ID:rodrigoprimo,项目名称:estudiolivre,代码行数:30,代码来源:el-gallery_upload_ajax.php

示例5: eventHandlerThree

 function eventHandlerThree()
 {
     $objResponse = new xajaxResponse();
     $objResponse->append('log', 'innerHTML', 'Message from event handler three.<br />');
     $objResponse->setReturnValue('return value from event handler three.');
     return $objResponse;
 }
开发者ID:nbgmaster,项目名称:master2008,代码行数:7,代码来源:server_events.php

示例6: confirm

 function confirm($seconds)
 {
     sleep($seconds);
     $objResponse = new xajaxResponse();
     $objResponse->append('outputDIV', 'innerHTML', '<br />confirmation from theFrame.php call');
     return $objResponse;
 }
开发者ID:asad345100,项目名称:mis-pos,代码行数:7,代码来源:theFrame.php

示例7: append

 function append($sTarget, $sAttribute, $sData, $highlight = false)
 {
     $randomid = rand();
     parent::append($sTarget, $sAttribute, '<span id="' . $randomid . '"></span>');
     parent::append($randomid, $sAttribute, $sData);
     if ($highlight) {
         $this->highlight($randomid);
     }
 }
开发者ID:nephie,项目名称:AZL-website,代码行数:9,代码来源:highlightresponse.php

示例8: argumentDecode

function argumentDecode($nTimes, $aArgs)
{
    global $timer;
    global $trips;
    $objResponse = new xajaxResponse();
    if ($nTimes < $trips) {
        $nTimes += 1;
        $objResponse->script('xajax_argumentDecode(' . $nTimes . ', jsArray);');
        $objResponse->assign('submittedDiv', 'innerHTML', 'Working...');
        $objResponse->append('submittedDiv', 'innerHTML', print_r($aArgs, true));
    } else {
        $objResponse->assign('submittedDiv', 'innerHTML', 'Done');
        ob_start();
        $objResponse->append('submittedDiv', 'innerHTML', ob_get_clean());
    }
    $timer->stop();
    $objResponse->call('accumulateTime', $timer->timeElapsed());
    $objResponse->call('printTime');
    return $objResponse;
}
开发者ID:udistrital,项目名称:serviciosacademicos_desarrollo,代码行数:20,代码来源:performance.php

示例9: streamStream

function streamStream($url, $size)
{
    global $smarty;
    $objResponse = new xajaxResponse();
    preg_match('/(\\d+)\\sx\\s(\\d+)/', $size, $matches);
    $width = (int) $matches[1];
    $height = (int) $matches[1];
    $objResponse->remove('ajax-gPlayer');
    $objResponse->append('ajax-contentBubble', 'innerHTML', $smarty->fetch('el-player.tpl'));
    $objResponse->script("loadFile('{$url}', {$width}, {$height}, 'true')");
    return $objResponse;
}
开发者ID:rodrigoprimo,项目名称:estudiolivre,代码行数:12,代码来源:el-gallery_stream_ajax.php

示例10: comment

function comment($comment)
{
    global $arquivoId, $arquivo, $user, $smarty;
    require_once "Comment.php";
    $c = new Comment(array('publicationId' => $arquivoId, 'user' => $user, 'date' => time(), 'comment' => $comment));
    $smarty->assign('user', $user);
    $smarty->assign('comment', $c);
    $objResponse = new xajaxResponse();
    $objResponse->append("ajax-aCommentsItemsCont", "innerHTML", $smarty->fetch("el-publication_comment.tpl"));
    $objResponse->assign("ajax-commentCount", "innerHTML", count($arquivo->comments) + 1);
    return $objResponse;
}
开发者ID:rodrigoprimo,项目名称:estudiolivre,代码行数:12,代码来源:el-gallery_view_ajax.php

示例11: uploader

function uploader($aFormValues = array())
{
    $objResponse = new xajaxResponse();
    $html = "";
    foreach ($_FILES as $key => $file) {
        $html .= "\n\t\t\t\t<div style=\"border:1px solid #f0f0f0;background:#fff;padding:4px;margin-bottom:4px;\">\n\t\t\t\t\t<div style=\"float:left;width:100px;\">Filename:</div>\n\t\t\t\t\t<div style=\"float:left;\">" . $_FILES[$key]['name'] . "</div>\n\t\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t\t<div style=\"float:left;width:100px;\">Size:</div>\n\t\t\t\t\t<div style=\"float:left;\">" . $_FILES[$key]['size'] . "</div>\n\t\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t\t<div style=\"float:left;\">\$_SESSION request counter: " . $_SESSION['foo'] . "</div>\n\t\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t</div>\n\t\t\t\t";
    }
    if ("" == $html) {
        $html = "empty queue";
    }
    $objResponse->append("results", "innerHTML", $html);
    return $objResponse;
}
开发者ID:xajax,项目名称:xajax,代码行数:13,代码来源:swfupload.php

示例12: get_more_tags

function get_more_tags($offset, $maxRecords)
{
    global $freetaglib, $smarty;
    $objResponse = new xajaxResponse();
    $last_tag = array_pop($freetaglib->get_distinct_tag_suggestion('', $offset - $maxRecords, $maxRecords));
    $smarty->assign('tag_suggestion', $freetaglib->get_distinct_tag_suggestion('', $offset, $maxRecords));
    $objResponse->script("document.getElementById('{$last_tag}-v').style.display='inline'");
    $objResponse->append("ajax-gUpTagListItem", "innerHTML", $smarty->fetch("el-tag_suggest_list.tpl"));
    if ($offset + $maxRecords > $freetaglib->count_distinct_tags()) {
        $objResponse->assign("ajax-gUpTagSuggestMore", "style.display", "none");
    }
    return $objResponse;
}
开发者ID:rodrigoprimo,项目名称:estudiolivre,代码行数:13,代码来源:el-tags_ajax.php

示例13: DBLoadAll

 /**
  * Alle eingetragenen realms laden
  *
  * @access private
  * @author prodigy
  * @since 01.01.2009
  * @version 0.1a
  */
 private function DBLoadAll()
 {
     if (!$this->DBc->DB_Connect('mdm')) {
         $this->objR->assign('SOVerror', 'innerHTML', 'Datenbank zur Zeit nicht verf&uuml;gbar.<br />' . mysqli_connect_error());
         return;
     }
     $res = $this->DBc->DB_Connection['mdm']->query("\n                                             SELECT *\n                                             FROM `realmdbs`;");
     $this->DBc->DB_Close('mdm');
     $this->objR->assign('SOVerror', 'innerHTML', "<pre>\n");
     $this->objR->append('SOVerror', 'innerHTML', $res->num_rows . "\n");
     foreach ($res as $db) {
         $this->objR->append('SOVerror', 'innerHTML', print_r($db, true) . "\n");
     }
     $this->objR->append('SOVerror', 'innerHTML', '</pre>');
 }
开发者ID:prodigy,项目名称:mdmphp,代码行数:23,代码来源:realmdbs.class.php

示例14: add_test_words

function add_test_words($form)
{
    $ch = strtolower($form['word_select']);
    if ($ch == 'all') {
        for ($i = 1; $i <= 24; $i++) {
            $form['word_select'] = $i;
            $html .= do_add_test_words($form);
        }
    } else {
        $html = do_add_test_words($form);
    }
    $response = new xajaxResponse();
    $response->append("word_browser", "innerHTML", $html);
    $response->assign("start_button", "style.display", "block");
    $response->assign("word_browser", "style.display", "block");
    $response->assign("result", "style.display", "none");
    return $response;
}
开发者ID:sandrain,项目名称:hangee,代码行数:18,代码来源:tester_goman.php

示例15: addInput

function addInput($aInputData)
{
    $sId = $aInputData['inputId'];
    $sName = $aInputData['inputName'];
    $sType = $aInputData['inputType'];
    $sValue = $aInputData['inputValue'];
    $objResponse = new xajaxResponse();
    $sParentId = "testForm1";
    if (isset($aInputData['inputWrapper'])) {
        $sDivId = $sId . '_div';
        $objResponse->append($sParentId, "innerHTML", '<div id="' . $sDivId . '"></div>');
        $sParentId = $sDivId;
    }
    $objResponse->alert("inputData: " . print_r($aInputData, true));
    $objResponse->createInput($sParentId, $sType, $sName, $sId);
    $objResponse->assign($sId, "value", $sValue);
    return $objResponse;
}
开发者ID:johnfelipe,项目名称:orfeo,代码行数:18,代码来源:createFormInputTest.php


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