Can't get data from internet
Posted: Sat Mar 04, 2017 2:37 pm
Hi again,
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;
The code in my card. I moved the code to the stack code as well, without success.
^^ never runs.
I've been trying to output the result into a field called "content" as well, with this code:
It worked once, and I got some cryptic message in field "content" with "success" in the beginning. But after that one time - nothing.
"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?
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?