Hi Folks,
I've got a revlet that allows users to record and submit a video back to the server. Aft er they click "Send Video" in the revlet and the upload completes I'd like to enclosing web page to refresh showing them the uploaded file. Is there any way I can trigger a call to a javascript function? I see the revBrowserExecuteScript() function, and that looks like exactly what I need, except that it seems to work in a browser embedded in the revlet rather than the browser the revlet is embedded in. I can think of a few hacky work-arounds ( set a timer script in the HTML that calls out to the server checking for a completed upload and refreshs the page when it finds one), but I was hoping this would be possible in a more straightforward way.
Thanks,
Matt
Access to browser javascript functions?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Access to browser javascript functions?
Matt,
You want to use the "do" command:
Best,
Mark
You want to use the "do" command:
Code: Select all
do "document.write('Hello!')" in browser
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Access to browser javascript functions?
Thanks much. That's perfect.
Matt
Matt