tags:

views:

80

answers:

2

Hi,

Can I open .htm file in HTML page and Edit it ?
e.g. using FrontPage inside HTML page to Open the .htm file and let one authorized user to modify contents of the .htm file, and then save the .htm file in the same folder from which the .htm file opened directly without searching for the folder ?


After Editing **************

This is my code:
first HTML page

<li> <a target="_blank" href="1.htm">List1 </a></li>  

1.htm file:  

<frameset cols="50%,*">
    <frame name="contents" target="main" src="file_i_want_to_edit.htm">
    <frame name="main" src="1.pdf">
</frameset>  

Thanks,

Ahmed.

A: 

Please explain:

Do you want to Open a .htm file in FrontPage?

Do you want to Open a .htm file inside a .html file while inside frontpage?

Do you want to Open a .htm file inside the .html file in a web browser?


I believe what your thinking of is an IFRAME. It has that behavior in FrontPage when in the Design View.

Inside your HTML page:

<iframe src="yourpage.htm"></iframe>

It will load:

src="yourpage.htm"

or

src="mysite/blah/weeow/yourpage.htm"

Inside the html page but you can edit this in front page and save changes.

Thus techinically editing your .htm page inside your .html page if that is what you mean.


This would cause it to look like you are typing into a box, which is actually the .HTM or .HTML page or whatever you have specified in the SRC. When editing it in design view* with Front Page.


If you want an editor for in browser like were a user can log in and edit a page. Something like editing a SO question or answer etc. With the text box that sort of thing. Or to just be able to see the source you are going to need server side validation and code. Not just Front Page.

Are you using any server side stuff? if so what so people can help you out.

Thqr
Those are questions, not an answer.
Jimmy Cuadra
yes they are questions to clarify the original question. With a presumed answer.
Thqr
But your response to the presumed answer doesn't actually address the issue of providing FrontPage type behaviour. All it does it give an example of using the iframe tag.
Michael Shimmins
It is by default and unchangeable that behavior but as you can see that it is not what OP was asking and I am still unsure what he was even saying.
Thqr
A: 

I gave the user access to the folder in web server, and built a favorite menu so that he can go directly to the required folder, then right click on the file and Open With... and choose FrontPage or SharePoint editor.

Another solution, you can go to IIS and choose MIME map and create a new type which will open say .htm files with msword.

Thanks,

Ahmed.

Prog_Sud