[Gambas-user] WebDownload
Ingo
bm.530502 at gmail.com
Thu May 10 13:58:44 CEST 2018
Am 10.05.2018 um 11:28 schrieb Gianluigi:
>
>
> 2018-05-10 11:02 GMT+02:00 Ingo <bm.530502 at gmail.com
> <mailto:bm.530502 at gmail.com>>:
>
> Am 10.05.2018 um 09:57 schrieb Gianluigi:
>>
>>
>> 2018-05-10 9:38 GMT+02:00 Ingo <bm.530502 at gmail.com
>> <mailto:bm.530502 at gmail.com>>:
>>
>> Am 09.05.2018 um 23:13 schrieb Gianluigi:
>>>
>>>
>>> 2018-05-09 23:06 GMT+02:00 Ingo <bm.530502 at gmail.com
>>> <mailto:bm.530502 at gmail.com>>:
>>>
>>> Does anyone have a simple example for the class
>>> WebDownload working with a WbView?
>>> Thanks in advance.
>>> Ingo
>>>
>>>
>>> seHelpBuilder in the Software farm is based on WebView
>>> Regards
>>> Gianluigi
>>>
>>> --------------------------------------------------
>>>
>>> This is the Gambas Mailing List:
>>> https://lists.gambas-basic.org/listinfo/user
>>> <https://lists.gambas-basic.org/listinfo/user>
>>>
>>> Search the list:
>>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>>> <https://lists.gambas-basic.org/cgi-bin/search.cgi>
>>>
>>> Hosted by https://www.hostsharing.net
>>>
>>>
>>>
>>>
>>> --------------------------------------------------
>>>
>>> This is the Gambas Mailing List:
>>> https://lists.gambas-basic.org/listinfo/user
>>> <https://lists.gambas-basic.org/listinfo/user>
>>>
>>> Search the list:
>>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>>> <https://lists.gambas-basic.org/cgi-bin/search.cgi>
>>>
>>> Hosted byhttps://www.hostsharing.net
>> Hi Gianluigi,
>> thanks for that example. But I can't find the WebDownload -->
>> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload
>> <http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload>.
>>
>> Or did I miss something?
>>
>> Regards
>> Ingo
>>
>>
>> Ah ok, I attach the webbrowser project modified by Gianfry56 of
>> the Italian forum.
>> Regards
>> Gianluigi
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List:
>> https://lists.gambas-basic.org/listinfo/user
>> <https://lists.gambas-basic.org/listinfo/user>
>>
>> Search the list:
>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>> <https://lists.gambas-basic.org/cgi-bin/search.cgi>
>>
>> Hosted by https://www.hostsharing.net
>>
>>
>>
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List:
>> https://lists.gambas-basic.org/listinfo/user
>> <https://lists.gambas-basic.org/listinfo/user>
>>
>> Search the list:
>> https://lists.gambas-basic.org/cgi-bin/search.cgi
>> <https://lists.gambas-basic.org/cgi-bin/search.cgi>
>>
>> Hosted byhttps://www.hostsharing.net
> Thanks again.
> As I see the WebView_Download Event is triggered by the context
> menu i.e. "Save Image" is pressed.
> Maybe I don't understand the difference between this Event and the
> WebDownload class?!
>
> The goal is to download an image without the user having to intervene.
>
> Is it possible to force the download by code without user's
> interaction?
>
>
> Best regards
> Ingo
>
>
>
> I do not understand the question, can you explain me better?
> If you do not have a Download folder you can add this line of code to
> the Form_Open () procedure of WebBrowser:
> ---------
> If Not Exist(User.Home &/ "Download") Then Try Mkdir User.Home &/
> "Download"
> ---------
> Regards
> Gianluigi
>
>
>
>
>
> --------------------------------------------------
>
> This is the Gambas Mailing List:
> https://lists.gambas-basic.org/listinfo/user
> <https://lists.gambas-basic.org/listinfo/user>
>
> Search the list:
> https://lists.gambas-basic.org/cgi-bin/search.cgi
> <https://lists.gambas-basic.org/cgi-bin/search.cgi>
>
> Hosted by https://www.hostsharing.net
>
>
>
>
> --------------------------------------------------
>
> This is the Gambas Mailing List:
> https://lists.gambas-basic.org/listinfo/user
>
> Search the list:
> https://lists.gambas-basic.org/cgi-bin/search.cgi
>
> Hosted by https://www.hostsharing.net
Hi Gianluigi,
ok. I will try it.
Saying we browse to the Gambas-Web-Page -
http://gambas.sourceforge.net/en/main.html#
Among other things we see the Donate-Logo. Clicking the right mouse
button over the the logo I'm able to save this picture. That means
user's interaction.
But what I do, is to give the webpage to an htmldocument
(htmldoc.FromString(WebView.HTML)).
That works.
Then parsing the htmldoc with the gb.xml.html component to find the
source of the picture. Here it is
"https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" and download this
picture directly.
Finding the link is not the problem. But downloading the picture.
And here I thought I could use WebDownload.
Hope that makes it a bit clearer.
Best regards
Ingo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180510/56b410a6/attachment.html>
More information about the User
mailing list