Source language: Translate to:

BrowserExecScript not working?

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

BrowserExecScript not working?

Postby Wrangler » Sat Aug 19, 2006 8:52 am

I can't get BrowserExecScript to work, even using the example code in the help file.

BrowserExecScript "WebBrowser1" "text=[#34]Hello from NeoBook![#34];|document.write(text);" "JavaScript"

From help file:

This action requires that the Internet Security/Active Scripting option be enabled.


Did that. And all display options are unchecked.

Am I missing something?
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Postby Gaev » Sat Aug 19, 2006 9:43 am

Wrangler:

You must have an html document ... even a dummy one with something like ...
Code: Select all
<html>
<head></head>
<body>.</body>
</html>
... loaded in the referenced browser Object before you can get NeoBook to service a BrowserExecScript request.

With the particular example in your post, this command will replace everything in the object's display with the text Hello from NeoBook ... just confirmed that it (still) works on my machine.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Wrangler » Sat Aug 19, 2006 9:52 am

Aaaaah. No mention of this in help file. I accomplished this with this line of code:

BrowserLoadFromStr "WebBrowser1" "<html>|<head></head>|<body>.</body>|</html>"

before browserexecscript command.

Also can't include <script> </script> tags. NB takes care of those.

Works like a charm.

Thanks Gaev!
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest