Sorry, I was getting a problem becose i try this code: http://mcy.velug.org.ve/jperez/catalyst-xul/menu-xul.xul
<?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <body> <xul:menubar id="sample-menubar"> <xul:menu id="file-menu" label="File"> <xul:menupopup id="file-popup"> <xul:menuitem label="New"/> <xul:menuitem label="Open"/> <xul:menuitem label="Save"/> <xul:menuseparator/> <xul:menuitem label="Exit"/> </xul:menupopup> </xul:menu> <xul:menu id="edit-menu" label="Edit"> <xul:menupopup id="edit-popup"> <xul:menuitem label="Undo"/> <xul:menuitem label="Redo"/> </xul:menupopup> </xul:menu> </xul:menubar> <p>My document</p> </body> </html> And i get the menu without the item of the first level, like this mini-screencast show: http://mcy.velug.org.ve/jperez/catalyst-xul/xul_text-xml.gif At this point i use $c->res->headers->content_type("text/xml") ; in catalyst. I thought that the problem whould be the way that it retrieve the style that render the xul by the chrome becose if I open the same file using firefox it render well. But just realize that i should have use: $c->res->headers->content_type("application/vnd.mozilla.xul+xml"); for that, now with this content type work fine :) http://mcy.velug.org.ve/jperez/catalyst-xul/xul_text-application.gif El dom, 23-09-2007 a las 09:58 -0500, Jonathan Rockway escribió: > Javier E. Perez P. wrote: > > Hi all, > > > > I'm trying to display xul elements in a page in my proyect in catalyst, > > i already change the http header content_type to text/xml, but comparing > > the result with the same file published with apache (no-catalyst) and > > making use of firebug, i realize that the global.css file isn't the > > same, why this happen? how can i fix it? > > > > Thanks beforehand > > Some more details would be helpful. We have no idea what "global.css" > is. What is it? Where are you serving it from? What is Catalyst doing > with this file? What is different between the Apache and Catalyst > versions? Answering these questions will make it easier to help you. > > One suggestion I have is to read the docs for > Catalyst::Plugin::Static::Simple. That shouldn't do any munging, > though, so I'm at a loss as to why the file would be different. > > Regards, > Jonathan Rockway > > _______________________________________________ > List: Catalyst@lists.rawmode.org > Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ > Dev site: http://dev.catalyst.perl.org/ -- Javier E. Pérez P. Maracay - Venezuela http://dvst.wordpress.com
signature.asc
Description: Esta parte del mensaje está firmada digitalmente
_______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/