Maybe I just forgot something here, but I simply can't get data from internet to my field.
I have a button on my card. The code for my button;
Code: Select all
on mouseUp
load URL "host/someText.html" with message "doneLoading"
end mouseUp
Code: Select all
on doneLoading
answer "The URL is finished downloading."
end doneLoading
I've been trying to output the result into a field called "content" as well, with this code:
Code: Select all
put URL "host" into field "content"
"host" here is the whole url of course, but I'm not allowed to post URLs here in the forum it seems, not even to example. com
Any ideas of what I am doing wrong here?