Hi, there. I am trying to create a dialog box, but I need it to use the application/xhtml+xml mime type in order to display MathML equations. Below is my simple test page:
As well, here is how I add the plugin to the tool bar:
When I set the mime type to plain old 'text/html' then the dialog opens correctly. When I set it to 'application/xhtml+xml' then the dialog opens, but I get the loading image and nothing happens at all. I have verified that the body page of the dialog is returned properly by my server, but something is silently failing when the mime type is application/xhtml+xml.
Has anyone ever made a dialog with this mime type, or does anyone know what might be going wrong?
Thanks!
<html> <head> <script type="text/javascript"> var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; </script> </head> <body> Hello, world. </body> </html>
As well, here is how I add the plugin to the tool bar:
FCKCommands.RegisterCommand( 'Equation_Editor' , new FCKDialogCommand( 'Equation Editor' , 'Equation Editor' , '/ia/secure/popup/equation.action' , 500,358 ) ) ; var oEquationEditorItem = new FCKToolbarButton('Equation_Editor', 'Enter a MathML Equation'); oEquationEditorItem.IconPath = FCKConfig.PluginsPath + 'equation/equation_icon.gif' ; FCKToolbarItems.RegisterItem( 'Equation_Editor', oEquationEditorItem ) ;
When I set the mime type to plain old 'text/html' then the dialog opens correctly. When I set it to 'application/xhtml+xml' then the dialog opens, but I get the loading image and nothing happens at all. I have verified that the body page of the dialog is returned properly by my server, but something is silently failing when the mime type is application/xhtml+xml.
Has anyone ever made a dialog with this mime type, or does anyone know what might be going wrong?
Thanks!
Re: application/xhtml+xml mime type for dialog boxes
Re: application/xhtml+xml mime type for dialog boxes
Sorry, I should have mentioned that I'm using Firefox 3.x. I know all about IE's problems with application/xhtml+xml.
Re: application/xhtml+xml mime type for dialog boxes
Re: application/xhtml+xml mime type for dialog boxes