'Where to start blockchain career learning
I just want to learn Blockchain and have a career on it,I know learning solidity will be helpful, but where do I start, can I directly learn those, or should i learn html css js first, and after solidity what next, can someone say me a clear path please
Solution 1:[1]
You will have to change multiple things to make this work.
- Separate endpoint into html endpoint and web-service endpoint.
@app.route("/table_list")
def table_list():
return render_template("index.html")
@app.route("/get_list")
def get_list():
position_list = ["a", "b", "c", "d"]
return make_response({"output": position_list})
- Change the html for table
<table>
<tbody id="data">
<tr id="data_table">
</tr>
</tbody>
</table>
- Change the html template to keep calling get_list and refresh the html
</body>
<script>
setInterval(function () {
let myRequest = new Request('/get_list');
fetch(myRequest).then(response => response.json()).then(function (data) {
let data_table = document.getElementById("data_table");
data_table.innerHTML = "";
for (let d in data['output']) {
data_table.innerHTML += `<td>${data['output'][d]}</td>`
}
});
}, 1000);
</script>
</html>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
