I would like to create a webpage that gets external information, and display the count number in number of images. For example: if it gets 10 it will display 10 cups of water.
What will be the best way to do it?
Thanks!
Shai.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To add to @HasanTahsin’s answer, using jQuery (It’s easier than pure javascript):
n is in your example 10.
For external information you will need some server side client (PHP, python, etc) to do the select for you. You can call this via ajax,again using jQuery it’s as easy as
$.get()Here is an example.