Can anyone give me some simple script samples for MadCap Flare.
I was trying somethign simple like this:
document.write("Test Text");
But nothing happens?
Does scripts only work in HTML/WebHelp and not in PDF?
-cpede
Simple script sample
-
Carsten Pedersen
- Propeller Head
- Posts: 96
- Joined: Wed Feb 08, 2006 1:11 am
Simple script sample
You do not have the required permissions to view the files attached to this post.
-
RamonS
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Simple script sample
PDF's use of JavaScript depends on the viewer used and the security restrictions in place. AFAIK most PDF viewers don't allow running scripts and you'd need to enable it explicitly. I think mainly for security reasons use of JavaScript in PDFs is discouraged.
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U

Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
-
Carsten Pedersen
- Propeller Head
- Posts: 96
- Joined: Wed Feb 08, 2006 1:11 am
Re: Simple script sample
I'm looking for some guidelines how to use the script function.
I can get the document.write("bla bla...") to work
but something more complex like this:
is not working?
But then again, this works
What are the rules???
-cpede
I can get the document.write("bla bla...") to work
but something more complex like this:
Code: Select all
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")But then again, this works
Code: Select all
Dim oShell
Set oShell = CreateObject("Shell.Application") -cpede