• Web Resources Form needs to use correct mime type

    By Andrew Tetlaw 2 decades ago

    sending XML or CSS as text/html isn't good enough. If you make Domino use the URI in the doctype declaration, the browsers switch to standards mode (even with HTML4.01). Firefox in standards mode will not accept css sent with mime type text/html.



    I'm wondering why the mimetype field is even on the resource form. Are you using it at all?



    My wikis all lost their CSS style when I made the Domino doctype switch.



    I'm going to fix it in the template by making multiple copies of the Resource form, one for each mimetype choice in the mimetype field. Then I can use the form formula on the 'rsrc' view to switch forms based on the mimetype field.

    • Known issue

      By Benedict R Poole 2 decades ago

      > sending XML or CSS as text/html isn't good enough.



      Well pardon me.



      Yes, this is a known issue. Whe I added the MIME type field to the document, this was with a view to

      modiying the header on the fly when the document was served. However, you can't programmatically set

      the content-type header in Domno 6.x – no idea if that's changed in 7.



      If you want to fix it, that'd be great.

      • How to proceed?

        By Andrew Tetlaw 2 decades ago

        Hi Ben, I have fixed it, how can I send you my changes?

        • Me too ;o)

          By Benedict R Poole 2 decades ago

          1.1 fixes this as well. You can see it working at http://benpoole.com/wiki



          Thanks!