Re: Download in IE and Firefox

Discussion in 'HTML' started by John Hosking, Aug 14, 2008.

  1. John Hosking

    John Hosking Guest

    [F'up to a.html]
    On Wed, 13 Aug 2008 16:45:14 -0400, sheldonlg wrote:

    > <sheldonlg> wrote in message
    > news:...
    >>I am top-posting this one time because this in new stuff

    So? New stuff doesn't belong at the top, if it's building on what's already
    in the post you're "replying" to.

    >> and I am leaving
    >>the bottom for reference and description of the problem. I am also adding
    >>comp.lang.php as this is all done in php and there is a remote possiblity
    >>that I have to do something else in php.

    Very remote. But don't lets bother the folks over at c.l.php until the HTML
    actually works and your headers are correct. F'ups set to a.html.

    >> What is sent from php is as follows:
    >> Headers (done with header calls):
    >> Content-type: application/
    >> Content-Disposition: attachment; filename=foo.xls
    >> Pragma: no-cache
    >> Expires: 0
    >> followed by:
    >> <center><table border=1px><caption><h4>The Title</h4></caption>
    >> <th>First Column</th><th>Second Column</th><th>Third Column</th>
    >> <tr><td>1</td><td>2</td><td>3</td></tr>
    >> <tr><td>4</td><td>5</td><td>6</td></tr></table>

    I don't know the correct content-type for an Excel file, but assuming
    you've chosen wisely, why aren't you sending an Excel file as data? What I
    see you sending is some malformed corruption of an HTML table, sort of.
    What do you really expect/want to happen?

    >> These are sent via an echo statement in php.
    >> I have a sample app

    also with invalid HTML.

    > I have put the php code up in

    If you had put it up in a .txt file I might (*might*) have looked, although
    it exceeds my basic interest thus far.

    >> This sample app works fine in IE6, IE7, and FF.

    "Works," you say. Okay...

    >> My problem is that on the
    >> actual app, which is behind a firewall accessible only over VPN, I get the
    >> errors listed in the original post (below) for IE6 and IE7. FF is
    >> perfect.

    My guess is that you have different file associations depending on your
    browser environments. But I do not truly know.

    >> Does anyone have any ideas on how to track down this bug? I am looking
    >> for an approach. (A solution would be even better :), but that is like
    >> asking for the moon).

    Well, imperfect though it is, it seems that you have given us the part that
    *isn't* causing the problem. So maybe you need to look, er, not-here (but
    still address the problems I mentioned). What's the _difference_ between
    this sample here and your live page?


    Pondering the value of the UIP:
    Possessive "its" has no apostrophe. Even on the Internet.
    John Hosking, Aug 14, 2008
    1. Advertisements

  2. dorayme

    dorayme Guest

    In article <>,
    John Hosking <> wrote:

    > Well, imperfect though it is, it seems that you have given us the part that
    > *isn't* causing the problem.

    How else do you think sheldonlg is going find material to fill up his
    hugely long posts?

    dorayme, Aug 14, 2008
    1. Advertisements

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. Ryan Taylor
    Ryan Taylor
    Nov 10, 2004
  2. Steve C. Orr [MVP, MCSD]
    Steve C. Orr [MVP, MCSD]
    Mar 7, 2005
  3. Replies:
    Lothar Leidner
    Oct 11, 2006
  4. Paul Lautman

    Re: Download in IE and Firefox

    Paul Lautman, Aug 14, 2008, in forum: HTML
    Paul Lautman
    Aug 14, 2008
  5. Us

Share This Page