亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ajax.php

?? j2me is based on j2mepolish, client & server for mobile application. server part
?? PHP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<?php/* SVN FILE: $Id: ajax.php 4050 2006-12-02 03:49:35Z phpnut $ *//** * Helper for AJAX operations. * * Helps doing AJAX using the Prototype library. * * PHP versions 4 and 5 * * CakePHP :  Rapid Development Framework <http://www.cakephp.org/> * Copyright (c)	2006, Cake Software Foundation, Inc. *								1785 E. Sahara Avenue, Suite 490-204 *								Las Vegas, Nevada 89104 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @filesource * @copyright		Copyright (c) 2006, Cake Software Foundation, Inc. * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP Project * @package			cake * @subpackage		cake.cake.libs.view.helpers * @since			CakePHP v 0.10.0.1076 * @version			$Revision: 4050 $ * @modifiedby		$LastChangedBy: phpnut $ * @lastmodified	$Date: 2006-12-01 21:49:35 -0600 (Fri, 01 Dec 2006) $ * @license			http://www.opensource.org/licenses/mit-license.php The MIT License *//** * AjaxHelper library. * * Helps doing AJAX using the Prototype library. * * @package		cake * @subpackage	cake.cake.libs.view.helpers */class AjaxHelper extends Helper {/** * Included helpers. * * @var array * @access public */	var $helpers = array('Html', 'Javascript');/** * Names of Javascript callback functions. * * @var array * @access public */	var $callbacks = array('uninitialized', 'loading', 'loaded', 'interactive', 'complete', 'success', 'failure');/** * Names of AJAX options. * * @var array * @access public */	var $ajaxOptions = array('type', 'confirm', 'condition', 'before', 'after', 'fallback', 'update', 'loading', 'loaded', 'interactive', 'complete', 'with', 'url', 'method', 'position', 'form', 'parameters', 'evalScripts', 'asynchronous', 'onComplete', 'onUninitialized', 'onLoading', 'onLoaded', 'onInteractive', 'success', 'failure', 'onSuccess', 'onFailure', 'insertion', 'requestHeaders');/** * Options for draggable. * * @var array * @access public */	var $dragOptions = array('handle', 'revert', 'constraint', 'change', 'ghosting');/** * Options for droppable. * * @var array * @access public */	var $dropOptions = array('accept', 'containment', 'overlap', 'greedy', 'hoverclass', 'onHover', 'onDrop');/** * Options for sortable. * * @var array * @access public */	var $sortOptions = array('tag', 'only', 'overlap', 'constraint', 'containment', 'handle', 'hoverclass', 'ghosting', 'dropOnEmpty', 'onUpdate', 'onChange');/** * Options for slider. * * @var array * @access public */	var $sliderOptions = array('axis', 'increment', 'maximum', 'minimum', 'alignX', 'alignY', 'sliderValue', 'disabled', 'handleImage', 'handleDisabled', 'values', 'onSlide', 'onChange');/** * Options for in-place editor. * * @var array * @access public */	var $editorOptions = array('okText', 'cancelText', 'savingText', 'formId', 'externalControl', 'rows', 'cols', 'size', 'highlightcolor', 'highlightendcolor', 'savingClassName', 'formClassName', 'loadTextURL', 'loadingText', 'callback', 'ajaxOptions', 'clickToEditText');/** * Options for auto-complete editor. * * @var array * @access public */	var $autoCompleteOptions = array('paramName', 'tokens', 'frequency', 'minChars', 'indicator', 'updateElement', 'afterUpdateElement', 'onShow', 'onHide');/** * Output buffer for Ajax update content * * @var array * @access private */	var $__ajaxBuffer = array();/** * Returns link to remote action * * Returns a link to a remote action defined by <i>options[url]</i> * (using the urlFor format) that's called in the background using * XMLHttpRequest. The result of that request can then be inserted into a * DOM object whose id can be specified with <i>options[update]</i>. * * Examples: * <code> *  $ajax->link("Delete this post", "/posts/delete/{$post['Post']['id']}" * 				array("update" => "posts", "loading"=>"Element.show('loading');", "complete"=>"Element.hide('loading');"), *				"Are you sure you want to delte this post?"); *  $ajax->link($html->img("refresh"), '/emails/refresh', *  			array("update" => "posts", "loading"=>"Element.show('loading');", "complete"=>"Element.hide('loading');"), *				null, false); * </code> * * By default, these remote requests are processed asynchronous during * which various callbacks can be triggered (for progress indicators and * the likes). * * The callbacks that may be specified are: * * - <i>loading</i>::		Called when the remote document is being *							loaded with data by the browser. * - <i>loaded</i>::		Called when the browser has finished loading *							the remote document. * - <i>interactive</i>::	Called when the user can interact with the *							remote document, even though it has not *							finished loading. * - <i>complete</i>:: Called when the request is complete. * * If you for some reason or another need synchronous processing (that'll * block the browser while the request is happening), you can specify * <i>$options['type'] = synchronous</i>. * * You can customize further browser side call logic by passing * in Javascript code snippets via some optional parameters. In * their order of use these are: * * - <i>confirm</i> :: Adds confirmation dialog. * - <i>condition</i> :: Perform remote request conditionally *                      by this expression. Use this to *                      describe browser-side conditions when *                      request should not be initiated. * - <i>before</i> ::		Called before request is initiated. * - <i>after</i> ::		Called immediately after request was *						initiated and before <i>loading</i>. * * @link http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater * @param string $title Title of link * @param string $href href string "/products/view/12" * @param array $options Options for JavaScript function * @param string $confirm Confirmation message. Calls up a JavaScript confirm() message. * @param boolean $escapeTitle Escaping the title string to HTML entities * @return HTML code for link to remote action * @access public */	function link($title, $href = null, $options = array(), $confirm = null, $escapeTitle = true) {		if (!isset($href)) {			$href = $title;		}		if (!isset($options['url'])) {			$options['url'] = $href;		}		if (isset($confirm)) {			$options['confirm'] = $confirm;			unset($confirm);		}		$htmlOptions = $this->__getHtmlOptions($options);		if (empty($options['fallback']) || !isset($options['fallback'])) {			$options['fallback'] = $href;		}		if (!isset($htmlOptions['id'])) {			$htmlOptions['id'] = 'link' . intval(rand());		}		if (!isset($htmlOptions['onclick'])) {			$htmlOptions['onclick'] = '';		}		$htmlOptions['onclick'] .= ' return false;';		$return = $this->Html->link($title, $href, $htmlOptions, null, $escapeTitle);		$script = $this->Javascript->event("'{$htmlOptions['id']}'", "click", $this->remoteFunction($options));		if (is_string($script)) {			$return .= $script;		}		return $return;	}/** * Creates JavaScript function for remote AJAX call * * This function creates the javascript needed to make a remote call * it is primarily used as a helper for link. * * @link http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater * @see link() for docs on options parameter. * @param array $options options for javascript * @return string html code for link to remote action * @access public */	function remoteFunction($options = null) {		if (isset($options['update'])) {			if (!is_array($options['update'])) {				$func = "new Ajax.Updater('{$options['update']}',";			} else {				$func = "new Ajax.Updater(document.createElement('div'),";			}			if (!isset($options['requestHeaders'])) {				$options['requestHeaders'] = array();			}			if (is_array($options['update'])) {				$options['update'] = join(' ', $options['update']);			}			$options['requestHeaders']['X-Update'] = $options['update'];		} else {			$func = "new Ajax.Request(";		}		$func .= "'" . $this->Html->url(isset($options['url']) ? $options['url'] : "") . "'";		$func .= ", " . $this->__optionsForAjax($options) . ")";		if (isset($options['before'])) {			$func = "{$options['before']}; $func";		}		if (isset($options['after'])) {			$func = "$func; {$options['after']};";		}		if (isset($options['condition'])) {			$func = "if ({$options['condition']}) { $func; }";		}		if (isset($options['confirm'])) {			$func = "if (confirm('" . $this->Javascript->escapeString($options['confirm'])				. "')) { $func; } else { return false; }";		}		return $func;	}/** * Periodically call remote url via AJAX. * * Periodically calls the specified url (<i>options['url']</i>) every <i>options['frequency']</i> seconds (default is 10). * Usually used to update a specified div (<i>options['update']</i>) with the results of the remote call. * The options for specifying the target with url and defining callbacks is the same as link. * * @link http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater * @param array $options Callback options * @return string Javascript codeblock * @access public */	function remoteTimer($options = null) {		$frequency=(isset($options['frequency'])) ? $options['frequency'] : 10;		$code="new PeriodicalExecuter(function() {" . $this->remoteFunction($options) . "}, $frequency)";		return $this->Javascript->codeBlock($code);	}/** * Returns form tag that will submit using Ajax. * * Returns a form tag that will submit using XMLHttpRequest in the background instead of the regular * reloading POST arrangement. Even though it's using Javascript to serialize the form elements, the form submission * will work just like a regular submission as viewed by the receiving side (all elements available in params). * The options for defining callbacks is the same as link(). * * @param array $params Form target * @param array $type How form data is posted: 'get' or 'post' * @param array $options Callback/HTML options * @return string JavaScript/HTML code * @access public */	function form($params = null, $type = 'post', $options = array()) {		if (is_array($params)) {			extract($params, EXTR_OVERWRITE);			if (!isset($action)) {				$action = null;			}			if (!isset($type)) {				$type = 'post';			}			if (!isset($options)) {				$options = array();			}		} else {			$action = $params;		}		$htmlOptions = $this->__getHtmlOptions($options);		$htmlOptions['action'] = $action;		if (!isset($htmlOptions['id'])) {			$htmlOptions['id'] = 'form' . intval(rand());		}		$htmlOptions['onsubmit']="return false;";		if (!isset($options['with'])) {				$options['with'] = "Form.serialize('{$htmlOptions['id']}')";		}		$options['url']=$action;		return $this->Html->formTag($htmlOptions['action'], $type, $htmlOptions)				. $this->Javascript->event("'" . $htmlOptions['id']. "'", "submit", $this->remoteFunction($options));	}/** * Returns a button input tag that will submit using Ajax * * Returns a button input tag that will submit form using XMLHttpRequest in the background instead of regular * reloading POST arrangement. <i>options</i> argument is the same as in <i>form_remote_tag</i> * * @param string $title Input button title * @param array $options Callback options * @return string Ajaxed input button * @access public */	function submit($title = 'Submit', $options = array()) {		$htmlOptions         =$this->__getHtmlOptions($options);		$htmlOptions['value']=$title;		if (!isset($options['with'])) {				$options['with'] = 'Form.serialize(Event.element(event).form)';		}		if (!isset($htmlOptions['id'])) {				$htmlOptions['id'] = 'submit' . intval(rand());		}		$htmlOptions['onclick']="return false;";		return $this->Html->submit($title, $htmlOptions)			. $this->Javascript->event('"' . $htmlOptions['id'] . '"', 'click', $this->remoteFunction($options));	}/** * Observe field and call ajax on change. * * Observes the field with the DOM ID specified by <i>field_id</i> and makes * an Ajax when its contents have changed. * * Required +options+ are: * - <i>frequency</i>:: The frequency (in seconds) at which changes to *						this field will be detected. * - <i>url</i>::		@see urlFor() -style options for the action to call *						when the field has changed. * * Additional options are: * - <i>update</i>::	Specifies the DOM ID of the element whose *						innerHTML should be updated with the *						XMLHttpRequest response text. * - <i>with</i>:: A Javascript expression specifying the *						parameters for the XMLHttpRequest. This defaults *						to Form.Element.serialize('$field_id'), which can be *						accessed from params['form']['field_id']. * * * @see link(). * @param string $field_id DOM ID of field to observe * @param array $options ajax options * @return string ajax script * @access public */	function observeField($field_id, $options = array()) {		if (!isset($options['with'])) {			$options['with'] = "Form.Element.serialize('$field_id')";		}		return $this->Javascript->codeBlock($this->_buildObserver('Form.Element.Observer', $field_id, $options));	}/** * Observe entire form and call ajax on change. * * Like @see observeField(), but operates on an entire form identified by the * DOM ID <b>form_id</b>. <b>options</b> are the same as <b>observe_field</b>, except * the default value of the <i>with</i> option evaluates to the * serialized (request string) value of the form. * * @param string $field_id DOM ID of field to observe * @param array $options ajax options * @return string ajax script * @access public */	function observeForm($field_id, $options = array()) {		if (!isset($options['with'])) {				$options['with'] = 'Form.serialize("' . $field_id . '")';		}		return $this->Javascript->codeBlock($this->_buildObserver('Form.Observer', $field_id, $options));	}/** * Create a text field with Autocomplete. * * Creates an autocomplete field with the given ID and options. * * options['with'] defaults to "Form.Element.serialize('$field_id')", * but can be any valid javascript expression defining the * * @link http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter * @param string $field_id DOM ID of field to observe * @param string $url URL for the autocomplete action * @param array $options Ajax options * @return string Ajax script * @access public */	function autoComplete($field, $url = "", $options = array()) {		$var = '';		if (isset($options['var'])) {			$var = 'var ' . $options['var'] . ' = ';			unset($options['var']);		}		if (!isset($options['id'])) {			$options['id'] = Inflector::camelize(r("/", "_", $field));		}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃av一区二区| 懂色av一区二区三区蜜臀| 奇米精品一区二区三区在线观看一| 一区二区三区免费在线观看| 亚洲综合另类小说| 日av在线不卡| 北条麻妃国产九九精品视频| 色av综合在线| 精品国偷自产国产一区| 国产三级一区二区三区| 成人午夜视频在线观看| 白白色亚洲国产精品| 欧美日韩黄色一区二区| 国产亚洲人成网站| 尤物视频一区二区| 激情丁香综合五月| 一本色道a无线码一区v| 精品久久久久久无| 亚洲图片一区二区| 国产成人精品三级| 3d动漫精品啪啪一区二区竹菊| 国产精品污污网站在线观看| 婷婷一区二区三区| 91在线码无精品| 久久夜色精品国产欧美乱极品| 亚洲自拍欧美精品| 99v久久综合狠狠综合久久| 精品99一区二区三区| 日韩黄色片在线观看| 91看片淫黄大片一级| 国产精品午夜电影| 国产精品一区二区在线观看网站| 欧美日本国产视频| 亚洲精品国产第一综合99久久| 国产不卡高清在线观看视频| 久久久亚洲精品一区二区三区| 亚洲一区二区五区| 99在线精品视频| 国产精品久久久久影院亚瑟 | 亚洲综合一区在线| 91亚洲大成网污www| 国产精品一二三区在线| 亚洲精品一区二区三区四区高清| 日韩福利电影在线观看| 制服丝袜激情欧洲亚洲| 视频在线在亚洲| 日韩亚洲欧美一区| 蜜臀va亚洲va欧美va天堂| 欧美第一区第二区| 国产精品69毛片高清亚洲| 国产日本欧美一区二区| 国产高清一区日本| 亚洲老妇xxxxxx| 欧美理论电影在线| 精品一区二区免费看| 中文在线一区二区| 91官网在线观看| 免费人成在线不卡| 国产午夜精品久久久久久免费视 | 日本道精品一区二区三区 | 欧美一区二区三区的| 韩国精品主播一区二区在线观看 | 亚洲欧洲国产日韩| 欧美特级限制片免费在线观看| 麻豆精品一二三| 国产精品传媒视频| 欧美一级免费大片| 不卡一区二区三区四区| 欧美日本在线看| 国产一区二区0| 亚洲精品福利视频网站| 久久久一区二区| 欧美日韩中字一区| 懂色av一区二区三区免费观看| 亚洲国产成人av网| 国产精品超碰97尤物18| 日韩欧美中文字幕一区| 色哟哟国产精品免费观看| 韩日欧美一区二区三区| 亚洲va欧美va国产va天堂影院| 久久精品欧美一区二区三区麻豆| 欧美在线色视频| 99视频有精品| 岛国精品在线播放| 韩国av一区二区三区| 日本不卡一二三区黄网| 一卡二卡欧美日韩| 成人免费一区二区三区在线观看 | 91麻豆精品国产91久久久使用方法 | 99视频精品免费视频| 国产传媒久久文化传媒| 国产在线不卡一卡二卡三卡四卡| 亚洲成人综合网站| 亚洲第一二三四区| 亚洲韩国一区二区三区| 亚洲黄色片在线观看| 国产高清不卡一区| 国产精品91一区二区| 国产精品亚洲人在线观看| 国产美女视频一区| 国产一区 二区| 国产不卡在线视频| 成人激情视频网站| 91丨porny丨国产| 色8久久人人97超碰香蕉987| 欧美视频三区在线播放| 一本大道久久a久久精品综合| 在线看日韩精品电影| 欧美美女一区二区三区| 日韩一区二区影院| 国产色爱av资源综合区| 国产精品久久久久久亚洲毛片 | 91久久香蕉国产日韩欧美9色| 在线看日本不卡| 欧美成人精品福利| 国产精品私人影院| 五月婷婷色综合| 国产又粗又猛又爽又黄91精品| 97久久久精品综合88久久| 欧美日韩国产在线观看| 国产欧美精品一区二区色综合| 中文字幕五月欧美| 美女视频黄久久| 91亚洲精品乱码久久久久久蜜桃| 欧美丰满美乳xxx高潮www| 国产亚洲一区字幕| 亚洲成a人v欧美综合天堂| 久久精品理论片| 色av成人天堂桃色av| 国产丝袜欧美中文另类| 天天做天天摸天天爽国产一区| 日韩精品一区二区三区四区视频 | 国产精品18久久久久久久久| 色8久久人人97超碰香蕉987| 久久色在线观看| 亚洲午夜日本在线观看| 国产乱妇无码大片在线观看| 欧美色视频在线观看| 日韩一区在线看| 国产成人精品一区二区三区四区| 欧美挠脚心视频网站| 亚洲色图欧洲色图| 福利电影一区二区| 精品久久一区二区| 日韩av在线发布| 欧美三级在线视频| 亚洲男人都懂的| 成人黄页毛片网站| 欧美国产乱子伦 | 精品毛片乱码1区2区3区| 日韩综合小视频| 欧美疯狂做受xxxx富婆| 亚洲成人1区2区| 欧美日韩午夜精品| 日韩和欧美一区二区三区| 欧美亚洲图片小说| 亚洲不卡在线观看| 这里是久久伊人| 日本视频一区二区| 欧美变态tickle挠乳网站| 蜜桃精品视频在线观看| 欧美成人三级在线| 国产自产高清不卡| 亚洲国产精品99久久久久久久久| 成人aaaa免费全部观看| 亚洲免费在线观看视频| 欧美午夜精品理论片a级按摩| 亚洲成av人片| 久久综合九色综合欧美亚洲| 国产成人99久久亚洲综合精品| 国产精品久久久久久久久久久免费看| 国内成人精品2018免费看| 国产精品久久久久久久久免费丝袜 | 日韩国产欧美在线播放| 久久综合久久99| 91在线精品一区二区| 午夜视黄欧洲亚洲| 国产亚洲成aⅴ人片在线观看 | 国产日韩欧美精品综合| 色8久久人人97超碰香蕉987| 精品影院一区二区久久久| 亚洲欧洲制服丝袜| 日韩一级大片在线观看| bt欧美亚洲午夜电影天堂| 久久99久久久欧美国产| 一区二区三区鲁丝不卡| 国产精品久久久久三级| 欧美午夜一区二区三区免费大片| 国产精品亚洲一区二区三区在线| 亚洲国产精品一区二区www在线| 国产精品色眯眯| 亚洲精品一区二区三区福利| 欧美视频第二页| 色综合中文字幕国产| 成人免费高清在线| 国内精品国产三级国产a久久| 日本不卡不码高清免费观看| 亚洲一区中文在线| 亚洲乱码国产乱码精品精的特点 | 欧美一二三四区在线|