From: Alan Horkan (horkana@tcd.ie)
Date: Fri Aug 09 2002 - 05:19:48 EDT
On Fri, 9 Aug 2002, Eric Thomas wrote:
> Date: Fri, 09 Aug 2002 13:19:18 +0700
> From: Eric Thomas <info@idalot.com>
> To: Martin Sevior <msevior@physics.unimelb.edu.au>
> Cc: abiword-user@abisource.com
> Subject: Re: opening abiword from an html link
>
> Sorry Martin, it didn't work. IE still displays it, even as a "gz"
> file. It's not necessary that the browser display the abiword document as
> all users have abiword installed. If they could just click it and the file
> gets downloaded and opened in abiword (MIME type is already set), then that
> would suffice. Right now, we have to do a right click and "save as" and
> save it to the hard drive, then go open it in abiword. I would like to cut
> out that step if possible.
>
> Thanks,
> Eric
Internet Explorer is an 'interesting' beast.
it actually chokes on the Abiword DTD (i wont go into details, but the
Abiword DTD is technically correct) in a fairly normal circumstance.
If you wrote your own stylesheet (css or xslt maybe even by doing
something with xsl:fo) iexplore might display something vaguely readable.
I did some very limited experimenting before in which i took an abiword
document, renamed it to .xml and specified my own custom css.
Maybe if you set the mime type on the server to identify abiword docs as
Binary, that might be enough to stop the browser from trying to open it as
xml.
Mozilla however uses a default stylesheet and displays an abiword document
so it ends up looking something like a plaintext file.
As far as i know if you want to skip the extra stage you just have to hope
someone can get an abiword browser plugin going (as people at Oeone, they
embedded abiword in Mozilla) or keep it simple and just use html that is
what browsers know how to display.
Sincerely
Alan Horkan
> At 03:53 PM 8/9/2002 +1000, Martin Sevior wrote:
> >On Fri, 2002-08-09 at 14:44, Eric Thomas wrote:
> > > I'm having a bit of a problem with opening an abiword document from a web
> > > link. I've written a script to automatically create abiword documents
> > from
> > > a template file with data supplied from a database. The script then
> > writes
> > > an HTML page with a link to the document. On clicking the link, however,
> > > the browser just displays the source as an XML file.
> > >
> > > Any suggestions???
> > >
> >
> >Interesting. You need a browser to display abiword documents ideally :-)
> >Since it might be hard to convince MS to do that with IE, the next best
> >thing might be to write a plugin for IE that displays it.
> >
> >However I think what you really want is for the browser to automatically
> >open abiword. You might try gzipping the abiword file so the broiwser
> >does sniff it and open it as plain text. If the file is presented to
> >abiword it will be openned correct;y. It will also reduce the size the
> >the document by about a factor of 10.
> >
> >Cheers
> >
> >Martin
-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
This archive was generated by hypermail 2.1.4 : Fri Aug 09 2002 - 05:22:03 EDT