Search In This Website

Rabu, 13 Mei 2026

Membuat Daftar Buku Dengan Ajax

Tujuan Pembelajaran

  • Menerapkan HTTPRequest dengan memanfaatkan file "books.xml". 
  • Menampilkan data buku-buku dari file XML ke dalam table HTML.

Rencana Pembelajaran

Menerapkan HTTPRequest dengan melibatkan:
  • Satu file HTML (listbooks.html) + JavaScript (listbooks.js).
  • Satu file XML (books.xml).
  • Menggunakan "Code Editor - Compiler & IDE by Rhythm Software" selanjutnya akan disebut Code Editor saja.

Langkah

  1. Buka Code Editor. 


  2. Dengan demikian file "books.xml" harus disiapkan terlebih dahulu ke folder yang sama atau yang dapat diakses dengan mudah oleh program Ajax. Ketik source code di bawah ini :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
        <book category="PROGRAMMING">
            <title lang="en">
                Basis Data
            </title>
           <author>Andi Sunyoto</author>
            <year>2008</year>
            <price>30.000</price>
        </book>   
       <book category="MANAJEMEN">
          <title lang="en">Strategic Management</title>
           <author>Raymond Mc.Leod</author>
            <year>2010</year>
           <price>290.999</price>
       </book> 
        <book category="WEB">
           <title lang="en">Pemrograman Internet </title>
           <author>Andi Sunyoto, Andri Kurniawan, Prasetyo Adi, James Linn, Ginanjar Kusumo</author>
           <year>2009</year>
            <price>100.000</price>
        </book>   
       <book category="WEB">
           <title lang="en">Belajar XML</title>
            <author>Patria Adi</author>
            <year>2010</year>
           <price>40.950</price>
        </book>
    </bookstore> 

  3. Simpan dengan nama path dan file (ajax/books.xml). Tap icon button File di kanan atas lalu Tap Save As.

  4. Contoh penggunaan tampilan daftar data dari file XML dengan XMLHttpRequest menggunakan Javascript.
    Basis Data Andi Sunyoto
    Strategic ManagementRaymond Mc.Leod
    Pemrograman Internet Andi Sunyoto, Andri Kurniawan, Prasetyo Adi, James Linn, Ginanjar Kusumo
    Belajar XMLPatria Adi

  5. Ketik source code di bawah ini dan simpan dengan nama path dan file (ajax/listbooks.js). var xmlhttp;
    function loadXMLDoc(url)
    {
      xmlhttp= null;
    //Mozilla, etc
    if (window.XMLHttpRequest)
    {
       xmlhttp = new XMLHttpRequest();
    }
       
    //IE
    else  if (window.ActiveXObject)
    {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (xmlhttp!=null) {
       xmlhttp.onreadystatechange=onResponse;
        xmlhttp.open("GET",url,true);
        xmlhttp.send(null);
    } else {
        alert("Browser tidak support XMLHTTP");
    }
    }
    function checkreadystate(obj) {
        if(obj.readyState == 4) {
           if(obj.status == 200) {
               return true;
          } else {
                alert("Problem retrieving XML Data.");       }
         }


    function onResponse() {
        if (checkreadystate(xmlhttp)) {
            var response = xmlhttp.responseXML.documentElement;
           txt = "<table border='1'>";
            x = response.getElementsByTagName("book");
       for (i=0;i<x.length;i++) { 
       txt = txt +"<tr>";
             xx = x[i].getElementsByTagName("title");     {
           try {
                txt = txt + "<td>" + xx[0].firstChild.data + "</td>";
           } catch(er) {
               txt = txt + "<td></td>";
           }
      } 
       xx = x[i].getElementsByTagName("author");   try {
          txt = txt + "<td>" + xx[0].firstChild.data + "</td>";
      } catch (er) {
              txt = txt + "<td></td>";
        }
       txt = txt + "</tr>";
       }
       txt = txt + "</table>";
        document.getElementById('copy').innerHTML = txt;
    }
    }
  6. Ketik source code di bawah ini dan simpan dengan nama path dan file (ajax/listbooks.html).
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>List Books</title>
    <script type="text/javascript" src="listbooks.js"></script>
    </head>
    <body onload="loadXMLDoc('books.xml');">>
    <div id="copy"></div>
    </body>
    </html>
  7. Buka browser, lalu tampilkan output ke dalam browser. 


Catatan


Selasa, 12 Mei 2026

Simple Ecommerce Website Navigation Diagram In Plant UML

Simple Ecommerce Website Navigation Diagram Or Simple Ecommerce Website Structure Or Simple Ecommerce Site Map

E-commerce Website Navigation Diagram similar to E-commerce Website Structure similar to E-commerce Website Site Map use to help each user ( for example consumer, customer, seller, etc ) to find all required pages to work in e-commerce activity.

This following e-commerce website navigation diagram example in PlantUML file ( save as ecommerceNavigationDiagram.puml ). You can use plantuml editor or text editor
/' License: 
 Creately Desktop - End User License Agreement (EULA)  
 PlantUML is GNU General Public License as published by the Free Software Foundation, either version 3 of the License.
'/
@startwbs
*(a) Home
**(b) "view\n products"
**(c) Login
***(g) profile
***(h) settings
**(d) shop now
**(e) view cart
**(f) checkout
*** Login
****(i) payment
@endwbs

Output

Simple E-commerce Site Map Example


Bibliography

https://creately.com/
https://developers.google.com/
https://www.markdownguide.org/
https://plantuml.com/
https://www.visual-paradigm.com/

Rabu, 29 April 2026

Ordered List In HTML

Type this following website source code in website editor:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Exercise Ordered List In HTML</title>
</head>

<body>
<h3 style="text-align: left;">Upper Alphabet</h3>
Nature Herbs In HTML
<ol type="A">
    <li>Aloe Vera</li>
    <li>Arnica</li>
    <li>Black Pepper</li>
    <li>Cinnamon</li>
    <li>Clove</li>
    <li>Mint</li>
    <li>Oregano</li>
    <li>Rosemary</li>
    <li>Sage</li>
    <li>Thyme</li>
    <li>Yarrow</li>
</ol>
<h3 style="text-align: left;">Lower Alphabet</h3>
Travel CheckList In HTML
<ol type="a">
    <li>Passport, Ticket And Visa.</li>
    <li>Book Flight Early.</li>
    <li>Travel Insurance.</li>
    <li>Copies Of Documents.</li>
    <li>Make A Light Packing List.</li>
    <li>Notify Your Bank.</li>
    <li>Check Out The Culture.</li>
</ol>

Under this line is the output on the browser.


Upper Alphabet

Nature Herbs In HTML
  1. Aloe Vera
  2. Arnica
  3. Black Pepper
  4. Cinnamon
  5. Clove
  6. Mint
  7. Oregano
  8. Rosemary
  9. Sage
  10. Thyme
  11. Yarrow

Lower Alphabet

Travel CheckList In HTML
  1. Passport, Ticket And Visa.
  2. Book Flight Early.
  3. Travel Insurance.
  4. Copies Of Documents.
  5. Make A Light Packing List.
  6. Notify Your Bank.
  7. Check Out The Culture.

Notes

The text above only for sample text. Ask the expert about the content for guidance.


<< back to Learn HTML

Bibliography

https://medium.com/
https://www.geeksforgeeks.org/
https://www.tutorialspoint.com/
https://www.w3.org/
https://www.w3schools.com/

Minggu, 26 April 2026

Document Vocabularies In Chinese Language

Several Document Terminologies:
  • 长话费 : Cháng Huà Fèi : : Long Distance Phone Bill.
  • 存折 : Cún Zhé :: Passbook / Bankbook.
  •  登机牌 : Dēng Jī Pái :: Boarding Pass.
  • 电费 : Diàn Fèi : : Electricity Bill.
  • 电话费 : Diàn Huà Fèi : : Telephone Bill.
  • 地址 : Dì Zhǐ : : Address.
  • 飞机票 : Fēi Jī Piào :: Airline Ticket.
  • 公文 : Gōng Wén : : Document.
  • 国际邮件 : Guó Jì Yóu Jiàn : : International Mail.
  • 国内邮件 : Guó Nèi Yóu Jiàn : : Domestic Mail.
  • 海关申报表 : Hǎi Guān Shēn Bào Biǎo :: Custom Declaration Form.
  • 航空信 : Háng Kōng Xìn : : Airmail.
  • 贺卡 : Hè Kǎ : : Greeting Card.
  • 活期存款 : Huó Qī Cún Kuǎn : : : Savings Account / Demand Deposit.
  • 健身卡 : Jiàn Shēn Kǎ : : Fitness Card.
  • 明信片 : Míng Xìn Piàn : : Postcard.
  • 民族 : Mín Zú :: Ethnicity.
  • 年龄 : Nián Líng :: Age.
  • 燃气费 : Rán Qì Fèi : : Gas Bill.
  • 市话费 : Shì Huà Fèi : : Local Phone Bill.
  • 水费 : Shuǐ Fèi : : Water Bill.
  • 文件 : Wén Jiàn : : Document / File.
  • 信件 : Xìn Jiàn : : Letter.
  • 性别 : Xìng Bié :: Gender.
  • 姓名 : Xìng Míng :: Name 
  • 银行卡 : Yín Háng Kǎ :: Bank Card.
  • 帐单 : Zhàng Dān : : Bill.

Related Post

Jumat, 24 April 2026

Baidu IME Keyboard Terminologies

百度输入法 

Bǎi Dù Shū Rù Fǎ

Baidu IME (Input Method Editor) Keyboard

  • 按词分 : Àn Cí Fēn : Divide By Word.
  • : Bàn : Half.
  • 常用语 : Cháng Yòng Yǚ : Common Expression, Common Phrase.
  • 单手摸式 : Dān Shǒu Mō Shì : One Handed Touch.
  • 登录 : Dēng Lù : To Register / To Login.
  • 定制工具栏 : Dìng Zhì Gōng Jù Lán :  Toolbar Setup.
  • 多语言设置 : Duō Yǔ Yán Shè Zhì : To Setup Multi Language.
  • 繁体字 : Fán Tǐ Zì : Traditional Chinese Character.
  • 返回 : Fǎn Huí : Back.
  • : Fēn : To separate, Part.
  • 分詞 :Fēn Cí : Word segmentation.
  • : Fú : Symbol or Sign.
  • 符号 : Fú Hào : Symbol or Sign.
  • 复制 : Fù Zhì : Copy / Duplicate.
  • 更多 : Gèng Duō : Further, Much More, Advanced, Multi Function.
  • 更多设置 : Gèng Duō Shè Zhì : Advanced Setup.
  • 关闭 : Guān Bì : Close.
  • 滑行输入 :Huá Xíng Shū Rù : Glide / Swift / Slide Input.
  • 键盘手写 : Jiàn Pán Shǒu Xiě : Keyboard Handwriting.
  • 剪切 : Jiǎn Qiē : To Cut ( the text ).
  • 简体輸入 : Jǐan Tǐ Shū Rù : Simplified Chinese Input.
  • 简体字 : Jǐan Tǐ Zí : Simplified Chinese Character.
  • 貼板 : Jiǎn Tiē Bān : Clipboard.
  • 接字分 : Jiē Zì Fēn : Divide By Letter Or Character.
  • 链接 : Liàn Jiē : Web Page Link, Website Hyperlink 
  • 立即下载 : Lì Jí Xià Zǎi : Download Immediately ( Now ).
  • 面板谓节 : Miàn Bǎn Wèi Jié : Panel Section.
  • 默认分组 : Mò Rèn Fēn Zǔ : Default Group.
  • 普通话 : Pǔ Tōng Huà : Ordinary Speech.
  • 前住 :Qián Zhù :Proceed, Move Forward, Go Ahead.
  • 请空 : Qǐng Kòng : Please Empty The Typing Suggestion.
  • :Quán : Whole, Entire.
  • 全部 : Quán Bù : Whole, All.
  • 全选 : Quán Xuǎn : Select All.
  • 確認 : Què Rèn : To confirm, to verify ( input ).
  • 收藏 : Shōu Cáng : Favorites.
  • 输入万式 : Shū Rù Wàn Shì : Input Methods.
  • 数字 : Shù Zì : Figure, Numeral, Digit, Number.
  • 说完了 : Shuō Wán Le : Finish Speaking, That Is All.
  • 搜索 : Sōu Suǒ : To Search.
  • 添加常用语 :  Tiān Jiā Cháng Yòng Yǚ : Add Common Phrase.
  • 推荐 : Tuī Jiàn : Recommendation.
  • 文本 : Wén Běn : Text.
  • 文字扫描 : Wén Zì Sǎo Miáo : Photo Text Scanning.
  • 下一項 :Xià Yī Xiàng : Next Item.
  • 悬浮键盘 : Xuán Fú Jiàn Pán : Floating keyboard
  • 选择 : Xuǎn Zé : To select, To pick.
  • 夜间摸式 : Yè Jiān Mō Shì : Night Time Mode.
  • 英( 文 ): Yīng (Wén) : English Letters.
  • 语音 : Yǔ Yīn : Speech Sound, Voice Message.
  • 粘貼 : Zhān Tiē : To paste.
  • 中( 文 ) : Zhōng (Wén) or Chinese Language Input.
  • 自由写 :Zì Yóu Xiě : Options To Write.
  • 最近 : Zuï Jìn : Recent.



go to Learn Android Smartphone >

Rabu, 22 April 2026

Stationery In Chinese Language

文具 ( Wén Jù ) Stationery

HanZi:PinYin:ZhuYin:English

笔记本 : Bǐ Jì Běn : ㄅㄧˇ ㄐㄧˋ ㄅㄣˇ : Notebook.

笔芯 : Bǐ Xīn : Pencil Lead / Pen Refill.

标签 : Biāo Qiān : : Label.

词典 : Cí Diǎn : ㄘˊ ㄉㄧㄢˇ : Dictionary.

尺子 : Chǐ Zi : ㄔˇ ㄗ· : Ruler.

打孔机 : Dǎ Kǒng Jī :: Hole Puncher / Punch Holer.

打孔器 : Dǎ Kǒng Qì : Hole Puncher/ Punch Holer.

订书机 : Dìng Shū Jī : Stapler. 

订书 钉:Dīng Shū Dīng : Staples 

粉笔 : Fěn Bǐ : ㄈㄣˇ ㄅㄧˇ : Chalk.

钢笔 : Gāng Bǐ : ㄍㄤ ㄅㄧˇ : Pen, Fountain Pen.

黑斑擦子 : Hēi Bǎn Cā Zi : ㄏㄟ ㄅㄢˇ ㄘㄚ ㄗ : Eraser / Duster.

夹子 : Jiā Zi : : (Binder) Clip.

剪刀 : Jiǎn Dāo : : Scissors.

胶水 : Jiāo Shuǐ : ㄐㄧㄠ ㄕㄨㄟ ˇ: Glue.

卷笔刀 : Juǎn Bǐ Dāo : : Pencil Sharpener.

蜡笔 : Là Bǐ : ㄌㄚˋ ㄅㄧˇ : (Wax) Crayon.

课本 : Kè Běn : ㄎㄜˋ ㄅㄣˇ : Text Book.

毛笔 : Máo Bǐ : ㄇㄠˊ ㄅㄧˇ : Painting Brush / Writing Brush / Calligraphy Brush.

墨水 (儿) : Mò Shuǐ (r) : ㄇㄛˋ ㄕㄨㄟˇ  ㄦ : (Pen) Ink.

墨汁 : Mò Zhī : : Chinese Calligraphy Ink / Prepared Chinese Ink.

铅笔 : Qiān Bǐ :ㄑㄧㄢ ㄅㄧˇ : Pencil.

铅笔刀 : Qiān Bǐ Dāo : ㄑㄧㄢ ㄅㄧˇ ㄉㄠPencil Sharpener.

曲别针 : Qū Bié Zhēn : Paper Clips.

日历 : Rì Lì : ㄖˋ ㄌㄧˋ : Calendar.

三角尺 : Sān Jiǎo Chǐ : ㄥㄢ ㄐㄧㄠˇ ㄔˇ: Set Square Ruler.

书包 : Shū Bāo : ㄕㄨ ㄅㄠ : School Bag.

书本 : Shū Běn : ㄕㄨ ㄅㄣˇ : Book.

水彩笔 : Shuǐ Cǎi Bǐ : : Watercolors Marker / Colored Marker.

透明胶 : Tòu Míng Jiāo : : Adhesive Tape.


图钉 : Tú Dīng : : Thumbtack.

图画本 : Tú Huà Běn : : Drawing Book.

文件夹 : Wén Jiàn Jiā : : Folder.

文具盒 : Wén Jù Hé : : Pencil Case.

橡皮 : Xiàng Pí : ㄒㄧㄤˋ ㄆㄧˊ : Eraser / Rubber.

小刀 : Xiǎo Dāo : : (Small) Knife.

修正液 : Xiū Zhèng Yè : ㄒㄧㄡ ㄓㄥˋ ㄧㄝˋ : Correction Fluid.

颜色笔 : Yán Sè Bǐ : ㄧㄢˊ ㄙㄜˋ ㄅㄧˇ : Color Pencil.

印泥 : Yín Ní : Stamp Paste / Stamp Pad.

印章 : Yín Zhāng : : Seal / Stamp.

荧光笔 : Yíng Guāng Bǐ : : Highlighter Pen.

圆规 : Yüán Guī : ㄩㄢˊ ㄍㄨㄟ : Compasses.

圆珠笔 : Yuán Zhū Bǐ : ㄩㄢˊ ㄓㄨ ㄅㄧˇ : Balpoint Pen.

账本 : Zhàng Běn : : Account Book / Ledger

纸张 : Zhǐ Zhāng : ㄓˇ ㄓㄤ : Paper.

自动铅笔 : Zì Dòng Qiān Bǐ : Automatic Mechanical Pencil.

转笔刀 : Zhuàn Bǐ Dāo : : Pencil Sharpener.





Mental Math Multiply Two Numbers With Same Tens And Sum Of Ones Is Ten

Previous Requirement Lessons

Basic Number Operation Vocabulary 1

Number Place Value In Mathematics

General Condition:

  • Two factor numbers has same tens in number place value.
  • Two factor numbers has sum of ones are tens.

Learning Direction

  • Student can find the product number more simplified.
  • Student get more understand for mathematics concept with practice the following examples.

Method 1 Example

82 × 88 = ...

  • Factor numbers in this example are 82 and 88.
  • Multiplication sign is ( × ).
  • Equal sign is ( = ).
  • Product number in this example is ( ... ).

First Step

Split tens with ones for each factor numbers.

82 × 88 = ( 80 + 2 ) × ( 80 + 8 )

Second Step

Multiply ones digit factor (last number) with the other ones digit factor (last number). If the product number in this step only result in ones digit, add zero in the tens number place value.

82 × 88 = ... ( 2 × 8 )

82 × 88 = ... 16

Third Step

Multiply the tens digit factor with the other ten digits factor.

82 × 88 = ( 80 × 80 ) + 16

82 × 88 = 6400 + 16

Fourth Step

Multiply the tens digit with 10.

82 × 88 = 6400 + ( 80 × 10 ) + 16

Result Step

Adding all the result from the previous step with the result in the previous step

82 × 88 = 6400 + 800 + 16

82 × 88 = 7216

Method 2 Example

71 × 79 = ...

  • Factor numbers in this example are 71 and 79.
  • Multiplication sign is ( × ).
  • Equal sign is ( = ).
  • Product number in this example is ( ... ).

First Step

Split tens with ones for each factor numbers.

71 × 79 = ( 70 + 1 ) × ( 70 + 9 )

Second Step

Multiply ones digit factor (last number) with the other ones digit factor (last number). If the product number in this step only result in ones digit, add zero in the tens number place value.

71 × 79 = ... ( 1 × 9 )

71 × 79 = ... 9

71 × 79 = ... 09

Third Step

Add result split tens ( from first step ) with 10 number then multiply with result split tens.
71 × 79 = [ ( 70 + 10 ) × 70 ] 09
71 × 79 = [ 80 × 70 ] 09
71 × 79 = 5609

Method 3 Example

56 × 54 = ...

  • Factor numbers in this example are 56 and 54.
  • Multiplication sign is ( × ).
  • Equal sign is ( = ).
  • Product number in this example is ( ... ).

First Step

Multiply ones digit factor (last number) with the other ones digit factor (last number). If the product number in this step only result in ones digit, add zero in the tens number place value.

56 × 54 = ... ( 6 × 4 )

56 × 54 = ... 24

Second Step

Ten factorisation with tens from second digit.
56 × 54 = [ 50 × 50 ] + 24

56 × 54 = [ 50 × ( 5 × 10 ) ] + 24

Third Step

Adding tens from second digit with one.

56 × 54 = [ 50 × ( 5 × 10 ) ] + 24

56 × 54 = [ 50 × ( [ 5 + 1 ] × 10 ) ] + 24

Fourth Step

Multiply the tens result from previous step with ten.

56 × 54 = [ 50 × ( 6 × 10 ) ] + 24

56 × 54 = [ 50 × 60 ] + 24

Fifth Step

Multiply the tens number with the number from the previous result.
56 × 54 = [ 50 × 60 ] + 24
56 × 54 = 3000 + 24
56 × 54 = 3024

Exercise

  • 23 × 27 =
  • 34 × 36 =
  • 89 × 81 =
  • 12 × 18 =
  • 78 × 72 =

Bibliography

https://byjus.com/

https://www.ck12.org/

https://www.mathnasium.com/

https://www.splashlearn.com/

https://www.wikihow.com/