wood burning stoves 2.0
The moose likes HTML, CSS and JavaScript and the fly likes open ppt using javascript in firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "open ppt using javascript in firefox" Watch "open ppt using javascript in firefox" New topic

open ppt using javascript in firefox

shreya vinay

Joined: Sep 02, 2005
Posts: 6
Dear all,

I have succesfully tried opening a powerpoint file in IE using ActiveXObject("PowerPoint.Application"). But since ActiveX is not supported by fire fox as far as i know, how can i open it in firefox?
Please add your suggestions.

Thanks in Advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
How about simply adding a link to the file? Either the client has PPT installed (in which case he may be offered to open it), or not (in which case saving it is the only option).
shreya vinay

Joined: Sep 02, 2005
Posts: 6

Thanks for your suggestion. can we have any other alternative other than saving to open in firefox?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63052

There is no alternative. If PowerPoint (or a program like Keynote that can open ppt files) is not installed, there's nothing you can do to make one magically appear.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32305

Also Firefox will not open the file within the Firefox window (unless someone has theirs configured to do so - I think that's possible.) The default is to launch PowerPoint externally.

Microsoft does offer a free (Windows) PowerPoint viewer. You could have a link to this for people who don't have PowerPoint installed.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: open ppt using javascript in firefox
It's not a secret anymore!