Categories > OpenTBS with ODT >

Opening document as OTT ?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Ivo
Date: 2011-04-26
Time: 10:41

Opening document as OTT ?

We prefer to open the OpenOffice document as ott, since the user is then able to start editing the document straight away. When they press the save button in OpenOffice it will ask for a filename.
This works lovely in Google Chrome and IE7, unfortunately other browsers have a different behaviour.

When using Firefox 4.0 this opens a document 'brief.ott.odt' which has the disadvantages of not being able to edit the document straight away.
When using Opera 11.01 this opens a document 'brief.odt', which can be edited straight away, but when pressing the 'save' button it saves it in the temporary download folder.
When using Safari 5.0.5 (on Windows) this opens a document 'brief.ott', which can be edited straight away, but when pressing the 'save' button it saves it in the temporary download folder.

Is there any suggestion to modify the headers so that all browsers get the behaviour as in Chrome and IE? Especially Firefox is of importance to us, since it is most used by our users.

I use following code:
$OOo = new clsTinyButStrong;
$OOo->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
$OOo->LoadTemplate('brief.ott', OPENTBS_ALREADY_UTF8);
$OOo->Show(OPENTBS_DOWNLOAD,'brief.ott');

I'm using OpenTBS version 1.5.0