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=" &quote& "" &quote& " onclick=" &quote& \
     "liveCode.getURL('http://hyperhh.de/html5/"; & \
     "SundayGameNb2-8.0.2.zip');return false;" &quote& \
     ">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

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to