revBrowserCallScript on Windows

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cborn
Posts: 66
Joined: Fri Dec 15, 2006 11:35 pm

revBrowserCallScript on Windows

Post by cborn » Thu Dec 23, 2010 3:33 pm

I am trying to use revBrowserCallScript in a desktop application on Windows and I continue to get "error in script". I've tried a number of different formulations, but none of them seem to work. There is a Javascript function on the page that is loaded into the browser called get_uploadparams() that is to return an array of parameters, but no matter how I try to call it to return the path, LC errors on the script.

I have tried:

Code: Select all

get revBrowserCallScript(sBrowserID, "get_uploadparams")
get revBrowserCallScript(sBrowserID, "get_uploadparams()")
get revBrowserCallScript(sBrowserID, "get_uploadparams();")
At the moment, I am just trying to handle the return with

Code: Select all

answer it
, so that I can see what I get and decide how to deal with it. But LC chokes on the revBrowserCallScript every time.

Am I doing something wrong? There seems to be little about this function on the forums, does it work for everyone but me :?: ?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revBrowserCallScript on Windows

Post by Mark » Mon Jan 10, 2011 1:34 am

Hi Cborn,

Does your script run correctly if called by another JS function in the website, while runing in IE?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: revBrowserCallScript on Windows

Post by interactbooks » Fri Jan 14, 2011 6:36 pm

I am having the same exact problem. When running the stand alone on the Mac, I receive no errors, but when running on Windows I receive JavaScript errors in the browser. These errors do not occur when I browse the site directly from a browser.

The error I am receiving is:

"Can't move focus to the control because it is not visible, not enabled or of a type that does not receive focus"

interactbooks
Posts: 65
Joined: Thu Oct 07, 2010 4:47 pm

Re: revBrowserCallScript on Windows

Post by interactbooks » Fri Jan 14, 2011 6:45 pm

Quick follow up, we discovered that the error being received was an error on the web site itself. Would be nice if the browser control allowed us to suppress errors.

Post Reply