I just tried that url here in Safari and the URL does get escaped by Safari, 
turning it into:
http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSChangeLog.pdf#pagemode=bookmarks&nameddest=Alterações%20no%20Portal

But, although Safari, IE and Firefox do display the PDF, neither go to page 7. 
Safari & IE do display the bookmarks, but FF does not.

If I try the same URL on Chrome (mac or win) it simply downloads the PDF, 
chrome does not display the pdf.

So, if Marcus test does work, then navigateTuURL seems to do a better job than 
the browser.

hth
julio


On Feb 6, 2014, at 4:29 PM, Marcus Fritze <[email protected]> wrote:

> This example works without any problems for me and it shows me the PDF on 
> page 7 (Altera... no Portal):
> 
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
>                          xmlns:s="library://ns.adobe.com/flex/spark" 
>                          xmlns:mx="library://ns.adobe.com/flex/mx" 
> minWidth="955" minHeight="600">
>       <s:layout>
>               <s:VerticalLayout horizontalAlign="center" 
> verticalAlign="middle"/>
>       </s:layout>
>       <fx:Declarations>
>               <!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, 
> Wertobjekte) hier -->
>       </fx:Declarations>
>       
>       <fx:Script>
>               <![CDATA[
>                       import flash.net.navigateToURL;
>                       
>                       private function openPDF():void
>                       {
>                               var strURL:String = 
> "http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSChangeLog.pdf#pagemode=bookmarks&nameddest=Alterações
>  no Portal";
>                               
>                               var urlReq:URLRequest= new URLRequest(strURL);
>                               
>                               navigateToURL(urlReq,"_blank");
>                       }
>                       
>               ]]>
>       </fx:Script>
>       
>       <s:Button label="open pdf" click="{openPDF()}"/>
>       
> </s:Application>
> 
> 
> 
> Am 06.02.2014 um 17:43 schrieb Pedro Serralha <[email protected]>:
> 
>> My code
>> 
>>              var strURL:String =
>> "http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSCha
>> ngeLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal"
>>                              
>>                      var urlReq:URLRequest= new URLRequest(strURL)
>>                      
>>                      navigateToURL(urlReq,"_blank");
>> 
>> Cumprimentos / Best Regards
>> Pedro Serralha
>> 
>> -----Original Message-----
>> From: Alex Harui [mailto:[email protected]] 
>> Sent: quinta-feira, 6 de Fevereiro de 2014 16:34
>> To: [email protected]
>> Subject: Re: Problems openning PDF file using navigateToURL
>> 
>> What are you actually passing into the URLRequest parameter?
>> 
>> On 2/6/14 8:07 AM, "Pedro Serralha" <[email protected]> wrote:
>> 
>>> Marcus thank you for replying.
>>> 
>>> But for what I understood, on both links you've sent. They tell how to 
>>> encode parameters on URL and the escape() is to convert a string to a 
>>> URL-encoded format, which is what I don't want.
>>> 
>>> 
>>> 
>>> As you can see
>>> 
>>> http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>> SCh
>>> an
>>> geLog.pdf#pagemode=bookmarks
>>> <http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicI
>>> MSC
>>> ha
>>> ngeLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal> 
>>> &nameddest=Alterações no Portal
>>> 
>>> 
>>> 
>>> The thing is that the last part of the URL 
>>> #pagemode=bookmarks&nameddest=Alterações no Portal is something 
>>> specific to the PDF readers, and  I don't think it can be considered an 
>>> normal http parameter. I don't know why the reader doesn't decode 
>>> correctly the encoded characters, but only if I could pass the pure 
>>> string without any encoding/ treatment, the thing would work.
>>> 
>>> 
>>> 
>>> Btw still using 4.6sdk on these project.
>>> 
>>> 
>>> 
>>> Cumprimentos / Best Regards
>>> 
>>> Pedro Serralha
>>> 
>>> 
>>> 
>>> From: Marcus Fritze [mailto:[email protected]]
>>> Sent: quinta-feira, 6 de Fevereiro de 2014 12:34
>>> To: [email protected]
>>> Subject: Re: Problems openning PDF file using navigateToURL
>>> 
>>> 
>>> 
>>> or maybe easier this:
>>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/pack
>>> age
>>> .h
>>> tml#escape()
>>> 
>>> 
>>> 
>>> Am 06.02.2014 um 13:24 schrieb Pedro Serralha
>>> <[email protected]>:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Greetings my friends
>>> 
>>> 
>>> 
>>> In our Webapplication we have some buttons that open an PDF file.
>>> 
>>> We are using the navigateToURL method.
>>> 
>>> 
>>> 
>>> The problem is that we are using bookmarks within the pdf and to open 
>>> an link and point to an bookmark the URL used is something like
>>> 
>>> 
>>> 
>>> http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>> SCh
>>> an
>>> geLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal
>>> 
>>> 
>>> 
>>> As you see, it accepts non standard characters on the URL as spaces and 
>>> ç and õ.
>>> 
>>> The link works with this characters if you put it directly on the 
>>> browser, but when I open it using the method above mentioned it 
>>> corrects the invalid characters.... and the bookmark pointer stops 
>>> working.
>>> 
>>> 
>>> 
>>> http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>> SCh
>>> an
>>> geLog.pdf#pagemode=bookmarks&nameddest=Altera%E7%F5es no Portal
>>> 
>>> 
>>> 
>>> 
>>> 
>>> So what I ask is, is there a way to open a link without these correction?
>>> 
>>> 
>>> 
>>> Thanks
>>> 
>>> 
>>> 
>>> Cumprimentos / Best Regards
>>> 
>>> Pedro Serralha
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
> 

--
Julio Carneiro


Reply via email to