Tools for creating a help file
Klaus on-rev
klaus at major.on-rev.com
Sat Mar 24 07:43:53 EDT 2012
Hi Pete,
Am 24.03.2012 um 01:36 schrieb Pete:
> Hi Klaus,
> Haven't used revBrowser before but I got the example from runrev's web site
> at
> http://lessons.runrev.com/s/lessons/m/4071/l/15963-how-do-i-display-a-pdf-in-rev
>
> However, nothing displays in the browser image no matter what pdf file I
> select. Also tried it with a straightforward http:// url and nothing
> displayed.
>
> Any tips on how to get this to work?
I think you need to add "file://" at the beginning of the url which is missing in that tutorial.
Try this slightly modified mouseup script from the example mentioned above:
...............................................
on mouseUp
local tFile
answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF"
if it is not empty then
put it into tFile
##!!!
replace " " with "%20" in tFile
put "file://" before tFile
## !!!
browserSetURL tFile
end if
end mouseUp
........................................................
Tested on my Mac and works :-)
> Pete
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list