Click Download in Browser Widget?
hh
hh at hyperhh.de
Mon Jun 12 06:13:17 EDT 2017
AFAIK, the file is downloaded, I don't know the place (probably
somewhere in /tmp). There is no downloadHandler as in revBrowser.
But if one has access to the page then the followong works here:
Use a javascriptHandler to get the file url and do the download
via LC's get url(<file>). For example:
on mouseUp
set the javascriptHandlers of widget "browser" to "getURL"
set htmltext of widget "browser" to \
"<html><body>" &cr& \
"<a href=" "e& "" "e& " onclick=" "e& \
"liveCode.getURL('http://hyperhh.de/html5/" & \
"SundayGameNb2-8.0.2.zip');return false;" "e& \
">SundayGameNb2</a>" &cr& \
"</body></html>"
end mouseUp
put in your card's or browser's script:
on getURL iSurf
put iSurf -- for testing
-- put url(iSurf) into url(<targetPath>)
end getURL
More information about the use-livecode
mailing list