Page 1 of 1

Problem with RevBrowser in Windows Enviroment

Posted: Tue Nov 19, 2013 1:26 am
by lohill
I do all my development on my Mac (LCC 6.1.3) but then make standalone applications for both the Mac and Windows PC. My program uses revBrowser to get data from the web. I discovered that my application runs fine in the Mac IDE and as a standalone on the Mac but displays error messages both in the standalone PC application and in the IDE of the PC (LC 5.5). The two error messages I get on the PC are:
'COMSCORE' is undefined. and 'JSON' is undefined. (along with one more message if you say 'yes' to the prompts)

I am not sure if the problem is related to Internet Explorer or to the revBrowser commands being used. Fortunately the problem is very easy to replicate by using the 'browser_sampler.rev' program that used to be distributed with LiveCode. Here are the steps to produce what I am seeing:
1. On a PC, locate and run browser_sampler.rev in the IDE.
2. Press the button called 'Launch Browser'.
3. When the browser come up, paste the following into the address box: "http://www.investors.com/StockResearch/ ... ymbol=AAPL" (The ticker symbol cab be whatever you want)
4. Press the GO button.
5. On the PC you will get the error messages while on a Mac you do not get the messages.

In both cases, the final result (after messages) appears to be correct. If you paste that URL directly into Safari or directly into IE and then press GO you get results with no messages in either case.

If this is a bug, I would like to report it, but if there is some setting in IE that can be changed to make it work please let me know.

Thanks,
Larry

Re: Problem with RevBrowser in Windows Enviroment

Posted: Tue Nov 19, 2013 1:43 am
by Mark
Hi Larry,

The problem is most likely in the code of the website. By default, IE shows error messages, whereas Safari (Web Kit) ignores them. The error is not in RevBrowser or in your scripts. What happens if you test the same website in the IE browser instead of in the LiveCode IDE or in a standalone?

Kind regards,

Mark

Re: Problem with RevBrowser in Windows Enviroment

Posted: Tue Nov 19, 2013 1:52 am
by lohill
Mark,

The second to last line of my original message I think covers what you are suggesting. There are no error messages at all when the URL is directly pasted in IE.

Larry

Re: Problem with RevBrowser in Windows Enviroment

Posted: Tue Nov 19, 2013 2:05 am
by Mark
Hi Larry,

In the Advanced tab of the Internet Options window, there are a few options with regard to error reporting. You might want to check that.

Kind regards,

Mark

Re: Problem with RevBrowser in Windows Enviroment

Posted: Tue Nov 19, 2013 5:42 pm
by lohill
Good morning Mark,

I tried changing some of the Advanced tab options in IE but to no avail. Can I assume that your suggestion of looking at those settings means that you have tried my suggestion up putting my suggested URL into browser_sampler.rev on a PC and actually had it work without reporting any errors?

Larry

Re: Problem with RevBrowser in Windows Enviroment

Posted: Wed Nov 20, 2013 3:23 am
by Mark
Good evening Larry,

I did a test in IE and disabled the error messages using the Internet Options.This works in IE. I have now also done a test with revBrowser and unfortunately it appears that revBrowser doesn't honour these settings. Maybe that's a bug or perhaps a new feature is required to turn off IE error messages in revBrowser. I don't think a solution exists. The only way to get rid of the errors is to fix them in the website.

Kind regards,

Mark

Re: Problem with RevBrowser in Windows Enviroment

Posted: Wed Nov 20, 2013 11:21 am
by LCNeil
Hi Larry and Mark.

We are aware of this issue and there is a bug report on it here-

http://quality.runrev.com/show_bug.cgi?id=7721

The bug report was last updated by another LiveCode user in 2012. I would recommend adding a comment to the report explaining that the issue is still present and that cause is likely to be that revBrowser is not adhering to Internet Explorers "disable messages" setting

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--

Re: Problem with RevBrowser in Windows Enviroment

Posted: Wed Nov 20, 2013 4:27 pm
by FourthWorld
@Larry - While it would be helpful for LC to honor IE's error suppression option, and apparently that's being investigated, from time to time there will be sites with errors that need to be corrected.

If the site you're relying on for your application throws a lot of errors (indeed even Firefox shows dozens of errors in the Console when I load the URL you noted in the RQCC report) it may be helpful to let the webmasters know.

While LC may be able to help with some aspects of this issue, the sheer number of errors on that page doesn't give me confidence that the site won't later have more critical issues beyond the scope that any browser's error-suppression can hide. Reliance of any business on a site managed so loosely poses a risk of other more critical issues down the road; even big web sites sometimes make bad hiring decisions. ;) Supporting key vendors like this web site by helping them identify and resolve errors can pay big dividends for a business that relies on their site.

If for some reason the owners of that site don't feel that producing an error-free site is a priority, you may consider alternatives for that data, like the Yahoo or Google APIs:
http://developer.yahoo.com/yql/
https://developers.google.com/apps-scri ... e/finance/

Re: Problem with RevBrowser in Windows Enviroment

Posted: Wed Nov 20, 2013 5:10 pm
by Mark
Thanks Neil. I've added my name to the list of bug reporters.

Mark