Next Question

Mahalo is adding a tip to all questions that don't offer a tip.
M¢37 Funded By Mahalo ? |
September 27, 2009 08:30 PM
RSS
Sure, that's easy. I do it all the time, and I have two general methods:
In both cases I do it by embedding an iframe in the page.
The first is to just make sure the browser has a plug in for the mime-type associated with that extention.
You might have to put a note on the page that includes the iframe that a plug-in is required, with a link for where to go to get the plug-in if they don't already have it.
In that case, you can call the raw file with it's native extention.
The second is for situations where odds are high that your uses will be using browsers enabled for downloading plugins on the fly, then make it so the page that's being called into the iframe is an html file with some embed code to embed the document in the html file that's in the iframe, and then wrap around it some object code that will fish for the plug-in and automatically load it if it's not already there, i.e., here's how I do it for flash files:
(NOTE: replace the [ with a left angle bracket when actually doing it... this board won't display html source)
[object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="300" height="250" id="whatever" align="wherever">
[param name="allowScriptAccess" value="sameDomain" />
[param name="allowFullScreen" value="true or false" />
[param name="movie" value="flash-file-name.swf" />
[param name="quality" value="high" />
[embed src="flash-file-name.swf" quality="high" bgcolor="#whatever" width="whatever" height="whatever" name="whatever" align="wherever" allowScriptAccess="sameDomain" allowFullScreen="true or false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
[/object>
Notice how the [embed src...> stuff is what gets the document inserted into the html file, but it's the [object...> stuff that gets the plugin if it's not there already.
There's probably other ways to do it, with javascripts etc., and those other ways will probably be added to your question as more answers, so make a list of them all and choose your favorites, but those two are what works 97.3% of the time for me.
Permalink | Report
Answered Question

Mahalo is adding a tip to all questions that don't offer a tip.
Is there a way to view word processing documents tabs inside a single window?
I have been searching for a system that would make it possible to view word processing documents inside a single window, with each document being a frame inside that window.
Interesting Question?
Yes (0)
No (0)
RSS
Best Answer Decided by Votes
| September 27, 2009 09:20 PM |
In both cases I do it by embedding an iframe in the page.
The first is to just make sure the browser has a plug in for the mime-type associated with that extention.
You might have to put a note on the page that includes the iframe that a plug-in is required, with a link for where to go to get the plug-in if they don't already have it.
In that case, you can call the raw file with it's native extention.
The second is for situations where odds are high that your uses will be using browsers enabled for downloading plugins on the fly, then make it so the page that's being called into the iframe is an html file with some embed code to embed the document in the html file that's in the iframe, and then wrap around it some object code that will fish for the plug-in and automatically load it if it's not already there, i.e., here's how I do it for flash files:
(NOTE: replace the [ with a left angle bracket when actually doing it... this board won't display html source)
[object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="300" height="250" id="whatever" align="wherever">
[param name="allowScriptAccess" value="sameDomain" />
[param name="allowFullScreen" value="true or false" />
[param name="movie" value="flash-file-name.swf" />
[param name="quality" value="high" />
[embed src="flash-file-name.swf" quality="high" bgcolor="#whatever" width="whatever" height="whatever" name="whatever" align="wherever" allowScriptAccess="sameDomain" allowFullScreen="true or false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
[/object>
Notice how the [embed src...> stuff is what gets the document inserted into the html file, but it's the [object...> stuff that gets the plugin if it's not there already.
There's probably other ways to do it, with javascripts etc., and those other ways will probably be added to your question as more answers, so make a list of them all and choose your favorites, but those two are what works 97.3% of the time for me.
Permalink | Report
Voted as best: fabliaux, kareul, dougs, safiqulislam, buddawiggi, elcookiemonster, bunnyphuphu, twinpairs, ewpldf
Answer this Question
Related Questions
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- mactavish911, November 30, 2009 08:09 AM
- tybon, November 30, 2009 07:33 AM
- rivers, November 30, 2009 07:22 AM
- zenphstudios, November 30, 2009 07:22 AM
- faustine27, November 30, 2009 07:07 AM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More
http://ubuntuforums.org/showthread.php?t=561394
http://sourceforge.net/projects/oootabbrowse/
...but I still need to set it up.