HTTP & AJAX
06.HTTP & AJAX 19 décembre 2023 Développement web il3 HTTP & AJAX HE-Arc (DGR) 2022 HyperText Transfer Protocol • Protocole application : invention www en 1990 (v0.9) – Connexion, GET, réponse, userid=joe&password=guessme • Outils HTTP – CLI : curl – Browser dev tools • Exemples PATCH : mnot4 , SOA bits5 AJAX : Historique • Asynchronous Javascript And Xml • Buzzword, Jesse James Garret6, 2005 • Mise à jour Request (IE5, 1999 pour OWA) – Fetch API • Pas obligatoire d’avoir du JS, XML ni d’être asynchrone ! AJAX • XHR est devenue la méthode standard jusqu’à 2018 – Popularisée par Google (GMaps, GMail, …) –0 码力 | 11 页 | 91.09 KB | 1 年前3Apache Wicket 8.x Reference Guide
19. Working with AJAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 19.1. How to use AJAX components and behaviors 208 19.2. Build-in AJAX components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 19.3. Built-in AJAX behaviors . . . . . . . . . 226 19.5. AJAX request attributes and call listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 19.6. Creating custom AJAX call listener . .0 码力 | 350 页 | 9.95 MB | 1 年前3Apache Wicket 7.x Reference Guide
19. Working with AJAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 19.1. How to use AJAX components and behaviors 208 19.2. Build-in AJAX components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 19.3. Built-in AJAX behaviors . . . . . . . . . 226 19.5. AJAX request attributes and call listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 19.6. Creating custom AJAX call listener . .0 码力 | 346 页 | 10.00 MB | 1 年前3Apache Wicket 10.x Reference Guide
19. Working with AJAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 19.1. How to use AJAX components and behaviors 198 19.2. Build-in AJAX components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 19.3. Built-in AJAX behaviors . . . . . . . . . 213 19.5. AJAX request attributes and call listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 19.6. Creating custom AJAX call listener . .0 码力 | 336 页 | 7.16 MB | 1 年前3Apache Wicket 9.x Reference Guide
19. Working with AJAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 19.1. How to use AJAX components and behaviors 197 19.2. Build-in AJAX components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 19.3. Built-in AJAX behaviors . . . . . . . . . 212 19.5. AJAX request attributes and call listeners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 19.6. Creating custom AJAX call listener . .0 码力 | 335 页 | 7.15 MB | 1 年前3Introducing Apache Wicket
declare dependencies on header items and resources: Url jqueyuiUrl = Url.parse("https://ajax.googleapis.com/ajax/libs/jqueryui/" + "1.10.2/jquery-ui.min.js"); UrlResourceReference jqueryuiRef other non-priority item, including its dependencies. Url jqueyuiUrl = Url.parse("https://ajax.googleapis.com/ajax/libs/" + "jqueryui/1.10.2/jquery-ui.min.js"); UrlResourceReference jqueryuiRef JavaScript entry plugins-bundle.js , which includes all the bundle resources. AJAX support “Transparent” AJAX Wicket simplifes AJAX development controlling via Java the following basic operations: ● Generate0 码力 | 53 页 | 1.85 MB | 1 年前3RxJS Tutorial
............................................................................................ 26 ajax ................................................................................................. we are going to discuss in Creation operator category: Operator Description ajax This operator will make an ajax request for the given URL. from This operator will create an observable from input count given. ajax This operator will make an ajax request for the given url. To work with ajax we need to import it first as follows: import { ajax } from 'rxjs/ajax'; Let us see an example0 码力 | 106 页 | 1.56 MB | 1 年前3廖雪峰JavaScript教程
操作DOM 6.2.1 更新DOM 6.2.2 插入DOM - 2 - 本文档使用 书栈(BookStack.CN) 构建 6.2.3 删除DOM 6.3 操作表单 6.4 操作文件 6.5 AJAX 6.6 Promise 6.7 Canvas 7 jQuery 7.1 选择器 7.1.1 层级选择器 7.1.2 查找和过滤 7.2 操作DOM 7.2.1 修改DOM结构 7 好处要等到后面学了 AJAX以后才能体会到。 没有generator之前的黑暗时代,用AJAX时需要这么写代码: 1. ajax('http://url-1', data1, function (err, result) { 2. if (err) { 3. return handle(err); 4. } 5. ajax('http://url-2' (err, result) { 6. if (err) { 7. return handle(err); 8. } 9. ajax('http://url-3', data3, function (err, result) { 10. if (err) { 11. return0 码力 | 264 页 | 2.81 MB | 10 月前3ThinkJS 1.2 中文文档
end('not found'); } }) JavaScript 常⽤用⽅方法 isPost() 当前是否是 post 请求 isAjax() 是否是 ajax 请求 ip() 获取请求⽤用户的 ip redirect(url) 跳转到⼀一个 url,返回⼀一个 pedding promise 阻⽌止后⾯面的逻辑继续执⾏行 echo(data) form_parse 。 可以在项⺫⽬目的 App/Conf/tag.js ⾥里指定⾏行为切⾯面 form_parse 对应的⾏行为进⾏行解析的⼯工作。如: ThinkJS ⽀支持表单⽂文件上传和 ajax ⽂文件上传 2 种⽅方式,解析后的数据放在 http.file 对象⾥里, Controller ⾥里直接使⽤用 file ⽅方法获取即可。 { "name": 单个表单⻓长度最⼤大值,默认为 2MB post_file_upload_path: APP_PATH + '/Runtime/Temp', // ⽂文件上传的临时⺫⽬目录 ⾼高级浏览器下⽀支持使⽤用 ajax 来上传单个⽂文件,如: js var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(e){ } xhr.open("POST"0 码力 | 104 页 | 1.29 MB | 1 年前3CakePHP Cookbook 2.x
CakePHP comes with a set of view helpers that make things like linking, form output, JavaScript and AJAX a snap. You can learn more about how to use them in Helpers, but what’s important to note here is single argument, which can be the request METHOD (get, put, post, delete) or some request identifier (ajax). It is not a way to check for specific posted data. For instance, $this->request->is('book') will presentational logic to be accessed and shared between views. One of the core helpers, JsHelper, makes AJAX requests within views much easier and comes with support for jQuery (default), Prototype and Mootools0 码力 | 1096 页 | 958.62 KB | 1 年前3
共 742 条
- 1
- 2
- 3
- 4
- 5
- 6
- 75