Re: Excel export problem in IE



Dropping the browser is not the option. I have tried with the
header("HTTP/1.1 100 OK "); and header("Status: 200 OK"); but still
the same result.

J.O. Aho wrote:
mukherjeesubrato@xxxxxxxxx wrote:
Hi,
I have this script to export mysql data to excel. I have tried
everything but I am not able to get this script to work for IE. The
script downloads the data using Mozilla or Netscape but it fails and
says

Internet Explorer cannot download export.php from "IP Address" (this is

the IP on which the file resides). Internet Explorer was not able to
open this Internet site. The requested site is either unavailable or
cannot be found. Please try again later.


If I remove the header("Content-type: application/vnd.ms-excel;
name='excel'"); then it outputs the database values on the page even
using IE . Not sure what is wrong with the script.

MSIE has great deal of problems with mime types (I guess it's for bill didn't
understand how it worked), you may need to add the following two headers
before the content-type

header("HTTP/1.1 200 OK");
header("Status: 200 OK");

I do strongly suggest you drop the broken browser and use only your Mozilla
or/and NetScape.


//Aho

.



Relevant Pages

  • Re: Which Is The Better Approach To Working With Javascript?
    ... implementation has no interprocess communication capability, or ability to interface with a script interpreter. ... Java SCRIPT runs in the browser exclusively. ... No language is written just for a single environment. ...
    (comp.lang.php)
  • Re: How do i disable right click to stop people copying my site
    ... > This script is *NOT* fool-proof. ... > their browser, use a browser which doesn't support JavaScript, or use a ... > pages and images are normally stored in the user's browser cache (for ... > Internet Explorer 5 that will encrypt JScript code - but this is only ...
    (microsoft.public.frontpage.client)
  • Controling Modal Dialogs
    ... In order to trap new windows created by script calls to window.open, ... Form and a new browser control in that tab. ... window.external.showModalDialog(dialog, varArgIn, varOptions);} ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Absolute element offsets--exercise in futility
    ... browser sniffing in lieu of feature testing. ... implemented in the latest rewrite of jQuery purports only to support ... it is dynamic script injection. ...
    (comp.lang.javascript)
  • Re: Problems with PrintReady javascript and published Frontpage 2003 web site
    ... 2003 web site ... > In your script delete the 5 lines you have added between ... > Then Test in Browser before you publsih ... > | link it opens a new windows and my browser freezes. ...
    (microsoft.public.frontpage.client)