D&Dbrowser

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

D&Dbrowser

Post by Dutchman »

The first browser in Smart Basic was made by Dav: viewtopic.php?f=20&t=854
The extensions in this version have been developed by Dutchman: viewtopic.php?f=20&t=1953
Therefore the name D&Dbrowser.
Its usage is described in Browser.info which is in the package. A PDF-version is attached:
Browser-info.pdf
(259.47 KiB) Downloaded 763 times
The browser has the following buttons:
Buttons.PNG
Buttons.PNG (96.76 KiB) Viewed 5416 times
The folder "Browser" has been 'packed' completely in an archive-file (updated 20180114):
Browser.archive.txt
(261.49 KiB) Downloaded 405 times
Browser.archive.txt
(261.45 KiB) Downloaded 425 times
This file can be 'unpacked' with the install-program (updated 20180114):
Install-Browser.sb.txt
(1.41 KiB) Downloaded 412 times
Install-Browser.sb.txt
(1.41 KiB) Downloaded 419 times
Remove the extension ".txt" as usual
The following folders and files will be installed

Code: Select all

#Browser/
Browser/Browser.info
Browser/D&Dbrowser.sb
Browser/changes.history
#Browser/SYSTEM/
Browser/SYSTEM/Preferences.default
#Browser/SYSTEM/ButtonPics/
Browser/SYSTEM/ButtonPics/buttons.PNG
Browser/SYSTEM/ButtonPics/pb.PNG
Browser/SYSTEM/ButtonPics/sb.PNG
The user-settings are in a separate file "preferences.default" so that they are automatically transferred to new versions.
In order to prevent "preferences.default" from overwriting, you could rename it to e.g. "preferences.name" and change the include-statement in the top of the program accordingly, from {preferences.default} to {preferences.<username>}.
The file "preferences.…" is and should be placed in the folder "SYSTEM/"
After program run the folder "SYSTEM" will contain four files.

NOTE: To run the browser from Safari, the ampersand "&" should be entered as "%26" without the quotes. (=hexadecimal code)
My command from the desktop-icon is "http://nittersat.ru/sb.php?/" followed by "My%20stuff/Browser/D%26Dbrowser.sb"
See page 75 in the PDF-manual.

Read "Browser.info" for details on usage of buttons and utilities. The following is only a short description of the functionality
• The 'link' button is for downloading all http-links on the webpage with an extension that is in the variable 'LinkExt$' which could e.g. be set to "PDF,DOC,TXT".
• The 'filmstrip' button is for downloading the pathnames of the images in the current webpage.
Two types of images are downloaded. Pictures as part of the website and images posted on the website.
• The "selection and copy" ability for a code-section is inconvenient on iPad, almost impossible. That's why I added the ability to download code. It can be directly written from the browser or extracted from the 'dumped' webpage.
• If you touch an attachment on the webpage, then it will not be downloaded as on a computer, but will be displayed, including strange characters if it is a non-text file. If you touch then the 'down-arrow', then all download-links will be stored in a file with pathname and filename. These links are also stored in Clipboard, and can thus be used to transfer them directly within a program.
• And finally, the file "SYSTEM/favorites." contains the bookmarks for the browser.
If it is not present, it will be generated by the browser with default content.

The files are also available on Dropbox in the folder "Browser": https://www.dropbox.com/sh/g44znsr8hcsv ... mc72a?dl=0

The following screenhots give an example of display after touching the 'filmstrip'-button:
Screenshots.PNG
Screenshots.PNG (537.69 KiB) Viewed 5427 times
Last edited by Dutchman on Thu Jan 19, 2023 3:24 pm, edited 14 times in total.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: D&Dbrowser

Post by rbytes »

Kudos for your collaboration. I have now downloaded the D&D version. I understand that it has nothing to do with Dungeons and Dragons! :lol:

Just a question. Would it be possible to integrate the functions of “Download pics selection.sb” within the browser itself? Perhaps after downloading pic links, the browser program could just run the download pics program. When started this way, the download pics pgm could run the browser program on exit.
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: D&Dbrowser

Post by Dutchman »

rbytes wrote:
Sun Oct 01, 2017 6:47 pm
Just a question. Would it be possible to integrate the functions of “Download pics selection.sb” within the browser itself?
I got problems with certain links which did not display. I have still to investigate that, but the coming weeks I have other things to do. ;)
Furthermore the program should be extended with a text-input facility to give file-names if these are not in the link.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: D&Dbrowser

Post by rbytes »

I found an unexpected bug today. Try this. Run D & D Browser. Type in a web address for a new page in the address text window and press return. At this point many of the buttons stop working.

For example I could not get the bookmark icon to respond so I could bookmark my new page.
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: D&Dbrowser

Post by Dutchman »

That was a nasty bug to find. It took me several hours. At last it turned out an assignment to a local function-variable "Title$" rather than the global variable. Adding a leading point solved the problem: ".Title$"
Thank you for your report. :D
The relevant files have been modified in the attachments and on Dropbox.
I could not remove the old attachments and they are not visible in the edit-mode. I will report it in the bug-section of the forum. ;)

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: D&Dbrowser

Post by rbytes »

Thanks for fixing D&D. :) I will download the files tonight.
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: D&Dbrowser

Post by rbytes »

On my iPad it is not practical to download your .txt archive attachment. If I long-press on the link I can copy the link but not the file itself. The popup menu has no download option.

If I short-click the link, the text file opens in a text window, but then it has to be selected. That is a painfully slow process in iOS. There is no Select All. So I have to long-press to get a selection box on some text, then slowly scroll down a page at a time and drag the selection handle down each page. IOS freezes for several seconds with each action, and there are many pages! After two minutes of this, the scroll handle on the right had barely moved.

I gave up, clicked your Dropbox link and had the entire decompressed Browser folder downloaded in just 5 seconds!
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: D&Dbrowser

Post by Dutchman »

rbytes wrote:
Mon Jan 15, 2018 7:35 pm
On my iPad it is not practical to download your .txt archive attachment. …
I added the archive and install files as trial for the case that Dropbox is not available.
I myself have not tried to get it via ipad. If that is so difficult, then we will really have a problem with the update without Dropbox. :cry:

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: D&Dbrowser

Post by rbytes »

Until yesterday I had never tried to run the code that I saved using D&D Browser. It was my program SB Notes (the original). When I tried to run it, one section gave a Syntax Error. I did some checking to see if the error might have occurred earlier, but my Forum post is fine. Here is a comparison of the program as I wrote it, as it appears on the Forum still, and as it was downloaded by D & D as a code file:

Code: Select all

'From my original program.

'----------
definestrings:
'----------
a1$="<html><head><title>PRINT NOTE</title></head><body><H3><a href="
a1a$=CHR$(34)&"mailto:ekvo55alur492@hpeprint.com?subject="
a2$=title$&lin$&lin$   ' title field
a3$="&body="
a4$=body$              ' body field
a5$=CHR$(34)&">Confirm</a></H3></body></html>"
RETURN


'From my Forum post - unchanged, still runs

'----------
definestrings:
'----------
a1$="<html><head><title>PRINT NOTE</title></head><body><H3><a href="
a1a$=CHR$(34)&"mailto:ekvo55alur492@hpeprint.com?subject="
a2$=title$&lin$&lin$   ' title field
a3$="&body="
a4$=body$              ' body field
a5$=CHR$(34)&">Confirm</a></H3></body></html>"
RETURN




'From the downloaded code that D&D Browser saved in "code.dump-001".
'It appears to have been modified by Apple - perhaps they were checking for viruses? The program will not run properly unless I replace this section.

'----------
definestrings:
'----------
a1$="&lt;html&gt;&lt;head&gt;&lt;title&gt;PRINT NOTE&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;H3&gt;&lt;a href="
a1a$=CHR$(34)&amp;"<a dir="ltr" href="mailto:ekvo55alur492@hpeprint.com?subject=" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">mailto:ekvo55alur492@hpeprint.com?subject=</a>"
a2$=title$&amp;lin$&amp;lin$   ' title field
a3$="&amp;body="
a4$=body$              ' body field
a5$=CHR$(34)&amp;"&gt;Confirm&lt;/a&gt;&lt;/H3&gt;&lt;/body&gt;&lt;/html&gt;"
RETURN

The only thing that gets me down is gravity...

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: D&Dbrowser

Post by Dav »

Hi dutchman, this is a nice browser! I finally was able to install and run it today with help of the make install program. In the past I couldn't get it to run without errors. Looks good!

I'll be using it now. :D

- Dav

Post Reply