Skip to content

Commit 56d255d

Browse files
save file
1 parent ecd38b3 commit 56d255d

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

blog/25-07-31/xml-http-request/xml-http-request.html

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
</title>
1919

2020
<meta name=description content='Learn how to use XMLHttpRequest to send and receive HTTP requests in JavaScript. This guide covers setup, request methods, response handling, and practical examples for AJAX-style communication.'>
21-
<link rel=icon type='image/png' href='/blog/image/blog-30.png'>
22-
<meta name=viewport content='width=device-width, initial-scale=1'>
2321

2422
<base href='https://ext-code.com/blog/25-07-31/xml-http-request/'>
2523
<link rel=canonical href='https://ext-code.com/blog/25-07-31/xml-http-request/xml-http-request.html'>
2624

27-
28-
<script type='application/ld+json'>
25+
<link rel=icon type='image/png' href='/blog/image/blog-30.png'>
26+
<meta name=viewport content='width=device-width, initial-scale=1'>
2927

28+
<script type='application/ld+json'>
3029
{
3130
"@context" : "https://schema.org",
3231
"@type" : "TechArticle",
@@ -38,24 +37,14 @@
3837
"mainEntityOfPage" : {"@type":"WebPage","@id":"https://ext-code.com/blog/25-07-31/xml-http-request/xml-http-request.html"},
3938
"publisher" : {"@type":"Organization","name":"Your Blog or Company Name","logo":{"@type":"ImageObject","url":"https://ext-code.com/favicon.ico"}},
4039
}
41-
4240
</script>
43-
<!--
44-
"image" : "https://yourdomain.com/images/http2-nodejs-demo.png"
45-
-->
46-
47-
48-
<!--
49-
//:
50-
-->
5141

5242

5343
<script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script>
5444

5545

5646
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
5747

58-
5948
<script init>
6049
console.clear();
6150
console.log('xml-http-request.html');
@@ -101,9 +90,9 @@
10190
ex['upload-server'] = mod['upload-server'];
10291
ex['xhr-download'] = mod['xhr-download'];
10392
ex['download-server'] = mod['download-server'];
104-
terminal = mod.terminal;
105-
webconsole = mod.console;
106-
log = mod.log;
93+
terminal = mod['web-terminal']
94+
webconsole = mod['web-console'];
95+
log = mod['log-mod'];
10796

10897
ex['xhr-upload'].initmod({ext,$,menu,ace});
10998
ex['upload-server'].initmod({ext,$,menu,ace});
@@ -162,7 +151,6 @@
162151

163152
]);
164153

165-
166154
mod.stack.complete;
167155

168156
})();
@@ -255,7 +243,7 @@
255243

256244
<body>
257245

258-
<blog-hdr component=grp1 v2.0>
246+
<blog-hdr component=grp1>
259247
<h1 class=title>
260248
Using XMLHttpRequest in Modern JavaScript
261249
</h1>
@@ -346,8 +334,8 @@ <h1 class=title>
346334

347335
</div view>
348336

349-
<terminal component v2.0></terminal>
350-
<console component v2.0></console>
337+
<web-terminal component></web-terminal>
338+
<web-console component></web-console>
351339
</div demo>
352340

353341

@@ -364,36 +352,36 @@ <h1 class=title>
364352
<span id=hash>
365353
</span>
366354
</div>
367-
<editor id=xhr-upload component v2.0 fullsize mode=html src='ex/xhr-upload.html'></editor>
355+
<web-editor id=xhr-upload fullsize mode=html src='ex/xhr-upload.html' component></web-editor>
368356
</div>
369357

370358

371359
<section class=file>
372360
<div class=filename>
373361
upload-server.js
374362
</div>
375-
<editor id=upload-server component v2.0 fullsize src='ex/upload-server.js'></editor>
363+
<web-editor id=upload-server fullsize src='ex/upload-server.js' component></web-editor>
376364
</section>
377365

378366

379367
<section class=file>
380368
<div class=filename>
381369
xhr-download.html
382370
</div>
383-
<editor id=xhr-download component v2.0 fullsize mode=html src='ex/xhr-download.html'></editor>
371+
<web-editor id=xhr-download fullsize mode=html src='ex/xhr-download.html' component></web-editor>
384372
</section>
385373

386374

387375
<section class=file>
388376
<div class=filename>
389377
download-server.js
390378
</div>
391-
<editor id=download-server component v2.0 fullsize src='ex/download-server.js'></editor>
379+
<web-editor id=download-server fullsize src='ex/download-server.js' component></web-editor>
392380
</section>
393381

394382

395383

396-
<log component v2.0></log>
384+
<log-mod component></log-mod>
397385

398386
</body>
399387

0 commit comments

Comments
 (0)