Iframe and Word documents

Joined
Apr 15, 2011
Messages
1
Reaction score
0
Thomas Hi

I noticed your posting here. I was wondering if you managed to get a solution? I am attempting the same thing but instead of the word document showing in the browser its opening as the application.

Suggestions are greatly appreciated.

Regards
Meir R.:dontknow:



"Jukka K. Korpela" <[email protected]> wrote in message
news:[email protected]...
> Steve Pugh <[email protected]> wrote:
>
> >>> <html>
> >>> <iframe src="tfs.doc" width="600px" height="400px" /> </body>
> >>> </html>
> >>
> >>That's not the right syntax for an iframe.

> >
> > True, it's missing any content for browsers that can't render
> > iframes.

>
> It also has incorrect (though valid) values for width and height
> attributes.
>
> Lack of any content in iframe is not a syntax error, however.
> <iframe src="tfs.doc" width="600" height="400"></iframe>
> is valid. Whether it's adequate is a different issue; it could be, since
> the adequate replacement on non-frames browsers might be empty, just as
> alt="" can be adequate in an <img> tag. But the content of iframe should
> not be left empty without consideration.
>
> > The more glaring errors in the above code are the </body>
> > with no <body> and the absence of the mandatory title element.

>
> Absence of title is surely serious, both formally and practically. The
> document also lacks a DOCTYPE declaration, so we cannot really guess
> whether it was meant to be HTML 4.01 or XHTML.
>
> If it is to be XHTML, then both <body> and </body> must be present.
> If not, both are optional. The presence of </body> does not affect the
> optionality of <body>. (But it's of course _confusing_ to omit just the
> start tag.)
>

Actually, it is going to be part of my ASP.Net page. I was just trying to
get the most basic page to only deal with the Iframes itself. As was
correctly pointed out, I am missing the Body tags. But once I get it the
way I want it, I was going to cut and past the IFrame section into my ASP
page.

I was mainly looking at how to best display my Work docs and IFrame seemed a
good way (if I can get rid of some of the controls (views, ruler etc) as I
am only going to use this to allow our inhouse people to access the pages
quickly. They are only going to view the pages.

Thanks,

Tom.
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/
> Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
>
>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top