Skip to search.
netburner_group · NetBurner - Embedded Ethernet

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
How to make MIME type of css files play nice?   Message List  
Reply Message #1705 of 6236 |
Re: How to make MIME type of css files play nice?

Hello Harald,

Thank you for posting your changes. The addition of CSS and XML was
added to the 1.99 RC1 build, and we will add the JS support to the
next build so you will not have to make changes if you update your
tool set. This should be out in about 6-8 weeks.

Thank you again

--- In netburner_group@yahoogroups.com, hajono <no_reply@...> wrote:
>
>
> Tod
>
> The Netburner tools do not handle CSS, JS, and XML files properly. I
> have had the same problem. To solve it I changed the 'comphtml.exe' to
> make it tag these filetypes properly. Then I changed the
> 'htmldecomp.cpp' in the system directory. This now recognises the new
> filetype tags and insert the correct mimetype before transmission.
> finally I added the new file typess to the enum in 'include/htmlfiles.h'
>
> here is the new enum:
>
> enum file_type { eTypeText,
> eTypeHtml,
> eTypeJpg,
> eTypeGIF,
> eTypeClass,
> eTypePNG,
> eTypeJar,
> eTypeOther,
> eTypeMPEG,
> eTypeCSS,
> eTypeXML,
> eTypeJS,
> eTypeWBMP };
>
>
> The changes in htmldecomp:
>
> int SendFullResponse( char *name, int sock )
> {
> .....
>
> case eTypePNG:
> SendHeader( sock, "image/png", fr->siz );
> break;
> case eTypeJar:
> SendHeader( sock, "application/x-zip-compressed", fr->siz );
> break;
> case eTypeXML:
> SendHeader( sock, "text/xml", fr->siz );
> break;
> case eTypeCSS:
> SendHeader( sock, "text/css", fr->siz );
> break;
> case eTypeJS:
> SendHeader( sock, "text/javascript", fr->siz );
> break;
> case eTypeWBMP:
> SendHeader( sock, "image/wbmp", fr->siz );
> break;
> case eTypeText:
> case eTypeOther:
> default:
> SendTextHeader( sock );
> break;
>
>
> The changes in the comphtml is too many to list in here. Partly caused
> by me lacking a native gnu compiler for my pc. I ended up with porting
> the application to MS VCpp, which was supisingly easy. I can try to post
> the new application in the file area if anyone is interested. Please let
> me know. Or I can mail it to you if you give me your mail address.
>
> btw, do anyone know how to hide my email address here ?
>
> Harald J
>
> Eltek Energy
>
>
>
>
>
>
> --- In netburner_group@yahoogroups.com, tod_syncor <no_reply@> wrote:
> >
> > I notice that if I put a valid
> > <!DOCTYPE...
> > in my html pages. Firefox (any maybe other browsers) won't load my css
> > style sheets. I get an error that states the .css file has a MIME
> > type of "text/plain" not "text/css". If I remove the DOCTYPE the error
> > becomes a warning and the stylesheets load. I had been just removing
> > the DOCTYPE, but now I find out it puts certain browsers in the wrong
> > mode (quirks mode, comaptability mode etc) when the DOCTYPE isn't
> > correct. Is the MIME type of the css file something I have control
> > over in the NetBurner? Can anyone tell me what I should do to make it
> > play nice?
> >
> > Thanks,
> >
> > Tod
> >
>








Wed Jun 28, 2006 6:51 pm

netburnergroup
Offline Offline
Send Email Send Email

Message #1705 of 6236 |
Expand Messages Author Sort by Date

I notice that if I put a valid <!DOCTYPE... in my html pages. Firefox (any maybe other browsers) won't load my css style sheets. I get an error that states the...
tod_syncor Offline Jun 21, 2006
1:41 am

Tod The Netburner tools do not handle CSS, JS, and XML files properly. I have had the same problem. To solve it I changed the 'comphtml.exe' to make it tag...
hajono Offline Jun 22, 2006
7:24 am

Hello Harald, Thank you for posting your changes. The addition of CSS and XML was added to the 1.99 RC1 build, and we will add the JS support to the next build...
netburnergroup Offline Send Email Jun 28, 2006
6:59 pm

Harald, Thank you very much I would love to have the new file, you can email me at tod_02 at syncorsystems.com (small attempt to keep the spiders from picking...
tod_syncor Offline Jun 28, 2006
10:20 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help