code displays PDF directly from Windows explorer but not when called by II6 to Internet explorer

Discussion in 'HTML' started by Ed Hauptman, Aug 6, 2009.

  1. Ed Hauptman

    Ed Hauptman Guest

    Hi .
    I'm trying to generate a popup window of a .txt or pdf file that I extract
    from a database.

    If I have a html window called directly ( double clicked from explorer) it
    generates the PDF ok.

    <iframe src="ssg.pdf" style="width: 90%; height: 300px"
    scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0"
    hspace="0" >
    </iframe>


    However if i run it indirectly from a web server iis6 or iis5 or parse it
    through PHP it does not work and I get a blank page and an "object expected
    error code" generated.

    Any ideas. ? web server security issue?
    Ed Hauptman, Aug 6, 2009
    #1
    1. Advertising

  2. On Thu, 06 Aug 2009 08:01:25 GMT, "Ed Hauptman" <>
    wrote:

    >Hi .
    >I'm trying to generate a popup window of a .txt or pdf file that I extract
    >from a database.
    >
    >If I have a html window called directly ( double clicked from explorer) it
    >generates the PDF ok.
    >
    > <iframe src="ssg.pdf" style="width: 90%; height: 300px"
    >scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0"
    >hspace="0" >
    ></iframe>
    >
    >
    >However if i run it indirectly from a web server iis6 or iis5 or parse it
    >through PHP it does not work and I get a blank page and an "object expected
    >error code" generated.
    >
    >Any ideas. ? web server security issue?
    >


    why not doing like this:
    <td width="175"><span class="Style1 Style3"><a
    href="../images/menudumois.pdf" target="_blank"><img
    src="../images/menu.gif" width="100" height="122"
    border="0"></a></span></td>
    <td rowspan="2"><img
    src="../images/saveurslorraine/Saveurrestau.jpg" width="300"
    height="225"></td>


    from http://www.cardijn.be/cadre/menusaveurs.html
    you just have to click on the "menu du mois" picture at right side of
    the red arrow.
    the click brings you :
    http://www.cardijn.be/images/menudumois.pdf
    in another window.
    Raymond Schmit, Aug 6, 2009
    #2
    1. Advertising

  3. Gazing into my crystal ball I observed "Ed Hauptman"
    <> writing in
    news:p5wem.9730$:

    > Hi .
    > I'm trying to generate a popup window of a .txt or pdf file that I
    > extract from a database.
    >
    > If I have a html window called directly ( double clicked from
    > explorer) it generates the PDF ok.
    >
    > <iframe src="ssg.pdf" style="width: 90%; height: 300px"
    > scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
    > vspace="0" hspace="0" >
    ></iframe>
    >
    >
    > However if i run it indirectly from a web server iis6 or iis5 or
    > parse it through PHP it does not work and I get a blank page and an
    > "object expected error code" generated.
    >
    > Any ideas. ? web server security issue?
    >
    >


    Is ssg.pdf generated on the server before it is put in the Iframe, or
    does it already exist? Do you get an error code, do you get a line
    number, and if you do, what's on that line number? Do you have a URL?

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, Aug 6, 2009
    #3
  4. Gazing into my crystal ball I observed (Raymond
    Schmit) writing in news::

    > why not doing like this:
    > <td width="175"><span class="Style1 Style3"><a
    > href="../images/menudumois.pdf" target="_blank">


    Maybe because people like me hate it when authors use blank windows to open
    up PDF documents? Let the user choose whether to open something in another
    window or tab, or directly in the reader (as I do), if THEY choose to.

    Better:
    <a href="document.pdf" class="pdf" title="PDF Document">open document (pdf)
    </a>.

    CSS:
    a.pdf {background-image:url(icon_pdf.gif); background-repeat:none;
    background-position:right; padding-right:12px;}

    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, Aug 6, 2009
    #4
  5. Ed Hauptman

    Ed Hauptman Guest

    Thanks.
    All these work now but the current issue is they don't work for .pdf files
    but they work very nicely for .txt files. I get a PDF browser window say
    there is something wrong with my server delivered pdf's ( there isn't) . I
    think it is a II6 problem on my server . My browser works nicely for all
    other PDF's so I know it isn't the browser.

    bizarre=oh!




    "Adrienne Boswell" <> wrote in message
    news:Xns9C5F1D712E790arbpenyahoocom@188.40.43.213...
    > Gazing into my crystal ball I observed (Raymond
    > Schmit) writing in news::
    >
    >> why not doing like this:
    >> <td width="175"><span class="Style1 Style3"><a
    >> href="../images/menudumois.pdf" target="_blank">

    >
    > Maybe because people like me hate it when authors use blank windows to
    > open
    > up PDF documents? Let the user choose whether to open something in
    > another
    > window or tab, or directly in the reader (as I do), if THEY choose to.
    >
    > Better:
    > <a href="document.pdf" class="pdf" title="PDF Document">open document
    > (pdf)
    > </a>.
    >
    > CSS:
    > a.pdf {background-image:url(icon_pdf.gif); background-repeat:none;
    > background-position:right; padding-right:12px;}
    >
    > --
    > Adrienne Boswell at Home
    > Arbpen Web Site Design Services
    > http://www.cavalcade-of-coding.info
    > Please respond to the group so others can share
    >
    Ed Hauptman, Aug 6, 2009
    #5
  6. Ed Hauptman

    Ed Hauptman Guest

    OK>
    Seems the problem now is in my self generated PDF's from my scanner.

    The open nicely by acrobat directly but not the explorer plug-in.
    Non scanned PDF's do not generate this error and txt files display nicely
    now.

    Shite!/






    "Adrienne Boswell" <> wrote in message
    news:Xns9C5F1C2C7D3DCarbpenyahoocom@188.40.43.213...
    > Gazing into my crystal ball I observed "Ed Hauptman"
    > <> writing in
    > news:p5wem.9730$:
    >
    >> Hi .
    >> I'm trying to generate a popup window of a .txt or pdf file that I
    >> extract from a database.
    >>
    >> If I have a html window called directly ( double clicked from
    >> explorer) it generates the PDF ok.
    >>
    >> <iframe src="ssg.pdf" style="width: 90%; height: 300px"
    >> scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
    >> vspace="0" hspace="0" >
    >></iframe>
    >>
    >>
    >> However if i run it indirectly from a web server iis6 or iis5 or
    >> parse it through PHP it does not work and I get a blank page and an
    >> "object expected error code" generated.
    >>
    >> Any ideas. ? web server security issue?
    >>
    >>

    >
    > Is ssg.pdf generated on the server before it is put in the Iframe, or
    > does it already exist? Do you get an error code, do you get a line
    > number, and if you do, what's on that line number? Do you have a URL?
    >
    > --
    > Adrienne Boswell at Home
    > Arbpen Web Site Design Services
    > http://www.cavalcade-of-coding.info
    > Please respond to the group so others can share
    >
    Ed Hauptman, Aug 6, 2009
    #6
  7. Ed Hauptman

    dorayme Guest

    In article <oJAem.9810$>,
    "Ed Hauptman" <> wrote:

    > OK>
    > Seems the problem now is in my self generated PDF's from my scanner.
    >
    > The open nicely by acrobat directly but not the explorer plug-in.
    > Non scanned PDF's do not generate this error and txt files display nicely
    > now.


    In which case you may be able to reexport them from Acrobat or similar.
    If you scan as a TIFF and open in Photoshop, you can export as PDF and
    ditto if you have Illustrator.

    --
    dorayme
    dorayme, Aug 6, 2009
    #7
  8. Ed Hauptman

    Ed Hauptman Guest

    Problem solved (kindof)
    With Firefox everything works perfectly. IE of any flavour seems to hate my
    PDF's and rejects served PDF's from my II6.
    Probably some kind of security issue.

    As I am the only one using the program: this is not really an issue.
    Ed


    "Ed Hauptman" <> wrote in message
    news:9mAem.9806$...
    > Thanks.
    > All these work now but the current issue is they don't work for .pdf
    > files but they work very nicely for .txt files. I get a PDF browser window
    > say there is something wrong with my server delivered pdf's ( there isn't)
    > . I think it is a II6 problem on my server . My browser works nicely
    > for all other PDF's so I know it isn't the browser.
    >
    > bizarre=oh!
    >
    >
    >
    >
    > "Adrienne Boswell" <> wrote in message
    > news:Xns9C5F1D712E790arbpenyahoocom@188.40.43.213...
    >> Gazing into my crystal ball I observed
    >> (Raymond
    >> Schmit) writing in news::
    >>
    >>> why not doing like this:
    >>> <td width="175"><span class="Style1 Style3"><a
    >>> href="../images/menudumois.pdf" target="_blank">

    >>
    >> Maybe because people like me hate it when authors use blank windows to
    >> open
    >> up PDF documents? Let the user choose whether to open something in
    >> another
    >> window or tab, or directly in the reader (as I do), if THEY choose to.
    >>
    >> Better:
    >> <a href="document.pdf" class="pdf" title="PDF Document">open document
    >> (pdf)
    >> </a>.
    >>
    >> CSS:
    >> a.pdf {background-image:url(icon_pdf.gif); background-repeat:none;
    >> background-position:right; padding-right:12px;}
    >>
    >> --
    >> Adrienne Boswell at Home
    >> Arbpen Web Site Design Services
    >> http://www.cavalcade-of-coding.info
    >> Please respond to the group so others can share
    >>

    >
    >
    Ed Hauptman, Aug 7, 2009
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nobody
    Replies:
    0
    Views:
    345
    Nobody
    Aug 22, 2004
  2. Chumley Walrus
    Replies:
    1
    Views:
    12,175
    =?Utf-8?B?QnJpYW4gQnJvd24=?=
    Dec 16, 2004
  3. Web Developer
    Replies:
    1
    Views:
    440
    Ben Voigt
    Jan 5, 2007
  4. Mike Schinkel
    Replies:
    2
    Views:
    139
    Aaron Bertrand [MVP]
    Jan 30, 2004
  5. Replies:
    2
    Views:
    161
    Bob Barrows [MVP]
    Dec 1, 2005
Loading...

Share This Page