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 1999 pour OWA) - Fetch API • Pas obligatoire d'avoir du JS, XML ni d'être asynchroné! ## AJAX • XHR est devenue la méthode standard jusqu'à 2018 – Popularisée par Google (GMaps, GMail, { $("button").click(function() { $("#div1").load("demo_test.txt"); });Let jQuery AJAX Change This Text
• Tester $ ^{12} $ • D'autres0 码力 | 11 页 | 91.09 KB | 2 年前3
《Slides Dev Web》 07. jQuery
CSS – Réponse aux évenements du navigateur - Effets visuels et animations - Requêtes et réponses Ajax • Abstraction implémentations différents navigateurs • Facile à apprendre • Utilisation du chaîne load, resize, scroll, unload • Exemple $(p).click(function() { // code à exécuter ici }); AJAX $ ^{5} $ • $(selector).load(URL, data, callback) - URL : Ressource ciblée par la requête - data callback : fonction de rappel avec 3 paramètres : 5thhttps://www.w3schools.com/jquery/jquery_ajax_load.asp * responseTxt * statusTxt * xhr • $.get(URL, callback) • $.post(URL, data, callback)0 码力 | 5 页 | 49.45 KB | 2 年前3
Apache Wicket 7.x Reference GuideSummary.....206 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.....222 19.4. Using an an activity indicator.....226 19.5. AJAX request attributes and call listeners.....227 19.6. Creating custom AJAX call listener.....229 19.7. Stateless AJAX components/behaviors.....234 19.8. Summary |wicket-extensions|Contains a vast set of built-in components to build a rich UI for our web application (Ajax support is part of this module).|wicket-core| |wicket-auth-roles|Provides support for role-based authorization0 码力 | 346 页 | 10.00 MB | 2 年前3
Apache Wicket 8.x Reference GuideSummary ..... 206 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 ..... 222 19.4. Using activity indicator ..... 226 19.5. AJAX request attributes and call listeners ..... 227 19.6. Creating custom AJAX call listener ..... 229 19.7. Stateless AJAX components/behaviors ..... 234 19 |wicket-extensions|Contains a vast set of built-in components to build a rich UI for our web application (Ajax support is part of this module).|wicket-core| |wicket-auth-roles|Provides support for role-based authorization0 码力 | 350 页 | 9.95 MB | 2 年前3
Apache Wicket 10.x Reference GuideSummary ..... 197 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 ..... 210 19.4. Using activity indicator ..... 213 19.5. Ajax request attributes and call listeners ..... 214 19.6. Creating custom Ajax call listener ..... 216 19.7. Stateless Ajax components/behaviors ..... 221 19 |wicket-extensions|Contains a vast set of built-in components to build a rich UI for our web application (Ajax support is part of this module).|wicket-core, wicket-tester| |wicket-auth-roles|Provides support for0 码力 | 336 页 | 7.16 MB | 2 年前3
Apache Wicket 9.x Reference GuideSummary ..... 196 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 ..... 209 19.4. Using activity indicator ..... 212 19.5. Ajax request attributes and call listeners ..... 213 19.6. Creating custom Ajax call listener ..... 215 19.7. Stateless Ajax components/behaviors ..... 220 19 |wicket-extensions|Contains a vast set of built-in components to build a rich UI for our web application (Ajax support is part of this module).|wicket-core| |wicket-auth-roles|Provides support for role-based authorization0 码力 | 335 页 | 7.15 MB | 2 年前3
Introducing Apache Wicketdeclare 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 it will have the priority over the other items. Url jqueyuiUrl = Url.parse("https://ajax.googleapis.com/ajax/libs/" + "jqueryui/1.10.2/jquery-ui.min.js"); UrlResourceReference jqueryuiRef includes all the bundle resources. ## APACHE WICKET $ ^{™} $ ## AJAX support ## “Transparent” AJAX ## APACHE 😜 WICKET ™ Wicket simplifies AJAX development controlling via Java the following basic operations:0 码力 | 53 页 | 1.85 MB | 2 年前3
RxJS TutorialConditional Operators ..... 24 Multicasting Operators ..... 25 Error Handling Operators ..... 26 ajax ..... 26 from ..... 27 fromEvent ..... 28 fromEventPattern ..... 29 interval ..... 30 of 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 an 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 an0 码力 | 106 页 | 1.56 MB | 2 年前3
廖雪峰JavaScript教程6.2 操作DOM 6.2.1 更新DOM 6.2.2 插入DOM 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 查找和过滤 好处要等到后面学了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' function (err, result) { 6. if (err) { 7. return handle(err); 8. } 9. ajax('http://url-3', data3, function (err, result) { 10. if (err) { 11.0 码力 | 264 页 | 2.81 MB | 1 年前3
ThinkJS 1.2 中文文档post(key) 获取 post 参数值 file(key) 获取 file 参数值 isGet() 当前是否是 get 请求 isPost() 当前是否是 post 请求 - isAjax() 是否是 Ajax 请求 ip() 获取请求用户的 ip • redirect(url) 跳转到一个 url,返回一个 pedding promise 阻止后面的逻辑继续执行 • echo(data) 输出数据,会自动调用 // 返回的可以是个 promise } module.exports = { form_parse: [xmlParse] } ## 上传的文件 ThinkJS 支持表单文件上传和 Ajax 文件上传 2 种方式,解析后的数据放在 http.file 对象里,Controller 里直接使用 file 方法获取即可。 表单文件上传 表单文件上传可以指定如下的配置参数: js post_max_file_size: 单个表单长度最大值,默认为 2MB post_file_upload_path: APP_PATH + '/Runtime/Temp', // 文件上传的临时目录 ## ajax 文件上传 高级浏览器下支持使用 ajax 来上传单个文件,如: js var xhr = new XMLHttpRequest(); xhr.onreadstatechange = function(e) {0 码力 | 104 页 | 1.29 MB | 2 年前3
共 752 条
- 1
- 2
- 3
- 4
- 5
- 6
- 76
相关搜索词













