I asked this question at the tail end of a thread that has grown cold. At the risk of being a pest, I'll ask again.
If I have some valid javascript in a RR container, is there a way to make it execute? (I want to use Javascript to interact with a PDF document from within RR.)
Thanks in advance,
Tim
Execute Javascript?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Execute Javascript?
It's better to be happy and rich than poor and sad -- W. C. Fields
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
I don't know how to run it in pdf, sorry, but you might generate a html page, save it and run it in a browser. Basically you need a interpreter for your javascript, and runrev doesn't have one build in.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Thanks.
Is there some way to get my Macintosh OS X machine to execute javascript, except from a web browser?
If so, is there a way for RR to launch the javascript interpreter, send javascript to the interpreter, and receive data back from it?
If not, an HTML page might be an interesting workaround. I've never done anything like that. How feasible is it?
Tim
Is there some way to get my Macintosh OS X machine to execute javascript, except from a web browser?
If so, is there a way for RR to launch the javascript interpreter, send javascript to the interpreter, and receive data back from it?
If not, an HTML page might be an interesting workaround. I've never done anything like that. How feasible is it?
Tim
It's better to be happy and rich than poor and sad -- W. C. Fields
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
There is also the JavaScript OSA plugin, I have never used it, but it allows you to run javascript via the (runrev) "do" command (because runrev can execute osa scripts that way).
http://www.latenightsw.com/freeware/Jav ... nload.html
http://www.latenightsw.com/freeware/Jav ... nload.html
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
JavaScript OSA Works Well
I've never tried using the JavaScript OSA in Rev, but I've used it from Python and Terminal with success and not a lot of hassle. It's been a while but my sense is it works fine.
-
- VIP Livecode Opensource Backer
- Posts: 149
- Joined: Thu Feb 23, 2006 8:49 pm
- Location: Bethel Park, Pittsbrugh, Pennsylvania USA
- Contact:
TimTimothy wrote:Thanks.
Is there some way to get my Macintosh OS X machine to execute javascript, except from a web browser?
If so, is there a way for RR to launch the javascript interpreter, send javascript to the interpreter, and receive data back from it?
If not, an HTML page might be an interesting workaround. I've never done anything like that. How feasible is it?
Tim
put field "myjavascript" into tScript
do tScript as javascript
As long as the Javascript OSA is installed then this should work just fine for you.
Tom
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net
Lazy River Software
3mcgrath@comcast.net