I'm having trouble using get (or load) to load a URL and put the results in a container.
Using this code:
Code: Select all
on mouseUp
put the text of field "miURL" Into theURL
get URL (theURL)
put it into theWebPageContent
put the result into theError
if theError is empty then
set the text of field "Contenido" to theWebPageContent
else
set the text of field "Contenido" to "An error occurred:" && theError & "."
end if
end mouseUp
the URL is correctly spelled starting with http using google website
Currently I'm developing using Windows 7.
So far, I have tried the following:
Enabled LiveCode Community 7.0 in Windows firewall.
Disabled Windows Firewall
Disabled AV software
Checked host file
Checked "Internet" is included for a standalone app
Lots of web search...
But, if I use the following code:
Code: Select all
on mouseUp
put the text of field "miURL" Into theURL
put hostNameToAddress(theURL) into field "Contenido"
end mouseUp
the result is all googles ip addresses without error...
What am I doing wrong? the same problems occur if I use LOAD or PUT instead of GET.
Any help is appreciated!!