Open pdf in browser: inexplicable issue

Hi, so I've been using flash for a little while, mainly self-taught.  The following is an AS2 question, because I'm still wading my way through AS3, being completely unfamiliar with programming.
I'm trying to do something that i've done in the past in most versions of flash between MX and CS3, but now I'm doing it with cs5.5 which I haven't done before.
I have a fairly simple interactive portfolio which will be burned onto CD.
In one page, I have a button which aims to link to a PDF that's in the same directory as the flash movie, in the user's default browser, using
pdfbutton.onRelease = function (){
           getURL("a_document.pdf", "_blank");
which usually works, just opening up the browser, or a tab in the browser, and then doing whatever the user's browser does with pdfs, whether that's open them, prompt to open with or save or whatever.
However, now what's happening is that the browser opens (and i've tried it in chrome and internet explorer), and appears to attempt to open a URL called 'a_document.pdf' or 'http://a_document.pdf' in chrome and explorer respectively, which of course isn't a real url, and so it gives me a 'page not found'.  Has something changed in the way either CS5 or most modern browsers open documents in this manner that would mean doing things like that?  If so, how would I go about getting it to open off the local location?

kid-hatrack wrote:
I have a fairly simple interactive portfolio which will be burned onto CD.
What server?  Sorry, that sounds snarky, I know you're trying to help me.  But, swf is on local drive, pdf is on local drive. Opens great online, which makes sense, considering getURL is designed to open urls, but tries to parse filename as a url, which I feel like it didn't used to do.
Anyhow, after further internetting, I think my best bet is to figure out what fscommand is and how to use it.

Similar Messages

  • Cannot open PDFs in browser in IE from Search Center

    [SYSTEM]
    SharePoint 2013 Enterprise, 2WFE, 2App, 1SQL
    [ISSUE]
    We have a problem with opening PDF files from search results in IE. I can open PDFs in the browser with Chrome and Firefox in all site collections as well as search results.  If using IE10, I can open PDFs in browser everywhere except
    the Search results page. Also, if I right click on a document in search results, and click "Open in new tab" or "Open in new window", then the pdf opens up in browser just fine. If I copy the URL and paste it into the address
    box, the document will also open in browser with no problem.
    The only way that the browser tries to open a pdf document in the client is when you click on the document directly in Search results. All other ways of opening the file yield the right result.
    We really need PDFs to open in browser in IE.  Please help. 
    [TROUBLESHOOTING DONE]
    I set the Web Application Browser File Handling to Permissive from Central Administration.
    I specified for files to open in the browser in Search Center preferences accessible from the bottom of the search results page.
    I verified that "application/pdf" is an AllowedInlineDownloadedMimeType
    The Office Web Apps settings were modified to open PDFs in the default PDF reader rather than OWA.

    Hi Jerry,
    Can you check the similar thread
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d554e88c-d72f-46b0-8b1a-2f2024fcb9c0/i-e-8-browser-wont-open-pdf-file-returned-from-sharepoint-2010-search?forum=sharepointadminprevious
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Open PDF in browser - but cant control/close window from javascript

    Hi
    I hope I picked the correct forum
    Basically I have a site in asp classic. From a button I opens 2
    windows via javascript.
    One contains info, one shows a related file ( could be tiff or pdf ).
    When user closes info-window, I also close the file window via javascript, so that user only hav to click once.
    That works with tiff, but not with pdf, '!file.closed' returns that window are already closed.
    Somehow I simply loose contact to that window when I open pdf.
    My Adobe is set  with "open pdf in browser", version 10.1.2
    Any Ideas ?
    Overview what I do:
    function openTwoWindows(jnr,vikar,hvorfra){
              var left, top,vikar;
              width = (window.screen.availWidth/2)+80;
              width2 = (window.screen.availWidth/2)-80;
              height  = (window.screen.availHeight);
              info = window.open('info.asp'','top=0,left=0,height='+height+',width='+width+',resizable=yes,scr ollbars=yes,status=yes');
              var settings= 'toolbar=no,location=no,directories=no,'+
              'status=no,menubar=no,scrollbars=no,resizable=yes, top=0, left='+width+', height='+height+',width='+width2;
              file = window.open('showfile.asp?strJnr='+jnr+'&print=false','file',settings);
              info.focus();
    function closeFileWindow(){
                if(file && !file.closed){
                             file.close();
    if the file is a pdf -> showfile code in asp classic:
    Response.AddHeader "Content-Disposition","inline;filename=filename.pdf"
    Response.ContentType = "Application/pdf"
    'Response.Clear
    Response.Buffer = true
    // fetch file from database
    Response.BinaryWrite rsTmp("Fil")
    Response.Flush
    Response.End

    Read this:
    http://forums.adobe.com/thread/535609?tstart=0

  • Disable 'open PDF in browser'

    Hi,
    I'm trying to disable the open PDF in browser option in a corporate enviroment. The Adobe knowledge base said that this can be done by disabling the addon called 'Adobe PDF Reader'
    I've set a policy to disable this addon, but the PDF still open in the browser.  Any ideas?
    Also is there a registry key to disable instead? We are using IE11 as a browser.
    Thanks
    Dave

    Hello,
    Please try the below reg.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\11.0\Originals]
    “bBrowserIntegration”=dword:00000000
    ~Deepak

  • Can't open PDFs in browser

    Hello!
    My Mac can't open PDFs in the browser window anymore, but just offers a download dialogue.
    I already read in the forum, that it may help, to open the Acrobat Reader prefs and uncheck the "open PDF in browser window" option. The problem is though, that this option is greyed out, so I can' t uncheck it.
    And: As for me I don't need to open the PDFs using the Adobe plug in.
    I just want to see the PDFs quick and simple.
    Any ideas gladly appreciated!
    Thomas

    Remove the plugin from HD>Library>Internet Plugins.

  • Issues with opening PDF in browser

    I am trying to open a pdf in my browser but it will only save or save as.  I need it to open in my browser as I need to complete the areas allowed and save/send back.
    I looked in the Reader and it shows Web Browser options is correct.  I have Windows 7 and IE9.  Any help would be appreciated. 

    Yes, it is 64-bit.  Windows will not let me open/download the 32 bit.  Any way around this?  I need to do this on a daily basis to where I will need to buy another computer if no way around.  Thanks for the help!

  • Opening PDF in Browser when running in Server 2008 R2 RemoteApp (Terminal Services)

    We are running a RemoteApp server that allows users to access an intranet page, through this can can click and open a number of PDF documents.
    When connecting and running locally (RDP) the PDFs open in the browser as required, but when running through remoteApp its forcing the PDF to open into Adobe Reader.
    Im getting this on all versions of IE 9-11 and Reader 9-11, ive enabled view in PDF and also the IE add-ons but it still forces the file to open in the full application.
    Group polciy isnt an issue as Ive tested this on a live users, and also a clean slate test account. Ive even moved the RemoteApp server out of the domain and tried as a local system (with local accounts) and the same behaviour happens.
    This is the same if I try and open PDF documents from the internet.
    Any Advice would be good
    Steve.

    Hi Uber,
    This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
    included in the System Center 2012 Configuration Manager Service Pack 1.
    As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
    http://support.microsoft.com/KB/914159
    Hope this helps.
    Regards,
    Mike Yin
    Mike Yin
    TechNet Community Support

  • Opening PDF in Browser

    Hi everyone.....
    I had no issues with printing off Comodo with my Adobe until today when I went to print off some worksheets for my daughter and got this message "The Adobe Acrobat/Reader selected for viewing PDF documents in browsers cannot be found at its installed location; it may have been moved or deleted (0:0) . I have the most updated  version of Adobe and my dragon is also updated. The weird thing is this error only appears in my Comodo Dragon browser and in no other browser so it seems dragon is the issue. The upsetting this is that Comodo is my default browser.  is there anyway I can get the browser to accomodate the reader again? Any help would be appreciated please.
    Many thanks.

    "How about browser preferences? are you using 10.4.8? that would mean over two years without updates."
    There's nothing I can find in the browser prefs that affects this behavior. I'm running 10.5.7 of OSX.
    "Are you using Acrobat? latest 9.1+? a browser plug-in? to view pdfs?"
    Firefox launches Acrobat to open pdfs. I have the latest version the Acrobat reader. Safari uses Preview.
    "I'm not surprised a file is saved to disk. But does the browser delete temp files on quit or closing?"
    Actually, I am quite surprised that a copy of a pdf opened via a browser is left lying around. This is bad behavior.
    There is no temp file. Immediately upon clicking the url and the pdf file opening, there is a copy of the file on the desktop.
    "Other things to try: backup your system (clone, so it is bootable) and repair the drive and permissions with SuperDuper and Disk Warrior. Just to be sure you have backup, and that it is working properly."
    I don't really get the fixation on these forums with repairing permissions. It is unlikely to fix anything other that an app that will not run or that cannot access one of its supporting files. I've used Macs since they came into existence and have worked with UNIX almost as long. I have NEVER seen a problem fixed by repairing permissions and have never seen permissions actually repaired except after a software install. And that is a symptom of a poorly designed installer. Sorry to rant.
    Thanks for the reply.

  • Open PDF in Browser SharePoint

    I wanted my web app to allow opening of PDF files in the browser. I performed the action below which solved the issue.
    $webApplication = Get-SPWebApplication "http:/yourwebapplicationurl"
    $webAppApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
    $webApplication.Update()
    As a test I removed that ability with the script below.
    $webApplication = Get-SPWebApplication "http:/yourwebapplicationurl"
    $webApplication.AllowedInlineDownloadedMimeTypes.Remove("application/pdf")
    $webApplication.Update()
    The problem was that I was still able to open PDF files in the browser after reverting my change. Any ideas why this occured? I tried restarting SharePoint services and IIS.

    Hi,
    Please use the following script
    # This script adds new MIME type to "AllowedInlineDownloadedMimeTypes" property list of defined SharePoint 2010 Web Application.
    # Script prompts you for MIME type and Web Application URL.
    # Code shall run in context of Farm Administrators group member.
    If ( (Get-PSSnapin -Name "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null ) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    Get-SPWebApplication
    $WebApp = Get-SPWebApplication $(Read-Host "`nEnter Web Application URL")
    Write-Host `n"Mime Type Examples:"`n"application/pdf, text/html, text/xml"`n
    If ($WebApp.AllowedInlineDownloadedMimeTypes -notcontains ($MimeType = Read-Host "Enter a required mime type"))
    Write-Host -ForegroundColor White `n"Adding" $MimeType "MIME Type to defined Web Application"$WebApp.url
    $WebApp.AllowedInlineDownloadedMimeTypes.Add($MimeType)
    $WebApp.Update()
    Write-Host -ForegroundColor Green `n"The" $MimeType "MIME type has been successfully added."
    } Else {
    Write-Host -ForegroundColor Red `n"The" $MimeType "MIME type has already been added."
    **Please don't forget to mark as answered and helpful

  • Disabling open pdf in browser in adobe PRO XI not reader

    I have deployed adobe pro out to our user base and i understand in adobe PRO X there was a check box that would disable open pdf in a browser but that has gone away. I have gone under the preferences and on the internet section in PRO XI there is a link that takes you
    here: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html I have created a GPO that disables the active X control in both IE 8 and IE 10 as you can see from this screen shot the adobe pdf reader is disabled so according to the instructions on the web all pdf files should open in PRO XI. This is not the case. The pdf will still open in the browser. I have checked the new customizations wizzard for adobe PRO XI and there is nothing to disable disply pdf in the browser to uncheck that i am aware of. I have read about the bdisablewebintegration but this have not worked either under the FeatureLockDown. In adobe reader you can go under the accessibilty options and disable open within a browser there but I have been unable to find that option in PRO XI. Had anyone found a fix for this issue to where it can be deployed out?
    Please let me know
    Thanks
    pjhernan

    From the screenshot it looks like you have both Acrobat and Reader on the machine and only Reader is disabled.
    Check again. If you think the doc is incorrect, post back.
    --- more info ---
    All browser integration prefs were deprecated with 11.x because browser companies are releasing new versions every 6 weeks or more. It was simply not possible to keep pace without requiring admins to update every few weeks. Moreover, most browsers are gradually phasing out such plugins or at least disable them by default (e.g. Chrome). Many companies provide a browser-specific PDF viewer. Acrobat and Reader share the same config and there's nothing different between the two.
    Ben

  • Browser Crashing when opening PDF inside Browser

    I have a Windows XP Pro SP 3 with IE 7 , Acrobat Pro 9.
    My issue is that whenever I open a PDF inside the browser I get a error message stating that the browser crashed / stopped responding and needs to close.  The work around that we have been using was simply inside Adobe going to  edit> preferences> internet> unchecking view PDF in browser.
    We are launching a new application that requires a PDF to be displayed inside a browser.  Any help would be greatly appreaciated.
    This issue also happens with Firefox, and I have removed and reinstalled adobe several times.
    Thanks,
    Adam

    To clarify what you posted:
    When opening the PDF document, your browser closes. When pressing the control key and opening the document, you get a dialog window (with the choices of open or save). What happens when you select open?
    This is browser behavior, nothing to do with this being a PDF file. Which browser and which platform? If you are using IE7, popup blocker is automatically enabled, and if you are viewing this on a 2003 server, you have server security settings to override. Pressing the control key allows popups.

  • Adobe Reader will not open PDF in browser simple answer.

    I just had this problem and was able to work through it with the help of tech support from TD Ameritrade.  The fix is simple so read on.  After uninstalling and reinstalling all things adobe and trying other recommendations on these forums I was stumped.  I called my broker tech section since I couldn't open their reports and we identified what my specific problem was.  For me, and I imagine some of you this will help and prevent a lot of wasted time.
    Nothing was wrong with my Adobe Reader.  My problem was that I have a 64 bit operating system and both of my default browsers were 64 bit browsers.  I did not know my internet explorer default browser was the 64 bit one until the technician that assisted me informed me that a recent windows update made all 64 bit systems default to 64 bit internet explorer browsers.  You cannot change that default by choosing between 64 bit and 32 bit, because you can only choose internet explorer.  That explains why my attempts to open with a 32 bit browsers always failed.  I also tried with Firefox thinking it was 32 bit and it failed as well.  The technician informed me Firefox is a 64 bit browser and then it made sense.  I guess the recent Adobe reader update caused a change that no longer allowed my 64 bit system and 64 bit browser to open PDF's through the browser. The technician who assisted me has a 64 bit system and only uses 64 bit browsers and can still open PDF's through those browsers.  That confused us for a while until we realized he had his Adobe updater turned off and therefore had not been exposed yet to the update that originated my problems.
    ****ANSWER FOR MY PROBLEM*******The quick answer is use Google Chrome or some other 32 bit browser.  If you set a 32 bit browser as your default, the PDF's will open.  You cannot set Internet Explorer 32 bit browser as your default if you have a 64 bit system and also have 64 bit Internet Explorer.  The windows update prevents you from doing it.  At least that is my understanding. 
    The bottom line is I have the newest Adobe Reader on a 64 bit system and can open any web PDF with Google Chrome set as my default browser, because it is a 32 bit browser.  The new Adobe Reader will not open PDF's with a 64 bit browser in Vista.  A 64 bit system is fine as long as you use the 32 bit browser to open your PDF's in Vista.  I hope this helps some avoid some headaches.  I wish it had been posted when my problem first arose. 
    I think you can use a 64 bit browser in Windows 9 or later, but for Vista the above applies.

    Yes I can create a short cut to internet exp. 32 bit on my desktop and I can even be using Internet expl. 32 bit, but when I try to open a PDF with adobe reader it won't work with internet exp. as my default browser b/c windows will always choose Internet exp. 64 bit which isn't supported yet by adobe reader.  With google chrome as my default browser windows can't choose an unsupported 64 bit browser in its place b/c google chrome doesn't have a 64 bit version.
    My post was for those people who may not have realized yet that windows would not ever choose Internet expl. 32 bit over Internet expl. 64 bit if both exist on their system.  For them it is easiest to just choose a default browser that only has a 32 bit version. 
    If I understood your reply correctly, you were telling me how to create a shortcut to Internet exp. 32 bit on my desk top.  However, having that shortcut on my desk top and opening my browser through it will not prevent the problem of windows choosing my Internet exp. 64 bit browser for pdf's I try to open from the web.  Thank you for your response, but I think the problem that I have tried to explain does exist for many users and can only be fixed by using a 32 bit browser that is not Internet explorer as your default browser.  At some point if windows fixes the update that always chooses Internet expl. 64 bit over Internet expl. 32 bit, then this will all be irrelevant.
    Thanks
    Sent from my iPod

  • Problem with opening pdf in browser

    Hello
    Acrobat X Pro 10.0.0.396 was installed on PC with Adobe Reader 9 (tried with Reader 10). When I open pdf documents from browser IE 8 or FireFox 3.5 i cann't see Tools panel and buttons from quick area (only Comments and Share).
    plugin in browser - Adobe Acrobat 10.0.0.396 but i think document opens with plugin from Reader. But i deleted it from PC
    thank you in advance

    Each user would have to set each browser individually.
    Note: I don't think it's possible to set the default PDF viewer with code for every user who visits the site.
    See the following link to enable Adobe Reader as the default PDF viewer in different browsers:
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Note: Not all PDF viewer browser plug-ins support PDF submissions, and most 3rd party viewers may not support forms created with LiveCycle or forms with Extended Reader Rights enabled.

  • Unable to open PDF in Browser

    I have Adobe reader 11.0.0.3 installed, it was working fine for all my users, when suddenly they started complaining that they couldnt open pdf in Internet Explorer. I tested on a machine and it was fine, I installed the latest windows patching and then it stopped working, now I just get a little red 'X' whenever I try to view a PDF file in the browser.
    When I go to 'Manage Add-ins' in Internet explorer the publisher field in the menu windows shows 'Control nam is not Valid' for Adobe PDF.
    Please help, this is really urgent for my users.

    Active X controls go back to IE1. The error you're seeing is "Control name not valid" that means an ActiveX control is not working properly with IE... regardless of version. 
    Turning off filtering usually solves this. Repairing IE might do it too.

  • FF 5 no longer opens pdf in browser window & only fix on offer, Dafizilla ViewSourceWith, won't instal and greys out Menu bar.

    ''locking this thread - discussion is here - https://support.mozilla.com/en-US/questions/857882''
    I thought I had the Foxit Reader Plug-In reinstalled since I installed FF5, but I've reinstalled it again anyway and reset it to open in Firefox under Tools Options. Once I was happy with the latest Foxit Reader I really didn't want to even try the dead-buried-and-decomposed Adobe Acrobat again. I've disabled that now as it wasn't opening pdfs in Firefox either when I had it selected under Tools Options.

    These are the steps I performed on my own system many months ago. I could not view PDF files in Firefox with both Adobe Reader and Foxit installed.
    #Close Firefox (File > Exit '''''OR''''' Firefox button > Exit)
    #If you have not already done so, uninstall Adobe Reader 9.4.5 using Windows Start > Settings > Control Panel > Add or Remove Programs, click on the item, click Remove. You may need to restart your system.
    #Open Foxit in your programs list Windows Start > Programs
    #*on the Foxit menu, click Tools > Preferences
    #*click File Associations and be sure "Display PDF in browser" is checked then click "Make Default PDF Viewer" then click OK
    #*close Foxit Reader (File > Exit)
    #Start Firefox
    #*Open the Applications panel (Tools > Options > Applications '''''OR''''' Firefox button > Options > Options > Applications)
    #*type '''pdf''' in the search box; you should see "Foxit Reader PDF document"
    #*in Action column, click the down arrow at the far right end
    #*choose "Use Foxit Reader plugin for Mozilla (in Firefox)'
    #**if the full name does not display, place the cursor over the item to see the full name in a tooltip box
    #Test on a pdf file from the internet
    #*If there is no toolbar at the top of the PDF display in the tab (just a blue strip), tap the F8 key to get the Basic toolbar, or right-click the blue strip at the top to display/not display other toolbars by clicking on them (checked=display; un-checked=do not display)
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

Maybe you are looking for

  • HP Officejet 100 Mobile Printer - L411a

    Hi, i just bought the printer HP Officejet 100 Mobile Printer - L411a I need it to be able to print riget from me Iphone 5 with supported app to print now i'm going to use it on my van on work. yesterday i try to connect it via bluetooth bet it not s

  • Lost ability to access iTunes via Airport after Force Quit - Network issue?

    I am not sure if this is iTunes or networking related, but all other networking appears ok. First my setup: multiple machines use iTunes library from an external HD connected to Airport Extreme, OS 10.4.11, iTunes 7.6.2. I had been updating ratings i

  • Brarchive through Db13

    Hi Support Team, Here we have an issue while taking backup of our Golden Master.We are trying to take backup through db13 ( whole database online + redo log backup).We are copying the whole databse backup to the local harddisk of the golden master se

  • Error reading monitor at RZ20

    Hello everybody There is a monitor of an instance at RZ20 that when I double click on it to set new monitoring parameters do not open and return a message informing that: "Unable to determine any information for several MTE nodes" . Anybody knows som

  • Poker Journal app won't install due to Apple bug in iOS8

    I've been working with the developer of the fantastic app, Poker Journal, as it will not work / install on iOS8. Unfortunately it seems to be an Apple problem but Apple isn't offering much help. Along with the other users of this app I'd greatly appr