QUO VADIS?

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: QUO VADIS?

Post by rbytes »

I suppose you could GET TOUCH and determine if it is on the text field. If it is, just run the four code lines that I posted above. But there is still the necessity to name the file. You could use INPUT, but that is a bit crude for Dav's browser. Maybe when you touch the text, a field appears and you are prompted to enter the filename.

Alternative - add a Save button to the header rather than use GET TOUCH.
The only thing that gets me down is gravity...

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

Re: QUO VADIS?

Post by Dutchman »

The problem is that touching the link immediately results in download to the screen.
I added a save-button, but could not find out which command should be given. The file-ID is not known. It is in the link, but how to get it?

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: QUO VADIS?

Post by rbytes »

Yes, I am having a problem with that also. Dav did not include code to update URL$ as the user browses a website. The URL$ remains the home page address of the site.

So in his geturl: code I searched for:

FIELD "geturl" SET TEXT "http://"

and changed it in two places to:

FIELD "geturl" SET TEXT BROWSER_TEXT$("n", "document.baseURI")

Now when you browse to any page within a site, you can press the URL button see the page that you are on. Press Cancel when done.

But once you select a file, this code does not update to the URL of the file. It returns "", so the file save fails. Odd, because Safari correctly reports the file's URL.

Let's mull this over and see what solution there may be. Dav might be able to help.
The only thing that gets me down is gravity...

Post Reply