[Catalyst] Catalyst and chrome url (xul)

Javier E. Perez P. templeofdvst at gmail.com
Sun Sep 23 19:32:37 GMT 2007

Sorry, I was getting a problem becose i try this code:


<?xml version=3D"1.0"?>
<html xmlns=3D"http://www.w3.org/1999/xhtml"
  <xul:menubar id=3D"sample-menubar">
    <xul:menu id=3D"file-menu" label=3D"File">
      <xul:menupopup id=3D"file-popup">
        <xul:menuitem label=3D"New"/>
        <xul:menuitem label=3D"Open"/>
        <xul:menuitem label=3D"Save"/>
        <xul:menuitem label=3D"Exit"/>
    <xul:menu id=3D"edit-menu" label=3D"Edit">
      <xul:menupopup id=3D"edit-popup">
        <xul:menuitem label=3D"Undo"/>
        <xul:menuitem label=3D"Redo"/>
    <p>My document</p>

And i get the menu without the item of the first level, like this
mini-screencast show:

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 :)


El dom, 23-09-2007 a las 09:58 -0500, Jonathan Rockway escribi=F3:
> 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 at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.or=
> Dev site: http://dev.catalyst.perl.org/
-- =

Javier E. P=E9rez P.
Maracay - Venezuela
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =3D?ISO-8859-1?Q?est=3DE1?=3D firmada
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070923/2a3d=

More information about the Catalyst mailing list