I started to extend the code of shtmlview to support www URLS.working URL should still be visible as an URL.
It works already when I do "browse https://something".
The content is displayed as expected with one exception:
When the content contains an achor tag to another www URL, the tag is ignored and the result is just text.
I tried to find out where in the code this happens, but no success until now.
Since the code relies (unfortuantelly) heavilly on the assumption, that all URL are local files, I guess somewhere in the code there is a validation if the URL is a local file and if not the URL is discarded. I true, this is bad method, since a not
Maybe can someone help with this point since I'm pretty sucked with this.
Many thanks
Alexandru
Alexandru schrieb am Samstag, 21. Oktober 2023 um 10:18:15 UTC+2:working URL should still be visible as an URL.
I started to extend the code of shtmlview to support www URLS.
It works already when I do "browse https://something".
The content is displayed as expected with one exception:
When the content contains an achor tag to another www URL, the tag is ignored and the result is just text.
I tried to find out where in the code this happens, but no success until now.
Since the code relies (unfortuantelly) heavilly on the assumption, that all URL are local files, I guess somewhere in the code there is a validation if the URL is a local file and if not the URL is discarded. I true, this is bad method, since a not
Maybe can someone help with this point since I'm pretty sucked with this.
Many thanksshtmlview is only thought to browse local files, for instance help pages for an Tk application.
Alexandru
There is no plan to support using shtmlview to browse the web.
If you really need this you might consider creating as well a vfs::https version of vfs::http
https://wiki.tcl-lang.org/page/vfs%3A%3Ahttp
Which allows you to browse the web as it the web is then taken as local files.
Not sure how difficult that could be.
Detlef
Question: Why not support also files from the web?
I'm planing to create an help system for my software.
The help files are online, so that the user does not need to download the whole bunch of html files to it's computer.
Besides, updates to the online files are easy done with imediate effect to all users.
El jueves, 26 de octubre de 2023 a las 20:04:44 UTC+2, Alexandru escribió:internet access so you cannot do it.
Question: Why not support also files from the web?
I'm planing to create an help system for my software.consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not having
The help files are online, so that the user does not need to download the whole bunch of html files to it's computer.
Besides, updates to the online files are easy done with imediate effect to all users.
pd schrieb am Samstag, 28. Oktober 2023 um 13:38:32 UTC+2:internet access so you cannot do it.
consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not having
Yes, I considered this option already an trust me, I would ask here my questions if offline help would be an option.
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
...
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
I just don't want to feed a long off topic so just a comment to finish it up ;-)internet access so you cannot do it.
El sábado, 28 de octubre de 2023 a las 16:44:12 UTC+2, Alexandru escribió:
pd schrieb am Samstag, 28. Oktober 2023 um 13:38:32 UTC+2:
consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not having
saying it's not appropiate to distribute your software for offline use because of updates, it's better to use it online in a web app or cloud. Even having frequent updates you can consult the help offline it you have the files locally and that is anYes, I considered this option already an trust me, I would ask here my questions if offline help would be an option.The other points are good ones but this one seems contradictory to me, of course help files will get outdated as well as the software itself, saying it's not appropiate to have help offline because of you need to be online to update it is the same as
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
...
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
But as I have said there's cons and pros for both strategies so it's a decision to make taking into account the environment and target.
I just don't want to feed a long off topic so just a comment to finish it up ;-)internet access so you cannot do it.
El sábado, 28 de octubre de 2023 a las 16:44:12 UTC+2, Alexandru escribió:
pd schrieb am Samstag, 28. Oktober 2023 um 13:38:32 UTC+2:
consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not having
saying it's not appropiate to distribute your software for offline use because of updates, it's better to use it online in a web app or cloud. Even having frequent updates you can consult the help offline it you have the files locally and that is anYes, I considered this option already an trust me, I would ask here my questions if offline help would be an option.The other points are good ones but this one seems contradictory to me, of course help files will get outdated as well as the software itself, saying it's not appropiate to have help offline because of you need to be online to update it is the same as
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
...
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
But as I have said there's cons and pros for both strategies so it's a decision to make taking into account the environment and target.
Dear Alex,internet access so you cannot do it.
I suggest, that you do a fork of shtml to do so. I have no intension to add new features, just like to fix possible bugs.
My gut feeling tells me that it might be more appropiate for this topic to use one of many binary extensions which can be used to display web pages.
The most promising is the Tcl webview wrapper: https://www.androwish.org/home/dir?name=undroid/twv
Although the server seems currently down.
See as well here: https://wiki.tcl-lang.org/page/Taygete+Scrap+Book
Best,
Detlef
pd schrieb am Samstag, 28. Oktober 2023 um 21:38:12 UTC+2:
I just don't want to feed a long off topic so just a comment to finish it up ;-)
El sábado, 28 de octubre de 2023 a las 16:44:12 UTC+2, Alexandru escribió:
pd schrieb am Samstag, 28. Oktober 2023 um 13:38:32 UTC+2:
consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not having
saying it's not appropiate to distribute your software for offline use because of updates, it's better to use it online in a web app or cloud. Even having frequent updates you can consult the help offline it you have the files locally and that is anYes, I considered this option already an trust me, I would ask here my questions if offline help would be an option.The other points are good ones but this one seems contradictory to me, of course help files will get outdated as well as the software itself, saying it's not appropiate to have help offline because of you need to be online to update it is the same as
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
...
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
But as I have said there's cons and pros for both strategies so it's a decision to make taking into account the environment and target.
D Groth schrieb am Sonntag, 29. Oktober 2023 um 09:50:04 UTC+1:having internet access so you cannot do it.
Dear Alex,
I suggest, that you do a fork of shtml to do so. I have no intension to add new features, just like to fix possible bugs.
My gut feeling tells me that it might be more appropiate for this topic to use one of many binary extensions which can be used to display web pages.
The most promising is the Tcl webview wrapper: https://www.androwish.org/home/dir?name=undroid/twv
Although the server seems currently down.
See as well here: https://wiki.tcl-lang.org/page/Taygete+Scrap+Book
Best,
Detlef
pd schrieb am Samstag, 28. Oktober 2023 um 21:38:12 UTC+2:
I just don't want to feed a long off topic so just a comment to finish it up ;-)
El sábado, 28 de octubre de 2023 a las 16:44:12 UTC+2, Alexandru escribió:
pd schrieb am Samstag, 28. Oktober 2023 um 13:38:32 UTC+2:
consider to include help files in the distribution package in order to consult them offline, there're pros and cons both for keeping help online or offline, but it may be quite annoying to have to look for something in help docs while not
as saying it's not appropiate to distribute your software for offline use because of updates, it's better to use it online in a web app or cloud. Even having frequent updates you can consult the help offline it you have the files locally and that is anYes, I considered this option already an trust me, I would ask here my questions if offline help would be an option.The other points are good ones but this one seems contradictory to me, of course help files will get outdated as well as the software itself, saying it's not appropiate to have help offline because of you need to be online to update it is the same
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
...
Thirdly: Having offline help files would logically mean that the local files will get outdated. Updating those local help files means online connection so here we are back to the point that an internet connection is needed.
Yes, I will make a fork of shtml.But as I have said there's cons and pros for both strategies so it's a decision to make taking into account the environment and target.
But first I would like to have a working code.
Currently I'm stuck with finding out, where your code handles the anchors found in the HTML content.
Because the code expects a local file path in the href tag, it's not correctly interpreting my url path.
It should be easy to add an if/else there but I couldn't find out where in the code this happens.
Could you give me a hint for this?
Much appreciated.
Alexandru
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 463 |
Nodes: | 16 (2 / 14) |
Uptime: | 157:11:39 |
Calls: | 9,384 |
Calls today: | 4 |
Files: | 13,561 |
Messages: | 6,096,000 |