On 26 sep, 08:09, EricHolmberg <[EMAIL PROTECTED]> wrote:
> I would like to use SVG and MathML embedded in an XHTML document --
> the reason for embedding is to eventually allow JavaScript to
> manipulate the DOM to update the display. Unfortunately, I am running
> into some browser issues and content-type issues.
>
> Firefox (and others) requires that I set a type of application/xhtml
> +xml for it to render correctly. IE requires that the type be text/
> html. So this brings up a few questions:
>
> 1. How can I set the MIMI content type that is returned in the HTTP
> response?
I think by using @expose parameter 'content_type' :
cf http://docs.turbogears.org/1.0/ExposeDecorator
> 2. What's the best way to do this dynamically based upon the client
> type?
May be playing with the "accept_format" parameter of expose, if it
appears that the different browser ask for different formats.
> 3. Are there other solutions I should consider?
Quick and dirty thought : using 2 different urls ?
Regards,
Christophe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---