Allow Downloads from Websites with Browser Widget?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Allow Downloads from Websites with Browser Widget?
Hello!
In the (regular) Chrome browser, when you click on a file to download on a website, it asks you where you want to save the file, and proceeds with the download. When I try the same thing with LiveCode's Browser Widget, it does nothing, as far as I could tell. Is there a way to get LiveCode's Browser Widget to behave like the (regular) Chrome browser? (I'm running on a Windows 10 computer.)
-- Benjamin
In the (regular) Chrome browser, when you click on a file to download on a website, it asks you where you want to save the file, and proceeds with the download. When I try the same thing with LiveCode's Browser Widget, it does nothing, as far as I could tell. Is there a way to get LiveCode's Browser Widget to behave like the (regular) Chrome browser? (I'm running on a Windows 10 computer.)
-- Benjamin
Re: Allow Downloads from Websites with Browser Widget?
Hi Benjamin,
have you solved?
If yes, how?
Thank you in advance
Rocco
have you solved?
If yes, how?
Thank you in advance
Rocco
Re: Allow Downloads from Websites with Browser Widget?
Rocco,
I haven't solved this yet, but I spoke with the LiveCode team, and they are going to try to help me out. I'll post the solution, here, when I hear back.
-- Benjamin
I haven't solved this yet, but I spoke with the LiveCode team, and they are going to try to help me out. I'll post the solution, here, when I hear back.
-- Benjamin
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Allow Downloads from Websites with Browser Widget?
Until that you could simply use browserUnhandledLoadRequest, e.g.
Put the above into the script of the widget (or the script of the card containing the widget).
Code: Select all
on browserUnhandledLoadRequest pUrl
-- set download target:
set itemdel to slash
put item -1 of pURL into tF
set itemdel to comma
ask file "Download as:" with tF
if it is empty then exit browserUnhandledLoadRequest
-- download:
put url(pURL) into url("binfile:"&it)
end browserUnhandledLoadRequest
shiftLock happens
Re: Allow Downloads from Websites with Browser Widget?
Thanks, [-hh]! I'll give that a try!
--Benjamin
--Benjamin
Re: Allow Downloads from Websites with Browser Widget?
Hi!
Any luck?
Any luck?
Re: Allow Downloads from Websites with Browser Widget?
Hi bethoust,
[-hh] (Hermann Hoch) was a university professor for mathematics, so you bet he wrote it by himself.
Unfortunately he passed away earlier of this year, a very tragic loss.
Best
Klaus
[-hh] (Hermann Hoch) was a university professor for mathematics, so you bet he wrote it by himself.
Unfortunately he passed away earlier of this year, a very tragic loss.
Best
Klaus
Re: Allow Downloads from Websites with Browser Widget?
I keep finding snippets of Herman's code and he does have some pretty nice widgets still uploaded to a website. Clearly he was an extremely talented LC dev and a force for good (development). I didn't realise he'd passed away this year, very sad to hear that - a tragic loss indeed