Browser widget - change browser engine

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bergsy
Posts: 45
Joined: Mon Oct 28, 2013 10:51 pm

Browser widget - change browser engine

Post by bergsy » Thu Aug 18, 2016 10:48 pm

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

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: Browser widget - change browser engine

Post by AndyP » Fri Aug 19, 2016 3:33 pm

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.
Andy .... LC CLASSIC ROCKS!

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: Browser widget - change browser engine

Post by Brahmanathaswami » Fri Aug 26, 2016 10:22 pm

@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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Browser widget - change browser engine

Post by FourthWorld » Fri Aug 26, 2016 10:33 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Browser widget - change browser engine

Post by jacque » Sat Aug 27, 2016 9:04 pm

I'd guess the dictionary is searching the text files rather than the widget content.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bergsy
Posts: 45
Joined: Mon Oct 28, 2013 10:51 pm

Re: Browser widget - change browser engine

Post by bergsy » Tue Sep 06, 2016 7:59 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Browser widget - change browser engine

Post by FourthWorld » Tue Sep 06, 2016 2:36 pm

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bergsy
Posts: 45
Joined: Mon Oct 28, 2013 10:51 pm

Re: Browser widget - change browser engine

Post by bergsy » Wed Sep 07, 2016 1:07 am

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

Post Reply