HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
This is the HTML source
This is the HTML source:
<<!DOCTYPE html>
<html lang="en-US">
<link rel="stylesheet" href="/w3css/4/w3.css">
<script src="/appml/2.0.3/appml.js"></script>
<body>
<div class="w3-container" appml-data="appml?model=model_cd_from_json">
<h1>CD Collection</h1>
<h3>Extracted from a JSON text file</h3>
<div appml-include-html="inc_listcommands_nofilter.htm"></div>
<table
class="w3-table-all">
<tr>
<th>Title</th>
<th>Artist</th>
<th>Price</th>
</tr>
<tr appml-repeat="records">
<td>{{Title}}</td>
<td>{{Artist}}</td>
<td>{{Price}}</td>
</tr>
</table>
</div>
</body>
</html>
This is the model used in the application:
{
"rowsperpage" : 7,
"data" : {
"type" : "jsonfile",
"filename" : "cd_catalog.js",
"record" : "cd",
"items"
: [
{"name" : "Title", "nodename" : "title"},
{"name"
: "Artist", "nodename" : "artist"},
{"name" : "Price",
"nodename" : "price"}
]
}
}
This is the JSON file:
{
"cd" : [
{ "title" : "Empire Burlesque", "artist" : "Bob Dylan",
"price" : "10.90" },
{ "title" : "Hide your heart", "artist" :
"Bonnie Tyler", "price" : "9.90" },
{ "title" : "Greatest Hits",
"artist" : "Dolly Parton", "price" : "9.90" },
{ "title" : "Still got
the blues", "artist" : "Bob Dylan", "price" : "10.20" },
{ "title" :
"Eros", "artist" : "Eros Ramazzotti", "price" : "9.90" },
{ "title" :
"One night only", "artist" : "Bee Gees", "price" : "10.90" },
{
"title" : "Sylvias Mother", "artist" : "Dr.Hook", "price" : "8.10" },
{ "title" : "Maggie May", "artist" : "Rod Stewart", "price" : "8.50" },
{ "title" : "Empire Burlesque", "artist" : "Bob Dylan", "price" :
"10.90" },
{ "title" : "Hide your heart", "artist" : "Bonnie Tyler",
"price" : "9.90" },
{ "title" : "Greatest Hits", "artist" : "Dolly
Parton", "price" : "9.90" },
{ "title" : "Still got the blues",
"artist" : "Bob Dylan", "price" : "10.20" },
{ "title" : "Eros",
"artist" : "Eros Ramazzotti", "price" : "9.90" },
{ "title" : "One
night only", "artist" : "Bee Gees", "price" : "10.90" },
{ "title" :
"Sylvias Mother", "artist" : "Dr.Hook", "price" : "8.10" },
{ "title"
: "Maggie May", "artist" : "Rod Stewart", "price" : "8.50" },
{
"title" : "Empire Burlesque", "artist" : "Bob Dylan", "price" : "10.90"
},
{ "title" : "Hide your heart", "artist" : "Bonnie Tyler", "price"
: "9.90" },
{ "title" : "Greatest Hits", "artist" : "Dolly Parton",
"price" : "9.90" },
{ "title" : "Still got the blues", "artist" :
"Bob Dylan", "price" : "10.20" },
{ "title" : "Eros", "artist" :
"Eros Ramazzotti", "price" : "9.90" },
{ "title" : "One night only",
"artist" : "Bee Gees", "price" : "10.90" },
{ "title" : "Sylvias
Mother", "artist" : "Dr.Hook", "price" : "8.10" },
{ "title" :
"Maggie May", "artist" : "Rod Stewart", "price" : "8.50" },
{ "title"
: "Empire Burlesque", "artist" : "Bob Dylan", "price" : "10.90" },
{
"title" : "Hide your heart", "artist" : "Bonnie Tyler", "price" : "9.90"
},
{ "title" : "Greatest Hits", "artist" : "Dolly Parton", "price" :
"9.90" },
{ "title" : "Still got the blues", "artist" : "Bob Dylan",
"price" : "10.20" },
{ "title" : "Eros", "artist" : "Eros
Ramazzotti", "price" : "9.90" },
{ "title" : "One night only",
"artist" : "Bee Gees", "price" : "10.90" },
{ "title" : "Sylvias
Mother", "artist" : "Dr.Hook", "price" : "8.10" },
{ "title" :
"Maggie May", "artist" : "Rod Stewart", "price" : "8.50" },
{ "title"
: "Empire Burlesque", "artist" : "Bob Dylan", "price" : "10.90" },
{
"title" : "Hide your heart", "artist" : "Bonnie Tyler", "price" : "9.90"
},
{ "title" : "Greatest Hits", "artist" : "Dolly Parton", "price" :
"9.90" },
{ "title" : "Still got the blues", "artist" : "Bob Dylan",
"price" : "10.20" },
{ "title" : "Eros", "artist" : "Eros
Ramazzotti", "price" : "9.90" },
{ "title" : "One night only",
"artist" : "Bee Gees", "price" : "10.90" },
{ "title" : "Sylvias
Mother", "artist" : "Dr.Hook", "price" : "8.10" },
{ "title" :
"Maggie May", "artist" : "Rod Stewart", "price" : "8.50" }
]
}