I am learning a bit of getting data from Internet in a CSV format for a weather app following Cyril Pruszko
guide from here: https://sites.google.com/a/pgcps.org/li ... me/mashups but I am a bit lost ...
I can not manage to load an image from a URL into an image field or area, here is my code:
"the code is on the button script"
Code: Select all
on mouseUp
put url "http://api.worldweatheronline.com/free/v2/weather.ashx?q=Montreal&format=csv&num_of_days=5&date=2015-05-16&key=XXXXXKey" into field "weather"
//XXXXXKey is my API key
put item 2 of line 12 of field "weather" into field "temp"
put item 6 of line 12 of field "weather" into field "sky"
put item 5 of line 12 of field "weather" into field "imgURL"
put item 1 of line 1 of field "imgURL" into image "Skyimg"
end mouseUpI tried using URL like this: put URL of field "imgURL" into image "Skyimg" but nothing
Thanks!