Open XML in excel with javascript?
- From: JaxDawg <jaxdawg@xxxxxxxxx>
- Date: Tue, 29 Jan 2008 13:09:28 -0800 (PST)
I have a spread*** saved as an XML spread*** so I can manipulate
it easier (and don't need COM). When I'm done, I want to display to
the user. Currently, I'm using simple JavaScript in my PHP file to
display the file when complete:
echo '<script type="text/javascript"> window.open("'.$file_nm.'")</
script>';
Since the file is .XML, which defaults to the browser to open - the
above code will display the XML as raw XML (text) in a new browser
window - rather than opening with excel.
In the XML is:
<?mso-application progid="Excel.***"?>
So, if the XML is saved locally - then opened, it will default to
Excel to open.
Is there anyway for the script to indicate that excel should be used
to open, rather than the (default) for XML - which is the browser?
Thanks in advance.
.
- Follow-Ups:
- Re: Open XML in excel with javascript?
- From: Bart Van der Donck
- Re: Open XML in excel with javascript?
- From: tomtom . wozniak
- Re: Open XML in excel with javascript?
- Prev by Date: Re: Why does this code NOT execute ?
- Next by Date: window.getSelection()
- Previous by thread: Why does this code NOT execute ?
- Next by thread: Re: Open XML in excel with javascript?
- Index(es):