Thanks for the input, hh. I don't think load time is the problem since I waited several minutes while doing something else and it was still unresponsive. What I've gleaned from two days of fighting with it is that if you set the htmltext of a browser widget, it has no URL at all and so scripted references to anchor links fail.

If you set the empty browser URL to "http://libbrowser_dummy_url/"; and try to attach an anchor to that, it still fails.

If you tap an existing anchor link in the browser, it will navigate to the linked text and sometimes the URL will change to ""http://libbrowser_dummy_url/"; by itself, after which using that URL in a script will work. But sometimes it doesn't change, the URL remains empty, and I haven't figured out why.

If you load the htmltext from a file on disk, the URL is set to the file path and it will respond to an anchor link sent via script. This is probably the most viable solution since I can write the text to disk first and then load it.

Re: layering. I can't use palettes since this is a mobile app, but that's good to know in general. What I need is a slide-out panel with a tree view widget that appears over the html page. It looks like that isn't going to happen.

On 4/1/19 3:37 PM, hh via use-livecode wrote:
JLG wrote:
I may need to go back to the revBrowser implementation, since
layering isn't working with the widget anyway and internal links
aren't reliable.

The browser widget needs some time after a "reloading" (setting the
htmltext in your case).

set htmltext of widget "browser" to empty
set htmltext of widget "browser" to htm
wait 10 ticks with messages --> may need even more time on preopenstack
set url of widget "browser" to "http://libbrowser_dummy_url/#1234";

Moreover:
= Canvas methods work with revbrowser on Mac only, nowhere else.
= You can put a palette over a browser widget:
   http://forums.livecode.com/viewtopic.php?p=152773#p152773
= You can put a browser widget over a browser widget:
   http://forums.livecode.com/viewtopic.php?p=172789#p172789


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to