Click to See Complete Forum and Search --> : Excel in javascript?
timboyk12
06-02-2005, 04:32 PM
Is there anyway to make a javascript so that an excel document would load directly in an IE browser. I know you can use an IFRAME, but that prompts the user to download the file first, which I don't want. I'm not sure if this would be a javascript or something else, so any help will be appreciated.
phpnovice
06-03-2005, 10:51 PM
I'm not completely sure what distinction you're trying to make as to your point. But...
HTML:
<a href="document.xls">document</a>
...or...
JavaScript:
top.location.href = "document.xls";
timboyk12
06-04-2005, 09:48 PM
That is what i had been doing, but it always asks the viewer to download a file before it loads, which I don't want it to do. Is there any way to get around that?
phpnovice
06-04-2005, 10:38 PM
No, I don't think so. Sorry. ;)
timboyk12
06-05-2005, 10:28 AM
Thanks i didn't think there would be because of all the "security features" in ie, thanks again for your help :)
phpnovice
06-05-2005, 02:43 PM
Cheers.