當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。