My Bookmark WebView

Everything else that doesn't fall into one of the other PB categories.
User avatar
susan
User
User
Posts: 29
Joined: Mon Aug 08, 2022 4:06 am

My Bookmark WebView

Post by susan »

After doing enough work on My (Simple) Bookmark Manager for now, and being pretty happy with the results (although a search command would be nice to add in the future), I wondered about trying something similar, but with using the WebView Gadget.

So here is My Bookmark WebView! I haven't called it a manager because it's too incomplete (for example, you can't edit or delete bookmarks), but making it gave me the confidence to think that a more complete desktop application could be made without using the Gadget UI, and instead sticking with HTML5 with JavaScript and CSS for the main window.

This is the first time I have ever tried binding events/callbacks in PureBasic, and I think I may become a convert to that technique instead of a big event loop with many nested select and conditional statements. It was all much simpler to keep organised than I imagined.

The Folder/Bookmarks tree itself is very basic, taken from an example on W3Schools and I can imagine that by using some JavaScript libraries, a much more capable tree could be presented. But in this case, I wanted to keep the HTML and CSS as simple as possible, to see how well it would work having as much PureBasic code as possible and reusing most of my first bookmark manager code.

Below is a link to what it looks like, and a zip file with all the sources so you can run it in the IDE or make it yourself.

Image of the main window:
https://notebook.zohopublic.com/public/ ... 8b75434d54

Source:
https://workdrive.zohoexternal.com/exte ... eb0a61c7a7
threedslider
Enthusiast
Enthusiast
Posts: 607
Joined: Sat Feb 12, 2022 7:15 pm

Re: My Bookmark WebView

Post by threedslider »

@susan : Great job on that but although not yet tested, I would ask to put your source code in github similar because your web will be not longer exist in futur and nobody can't access your stuff :lol:
User avatar
susan
User
User
Posts: 29
Joined: Mon Aug 08, 2022 4:06 am

Re: My Bookmark WebView

Post by susan »

Those links are for a cloud service that I pay for, so I am not too worried about them going bad. They should be good as long as I keep my subscription active, which I plan to do for many years, as I am pretty happy with Zoho.
User avatar
spikey
Addict
Addict
Posts: 809
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: My Bookmark WebView

Post by spikey »

Nice project.
susan wrote: Fri Feb 13, 2026 6:14 am This is the first time I have ever tried binding events/callbacks in PureBasic, and I think I may become a convert to that technique instead of a big event loop with many nested select and conditional statements. It was all much simpler to keep organised than I imagined.
Yes, I agree with you there. All my new projects use binding and whenever I go back to an old one I always think "I really need to refactor this" at some point! It also lends its self to component reusability across projects if you plan it right.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5668
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: My Bookmark WebView

Post by Kwai chang caine »

Veery nice... the great class :shock:
Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination

PureBasic French Forum
Sergey
User
User
Posts: 91
Joined: Wed Jan 12, 2022 2:41 pm

Re: My Bookmark WebView

Post by Sergey »

Define works as Protected :o
The code is written very well and legibly
Post Reply