User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Mar 2008
Posts: 5
Reputation: syncy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
syncy syncy is offline Offline
Newbie Poster

Javascript iFrame problem (having a brain fart)

  #1  
Jun 26th, 2008
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.

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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 5
Reputation: syncy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
syncy syncy is offline Offline
Newbie Poster

Re: Javascript iFrame problem (having a brain fart)

  #2  
Jun 26th, 2008
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!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC