Thank you. 
It fixes the problem. 

The old server with the same codes works for all browsers. 

The new server (different version of Apache with the same version
Mason) with the same codes do not work for Firefox and Opera. After
adding $r->content_type('text/html'); in autohandler, it works now.
Thanks!

--- Oliver Jeeves <[EMAIL PROTECTED]> wrote:

> Wendy Tan wrote:
> > Please help. 
> > 
> > The autohandler has <html></html> tags and the component which
> returns
> > HTML codes has <table></table> codes. When using firebox and opera,
> the
> > page shows source code instead of normal nice web page. If I add
> <html>
> > again in the component, then the page displays fine. I don't think
> this
> > is a good fix because the source code ends up with mutiple <html>
> tags.
> > Where do you think the problem is from? Mason, Apache or browser? 
> 
> Sounds like the correct content type is not getting set. IE hides
> many
> problems in web pages by guessing what's "meant to happen". Hiding
> errors is bad.
> 
> You can add an Apache directive to get it to set the content type. Or
> set it in your root autohandler. Something like this:
> 
> $r->content_type('text/html');
> 
> ...Off the top of my head.
> 
> >
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/>
_______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to