You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/01/22 13:49:05 UTC
DO NOT REPLY [Bug 16324] New: -
Headers and css and javascript problems with dinamic content
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16324>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16324
Headers and css and javascript problems with dinamic content
Summary: Headers and css and javascript problems with dinamic
content
Product: Apache httpd-2.0
Version: 2.0.44
Platform: PC
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: ranier@cultura.com.br
Dinamic content generated by:
int med_evento_novo_handler( request_rec *r )
{
if ( strcmp( r->handler, "med-evento-novo-handler" ) ) {
return DECLINED;
}
r->allowed |= ( AP_METHOD_BIT << M_GET );
if ( r->method_number != M_GET ) {
return DECLINED;
}
ap_set_content_type( r, "text/html" );
if ( r->header_only ) {
return OK;
}
return med_evento_novo( r );
}
int med_evento_novo( request_rec *r )
{
...
ap_rputs( DOCTYPE_HTML_4_0S, r );
ap_rprintf( r, "<HTML><HEAD><TITLE>NOVO EVENTO</TITLE>"
"<LINK REL=\"StyleSheet\" HREF=\"%s/css/med.css\" TITLE=\"MED
css\" TYPE=\"text/css\">"
"<SCRIPT LANGUAGE=\"JavaScript1.2\" TYPE=\"text/javascript\">var
janela;</SCRIPT>"
"<SCRIPT LANGUAGE=\"JavaScript1.2\"
SRC=\"%s/javascript/vt_sup_cliente.js\" TYPE=\"text/javascript\"></SCRIPT>",
path, path );
ap_rputs( "</HEAD><BODY>", r );
...
Mozilla reports these errors:
Error: The stylesheet http://localhost/med/css/med.css was not loaded because
its MIME type, "text/html", is not "text/css".
Error: syntax error
Source File: http://localhost/med/javascript/vt_sup_cliente.js
Line: 1
Source Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
And trying telnet localhost 80
and GET /page
NOT RETURN ANY HEADER!!
ONLY THE HTML CODE!!!
Why the headers are not sent to client?
Why is include the first line of the html code in file vt_sup_cliente.js,
generating syntax error in javascript interpretation?
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org