•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 403,039 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,845 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 440 | Replies: 1
![]() |
•
•
Join Date: Mar 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 1
Hey guys, I'm developing a portal to view a gallery (duh) of microsoft powerpoint presentation (ppt) files. If you're anaware, there's an option in powerpoint to output a presentation to a single MHTML file.
I'm trying to use an iFrame to show this single file, thus showing the slides.
The MHTML page works on its own, and the iFrame works when NOT within the javascript (I ploppped it into the body randomly just to check). The iFrame DOES work within the document.write javascript when I use a simple http page like http://www.google.com.
So my question is (to simplify)... how can I re-work the javascript to get this MHTML document showing in the iFrame?
Cheers.
I'm trying to use an iFrame to show this single file, thus showing the slides.
document.write('<iframe src="mhtml:\\blahblahblahEXAMPLELOCATIONURL/example/fullscreen.htm" frameborder=0 scrolling=no width="240" height="180"></iframe>');The MHTML page works on its own, and the iFrame works when NOT within the javascript (I ploppped it into the body randomly just to check). The iFrame DOES work within the document.write javascript when I use a simple http page like http://www.google.com.
So my question is (to simplify)... how can I re-work the javascript to get this MHTML document showing in the iFrame?
Cheers.
•
•
Join Date: Mar 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 1
for those that find this later... I've solved the problem with this little handy tool:
http://javascript.about.com/library/blscr02.htm
I copied my working HTML version into it, pressed convert, and a ctrl+c ctrl+v later, everything worked perfect!
http://javascript.about.com/library/blscr02.htm
I copied my working HTML version into it, pressed convert, and a ctrl+c ctrl+v later, everything worked perfect!
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Adbrite Java Ad Code Amendment Needed!
- Next Thread: Active Form Fields JavaScript


Linear Mode