|
List Info
Thread: Catalyst and chrome url (xul)
|
|
| Catalyst and chrome url (xul) |

|
2007-09-23 03:11:37 |
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
--
Javier E. Pérez P.
Maracay - Venezuela
http://dvst.wordpress.com
a>
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: Catalyst and chrome url (xul) |
  United States |
2007-09-23 09:58:40 |
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: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: Catalyst and chrome url (xul) |

|
2007-09-23 13:32:37 |
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 ul=&q
uot;http://www.mozilla.org/keymaster/gatekeep
er/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/vn
d.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: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
--
Javier E. Pérez P.
Maracay - Venezuela
http://dvst.wordpress.com
a>
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| XML MIME types (was: Catalyst and
chrome url (xul)) |
  Germany |
2007-09-25 11:26:37 |
* Javier E. Perez P. <templeofdvst gmail.com> [2007-09-23
10:20]:
> i already change the http header content_type to
text/xml
Don’t use `text/xml`, it is broken for numerous esoteric
reasons,
mostly to do with encodings. The easiest completely correct
thing
you can do is to use `application/xml` without a charset
parameter
in the HTTP header, making sure you specify the document
encoding
in the XML preamble instead.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/&g
t;
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: XML MIME types |
  United Kingdom |
2007-09-25 12:09:12 |
A. Pagaltzis wrote:
> * Javier E. Perez P. <templeofdvst gmail.com> [2007-09-23 10:20]:
>> i already change the http header content_type to
text/xml
>
> Don’t use `text/xml`, it is broken for numerous
esoteric reasons,
> mostly to do with encodings. The easiest completely
correct thing
> you can do is to use `application/xml` without a
charset parameter
> in the HTTP header, making sure you specify the
document encoding
> in the XML preamble instead.
>
> Regards,
Since its XUL and this is Firefox only, thats okay. But as a
general
point, ISTR application/xml is hideously broken with IE -
depends if
that is a problem to your application or not.
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: XML MIME types |
  Germany |
2007-09-25 14:24:54 |
* Ash Berlin <ash_cpan firemirror.com>
[2007-09-25 19:20]:
> Since its XUL and this is Firefox only, thats okay. But
as a
> general point, ISTR application/xml is hideously broken
with IE
Do you remember anything about how that would be? I know of
no
such problem.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/&g
t;
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
| Re: XML MIME types |
  Germany |
2007-09-25 15:10:02 |
* Ash Berlin <ash_cpan firemirror.com>
[2007-09-25 21:50]:
> A. Pagaltzis wrote:
> > * Ash Berlin <ash_cpan firemirror.com>
[2007-09-25 19:20]:
> >> Since its XUL and this is Firefox only, thats
okay. But as a
> >> general point, ISTR application/xml is
hideously broken with
> >> IE
> >
> > Do you remember anything about how that would be?
I know of
> > no such problem.
>
> Its more when you try to serve XHTML1.1 properly with
the
> appliction/xhtml+xml mime type. IE just does "What
do you want
> to do with this xml file?"
>
> Sorry - mis-leading on my behalf.
That’s completely different. I know about that problem,
but it
has nothing whatsoever to do with serving XML as
application/xml
vs text/xml.
Again: to serve XML, the correct way to do it is to use
application/xml with no charset parameter in the HTTP
header,
and with an XML preamble specifying the document encoding
if
it’s anything other than UTF-8. (Of course you can include
the
preamble for UTF-8 as well, but UTF-8 is the default
anyway.)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/&g
t;
_______________________________________________
List: Catalyst lists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalyst lists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
|
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|