Re: Sending XML to MSIE7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brian Dunning wrote:
> I just tried that, and unfortunately the MSIE7 toolkit behavior was the
> same. Darn, I had high hopes for your suggestion as soon as I read it. I
> fear this means there's little we can do server-side in PHP, except to
> choose something other than XML for the result.
> 
> 
> On Feb 14, 2008, at 11:56 PM, Per Jessen wrote:
> 
>> Brian Dunning wrote:
>>
>>> Does anyone know if there's a way to send XML to MSIE7 and avoid
>>> having MSIE mangle the XML with CSS to display it pleasantly as HTML?
>>>
>>
>> Isn't it enough to send it with Content-Type: application/octet-stream ?

Do you want the user to download the file?  Try using:
'Content-Disposition: attachment; filename="..."'

If you want to display the raw xml, you must uncheck an option in ie7 to
disable the style sheet.

-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux