Page 1 of 1
Embedded Web on Windows 7
Posted: Tue Nov 11, 2014 12:16 am
by chiovanni
Hi,
I am getting an error running the markdown.livecode demo from the sample stack I downloaded on from the embedded-web section of the livecode 7 page.
You can see the attached screenshot. The debugger stops at "get revBrowserExecuteScript(sBrowserId, tScript)" when I start up the markdown.livecode program. The error message is [card id 1002: execution error at line n/a (External handler: exception) near "error in script"].
I ran this same demo on my mac and it worked fine. Is there an issue with the browser control on the Windows operating system?
Thanks.
Re: Embedded Web on Windows 7
Posted: Tue Nov 11, 2014 12:27 am
by LCNeil
HI Chiovanni,
Javascript errors are quite common in the old implementation of revBrowser on windows. You will be able to resolve this by using the new CEF based browser which has been available since LiveCode 67/7.0.
You will be able to read more about this new implementation in my recent newsletter article here-
http://newsletters.livecode.com/novembe ... tter4.html
Kind Regards,
Neil Roger
--
LiveCode Support Team ~
http://www.runrev.com
--
Re: Embedded Web on Windows 7
Posted: Tue Nov 11, 2014 4:35 pm
by chiovanni
Hi Neil,
Thank you for the prompt response. I am running the sample stack RunRevLive2014-features.livecode in LiveCode 7.0.1 (rc1). Is the cef browser built into LiveCode 7 or is it a plugin or do I need to install an external browser (I changed my default Windows browser to Chrome if that helped)? I still get the error see attached.
Thanks.
Re: Embedded Web on Windows 7
Posted: Tue Nov 11, 2014 5:11 pm
by chiovanni
Hi Neil,
I figured out the problem in you demo (RunRevLive2014-features.livecode and markdown.livecode), you guys have this in your card "browser":
put revBrowserOpen(the windowId of this stack, "file://"&stackPath()&"/index2.html") into sBrowserID
After doing some Google searching I came upon this topic "revBrowserOpen versus revBrowserOpenCef" in one of your forum posts. So I changed the code to:
put revBrowserOpenCef(the windowId of this stack, "file://"&stackPath()&"/index2.html") into sBrowserID
Now its working fine. I think you should update your demo (LiveCode_features_Ben_Beaumont.zip) on your website so that other Window users don't encounter the same error...unless you want them too and have them figure it out as well.
Thanks.
Re: Embedded Web on Windows 7
Posted: Tue Nov 11, 2014 5:37 pm
by LCNeil
Hi chiovanni,
Its great to hear you got the stack up and running and I will put a request in to have this stack fixed asap.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~
http://www.runrev.com
--