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