Source

htraf-packaging / demo / examples10 / param.html

<!DOCTYPE html>
<html>
<head>
    <title>Query string parameters handling</title>
    <script type="text/javascript" src="/-/htraf/htraf.js"></script>
    <link type="text/css" rel="stylesheet" href="../css/htraf-02.css"/> 
</head>
<body>
    <h1>Use query string to get more departments (?school=bus for example)</h1>

    <h3>Select School</h3>
    <select id="school" data-htsql="/school{code, name}"></select>

    <h3>Departments</h3>
    <table id="department"
        data-htsql="/department{code, name, school.name}
                   ?school=$school|school.name~$_school"
        data-ref="school _school">
    </table>
</body>
</html>