Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Thank you!

The spaces where the culprit

Now working :)

> On Jun 21, 2017, at 11:40 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> If the browser widget is expecting an  encoded URL (i.e. %20 vs a space)
> then instead of replacing characters, you should use the urlEncode
> function, as in
> 
> put URLEncode(tFile) into tFile
> 
> This way any characters (spaces or Unicode or whatever) that are an
> issue are properly encoded.
> 
> 
> 
> On 6/21/2017 2:24 PM, panagiotis merakos via use-livecode wrote:
>> @Roger
>> 
>> Nice!
>> 
>> This code works with filenames with spaces, too:
>> 
>> 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 space with "%20" in tFile
>> 
>> set the url of widget 1 to tFile
>> 
>> end if
>> 
>> end mouseUp
>> 
>> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Have you tried "my%20Pdf"?
>>> 
>>> ~Roger
>>> 
>>> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Hmm, it seems that the spaces are the culprit. I did a quick test, and
 selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
>>> throws
 an error.
 
 This looks like a bug to me :)
 
 Best,
 Panos
 --
 
 On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> It contains spaces, but no unicode that I can see.  i.e.
>>> "Transportation
> Bus Software Laptop.pdf”
> 
> Thank you!
> 
> 
>> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>> Hi John,
>> 
>> Does the pdf filename you select contain any unicode characters?
>> 
>> Best,
>> Panos
>> --
>> 
>> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
>> use-livecode@lists.runrev.com  wrote:
>>> Hi All,
>>> 
>>> I am trying to display a PDF in a browser widget using the tutorial
> here:
>>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> http://lessons.livecode.com/m/4071/l/727199-how-do-i->
>>> display-a-pdf-in-livecode  http://lessons.livecode.com/>
>>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>>> 
>>> and this code:
>>> 
>>> 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
>>> set the url of widget "browser" to tFile
>>>  end if
>>> end mouseUp
>>> 
>>> 
>>> I’m getting this error:
>>> 
>>> button "Button": execution error at line 6 (extension: error occured
> with
>>> domain) near "runtime", char 1
>>> 
>>> 
>>> Would this be a bug, or am I doing something incorrectly?
>>> 
>>> 
>>> Thank you!
>>> John Patten
>>> SUSD
 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Paul Dupuis via use-livecode
If the browser widget is expecting an  encoded URL (i.e. %20 vs a space)
then instead of replacing characters, you should use the urlEncode
function, as in

put URLEncode(tFile) into tFile

This way any characters (spaces or Unicode or whatever) that are an
issue are properly encoded.



On 6/21/2017 2:24 PM, panagiotis merakos via use-livecode wrote:
> @Roger
>
> Nice!
>
> This code works with filenames with spaces, too:
>
> 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 space with "%20" in tFile
>
> set the url of widget 1 to tFile
>
> end if
>
> end mouseUp
>
> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Have you tried "my%20Pdf"?
>>
>> ~Roger
>>
>> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Hmm, it seems that the spaces are the culprit. I did a quick test, and
>>> selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
>> throws
>>> an error.
>>>
>>> This looks like a bug to me :)
>>>
>>> Best,
>>> Panos
>>> --
>>>
>>> On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
 It contains spaces, but no unicode that I can see.  i.e.
>> "Transportation
 Bus Software Laptop.pdf”

 Thank you!


> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> Hi John,
>
> Does the pdf filename you select contain any unicode characters?
>
> Best,
> Panos
> --
>
> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com > Hi All,
>>
>> I am trying to display a PDF in a browser widget using the tutorial
 here:
>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
 http://lessons.livecode.com/m/4071/l/727199-how-do-i->
>> display-a-pdf-in-livecode 
>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>>
>> and this code:
>>
>> 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
>>  set the url of widget "browser" to tFile
>>   end if
>> end mouseUp
>>
>>
>> I’m getting this error:
>>
>> button "Button": execution error at line 6 (extension: error occured
 with
>> domain) near "runtime", char 1
>>
>>
>> Would this be a bug, or am I doing something incorrectly?
>>
>>
>> Thank you!
>> John Patten
>> SUSD
>>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Mike Bonner via use-livecode
couldn't you also..

put quote & it & quote into tFile

On Wed, Jun 21, 2017 at 12:24 PM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> @Roger
>
> Nice!
>
> This code works with filenames with spaces, too:
>
> 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 space with "%20" in tFile
>
> set the url of widget 1 to tFile
>
> end if
>
> end mouseUp
>
> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Have you tried "my%20Pdf"?
> >
> > ~Roger
> >
> > On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Hmm, it seems that the spaces are the culprit. I did a quick test, and
> > > selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
> > throws
> > > an error.
> > >
> > > This looks like a bug to me :)
> > >
> > > Best,
> > > Panos
> > > --
> > >
> > > On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > It contains spaces, but no unicode that I can see.  i.e.
> > "Transportation
> > > > Bus Software Laptop.pdf”
> > > >
> > > > Thank you!
> > > >
> > > >
> > > > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > > > use-livecode@lists.runrev.com> wrote:
> > > > >
> > > > > Hi John,
> > > > >
> > > > > Does the pdf filename you select contain any unicode characters?
> > > > >
> > > > > Best,
> > > > > Panos
> > > > > --
> > > > >
> > > > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > > > use-livecode@lists.runrev.com  runrev.com
> > >>
> > > > wrote:
> > > > >
> > > > >> Hi All,
> > > > >>
> > > > >> I am trying to display a PDF in a browser widget using the
> tutorial
> > > > here:
> > > > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > > > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > > > >> display-a-pdf-in-livecode  > > > http://lessons.livecode.com/>
> > > > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > > > >>
> > > > >> and this code:
> > > > >>
> > > > >> 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
> > > > >>  set the url of widget "browser" to tFile
> > > > >>   end if
> > > > >> end mouseUp
> > > > >>
> > > > >>
> > > > >> I’m getting this error:
> > > > >>
> > > > >> button "Button": execution error at line 6 (extension: error
> occured
> > > > with
> > > > >> domain) near "runtime", char 1
> > > > >>
> > > > >>
> > > > >> Would this be a bug, or am I doing something incorrectly?
> > > > >>
> > > > >>
> > > > >> Thank you!
> > > > >> John Patten
> > > > >> SUSD
> > >
> > >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
@Roger

Nice!

This code works with filenames with spaces, too:

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 space with "%20" in tFile

set the url of widget 1 to tFile

end if

end mouseUp

On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Have you tried "my%20Pdf"?
>
> ~Roger
>
> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hmm, it seems that the spaces are the culprit. I did a quick test, and
> > selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
> throws
> > an error.
> >
> > This looks like a bug to me :)
> >
> > Best,
> > Panos
> > --
> >
> > On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > It contains spaces, but no unicode that I can see.  i.e.
> "Transportation
> > > Bus Software Laptop.pdf”
> > >
> > > Thank you!
> > >
> > >
> > > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > > >
> > > > Hi John,
> > > >
> > > > Does the pdf filename you select contain any unicode characters?
> > > >
> > > > Best,
> > > > Panos
> > > > --
> > > >
> > > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > > use-livecode@lists.runrev.com  >>
> > > wrote:
> > > >
> > > >> Hi All,
> > > >>
> > > >> I am trying to display a PDF in a browser widget using the tutorial
> > > here:
> > > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > > >> display-a-pdf-in-livecode  > > http://lessons.livecode.com/>
> > > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > > >>
> > > >> and this code:
> > > >>
> > > >> 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
> > > >>  set the url of widget "browser" to tFile
> > > >>   end if
> > > >> end mouseUp
> > > >>
> > > >>
> > > >> I’m getting this error:
> > > >>
> > > >> button "Button": execution error at line 6 (extension: error occured
> > > with
> > > >> domain) near "runtime", char 1
> > > >>
> > > >>
> > > >> Would this be a bug, or am I doing something incorrectly?
> > > >>
> > > >>
> > > >> Thank you!
> > > >> John Patten
> > > >> SUSD
> >
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Roger Eller via use-livecode
Have you tried "my%20Pdf"?

~Roger

On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hmm, it seems that the spaces are the culprit. I did a quick test, and
> selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws
> an error.
>
> This looks like a bug to me :)
>
> Best,
> Panos
> --
>
> On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It contains spaces, but no unicode that I can see.  i.e. "Transportation
> > Bus Software Laptop.pdf”
> >
> > Thank you!
> >
> >
> > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Hi John,
> > >
> > > Does the pdf filename you select contain any unicode characters?
> > >
> > > Best,
> > > Panos
> > > --
> > >
> > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > use-livecode@lists.runrev.com >
> > wrote:
> > >
> > >> Hi All,
> > >>
> > >> I am trying to display a PDF in a browser widget using the tutorial
> > here:
> > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > >> display-a-pdf-in-livecode  > http://lessons.livecode.com/>
> > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > >>
> > >> and this code:
> > >>
> > >> 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
> > >>  set the url of widget "browser" to tFile
> > >>   end if
> > >> end mouseUp
> > >>
> > >>
> > >> I’m getting this error:
> > >>
> > >> button "Button": execution error at line 6 (extension: error occured
> > with
> > >> domain) near "runtime", char 1
> > >>
> > >>
> > >> Would this be a bug, or am I doing something incorrectly?
> > >>
> > >>
> > >> Thank you!
> > >> John Patten
> > >> SUSD
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hmm, it seems that the spaces are the culprit. I did a quick test, and
selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws
an error.

This looks like a bug to me :)

Best,
Panos
--

On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It contains spaces, but no unicode that I can see.  i.e. "Transportation
> Bus Software Laptop.pdf”
>
> Thank you!
>
>
> > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi John,
> >
> > Does the pdf filename you select contain any unicode characters?
> >
> > Best,
> > Panos
> > --
> >
> > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> Hi All,
> >>
> >> I am trying to display a PDF in a browser widget using the tutorial
> here:
> >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> >> display-a-pdf-in-livecode  http://lessons.livecode.com/>
> >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> >>
> >> and this code:
> >>
> >> 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
> >>  set the url of widget "browser" to tFile
> >>   end if
> >> end mouseUp
> >>
> >>
> >> I’m getting this error:
> >>
> >> button "Button": execution error at line 6 (extension: error occured
> with
> >> domain) near "runtime", char 1
> >>
> >>
> >> Would this be a bug, or am I doing something incorrectly?
> >>
> >>
> >> Thank you!
> >> John Patten
> >> SUSD
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com 
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com 
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
It contains spaces, but no unicode that I can see.  i.e. "Transportation Bus 
Software Laptop.pdf”

Thank you!


> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hi John,
> 
> Does the pdf filename you select contain any unicode characters?
> 
> Best,
> Panos
> --
> 
> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Hi All,
>> 
>> I am trying to display a PDF in a browser widget using the tutorial here:
>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- 
>> 
>> display-a-pdf-in-livecode > 
>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>> 
>> and this code:
>> 
>> 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
>>  set the url of widget "browser" to tFile
>>   end if
>> end mouseUp
>> 
>> 
>> I’m getting this error:
>> 
>> button "Button": execution error at line 6 (extension: error occured with
>> domain) near "runtime", char 1
>> 
>> 
>> Would this be a bug, or am I doing something incorrectly?
>> 
>> 
>> Thank you!
>> John Patten
>> SUSD
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hi John,

Does the pdf filename you select contain any unicode characters?

Best,
Panos
--

On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi All,
>
> I am trying to display a PDF in a browser widget using the tutorial here:
> http://lessons.livecode.com/m/4071/l/727199-how-do-i-
> display-a-pdf-in-livecode  m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>
> and this code:
>
> 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
>   set the url of widget "browser" to tFile
>end if
> end mouseUp
>
>
> I’m getting this error:
>
> button "Button": execution error at line 6 (extension: error occured with
> domain) near "runtime", char 1
>
>
> Would this be a bug, or am I doing something incorrectly?
>
>
> Thank you!
> John Patten
> SUSD
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Hi All,

I am trying to display a PDF in a browser widget using the tutorial here:  
http://lessons.livecode.com/m/4071/l/727199-how-do-i-display-a-pdf-in-livecode 


and this code:

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
  set the url of widget "browser" to tFile
   end if
end mouseUp  


I’m getting this error:  

button "Button": execution error at line 6 (extension: error occured with 
domain) near "runtime", char 1


Would this be a bug, or am I doing something incorrectly?


Thank you!
John Patten
SUSD
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode