Page 1 of 1

Browser widget - change browser engine

Posted: Thu Aug 18, 2016 10:48 pm
by bergsy
Hi,

I have developed the help system for my Livecode app in HTML. I am trying to use the browser widget to display it.

It seems that the LC browser widget uses Chrome (or maybe Opera) as the browser engine, which doesn't allow searching of local HTML files - only server based. Firefox and (perish the thought) Internet explorer work fine.

Is there a way to change the browser engine so that I can overcome this issue? Otherwise I will need to revert to launching firefox/IE separately (not my preferred option).

Cheers

Greg

Re: Browser widget - change browser engine

Posted: Fri Aug 19, 2016 3:33 pm
by AndyP
Yep the browser widget uses chromium.
Why not use the browser object, see this lesson.

http://lessons.livecode.com/m/2592/l/27 ... n-your-app

If you omit the Cef part of revBrowserOpenCef then the browser used should be IE for Windows and Safari for Mac. Including the Cef will force Chromium to be used.

Re: Browser widget - change browser engine

Posted: Fri Aug 26, 2016 10:22 pm
by Brahmanathaswami
@Bergsy: Can you describe how you can search html files from the browser inside Livecode? What is it that you can do in Firefox that you cannot do in Chrome? What is the method you would use, (assuming it worked)

Cmd-F works in all desktop browsers for the current page. So I don't understand what you mean by. "allow searching of local html files?" I have not seen this in Firefox, which is the browser I use.

I also have an interest in this and was hoping to use the Browser widget.
Agreed: we do not want to take the users out to a separate browser/app.

I wasn't aware that there was such a search function in Firefox. if we used the "old" non CEF Rev Browser, how would you implement that kind of search?

Brahmanathaswami

Re: Browser widget - change browser engine

Posted: Fri Aug 26, 2016 10:33 pm
by FourthWorld
Brahmanathaswami wrote:@Bergsy: Can you describe how you can search html files from the browser inside Livecode? What is it that you can do in Firefox that you cannot do in Chrome?
Chrome won't run JavaScript from a local file. But since the LC IDE's Dictionary uses the Browser widget and has search there must be a way to accomplish what's needed here.

Re: Browser widget - change browser engine

Posted: Sat Aug 27, 2016 9:04 pm
by jacque
I'd guess the dictionary is searching the text files rather than the widget content.

Re: Browser widget - change browser engine

Posted: Tue Sep 06, 2016 7:59 am
by bergsy
Hi all,

Sorry for the delay.

Andy, the revBrowserOpen works fine, however the shortcomings of Internet Explorer as a browser are evident if I go to a modern website. Is there any way to use Firefox as the engine?

Brahmanathaswami, I am using Dr Explain to build my HTML help system. It has a search option that uses the capability in the browser to search the html files for content. IE and Firefox can do that for local files on my hard drive, but Chrome does not.

If I could somehoe use the Firefox engine, that would be great. Otherwise IE is good enough for my help system as it doesn't rely on modern scripting.

Cheers

Greg

Re: Browser widget - change browser engine

Posted: Tue Sep 06, 2016 2:36 pm
by FourthWorld
bergsy wrote:...the shortcomings of Internet Explorer as a browser are evident if I go to a modern website.
Does the problem persist with Microsoft's current browser, Edge?

Re: Browser widget - change browser engine

Posted: Wed Sep 07, 2016 1:07 am
by bergsy
Yes it does. Luckily IE still ships on Windows 10. But they may remove it at some point, which is why I would prefer to use Firefox