aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes raw HTML in Mozilla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "raw HTML in Mozilla" Watch "raw HTML in Mozilla" New topic
Author

raw HTML in Mozilla

Vani Bandargal
Ranch Hand

Joined: Oct 06, 2005
Posts: 82
Hello,
I am getting a raw html(the one got rendered to the browser) on Mozilla instead of actual page. This works fine in IE.

Please let me know what I am missing
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sounds like you are missing tags of some sort.

Run it through a validator:
http://validator.w3.org/

Eric
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Is the MIME type of whatever you are complaining about actually "text/html"?
Vani Bandargal
Ranch Hand

Joined: Oct 06, 2005
Posts: 82
Here is the HTML that I get if I use Mozilla. In IE I get proper page

<html><head>
<title>'Confidential Case Reports - Update Reports'</title>
</head>
<BODY class="BodyFont" >
<link rel="stylesheet" type="text/css" href="/hpn/ctrldocs/confcase/cdess.css">
<FORM ACTION="/hpn/cgi-bin/applinks/confcase/cdessupdt1" METHOD=POST>
<TABLE WIDTH="100%"><TR><TD ALIGN=left><I>Revised<BR>03/17/04</I></TD>
<TD ALIGN=CENTER><B><FONT SIZE="+1">New York State Department of Health
<BR>Communicable Diseases Confidential Case Reports</FONT></B></TD>
<TD ALIGN=right><I>Update</I></TD></TR></TABLE>
<BR>
<INPUT TYPE=HIDDEN NAME=cr_date VALUE="Mar 23 2007 11:39:21:000AM">
<INPUT TYPE=HIDDEN NAME=confirmed_date VALUE="">
<INPUT TYPE=HIDDEN NAME=creator VALUE=jg304108>
<INPUT TYPE=HIDDEN NAME=serialno VALUE=200701111025>
<INPUT TYPE=HIDDEN NAME=oldcaseco VALUE=1>
<INPUT TYPE=HIDDEN NAME=sexco VALUE=1>
<INPUT TYPE=HIDDEN NAME=pregco VALUE=>
<INPUT TYPE=HIDDEN NAME=discode VALUE=8>
<INPUT TYPE=HIDDEN NAME=lname VALUE=testing >
<INPUT TYPE=HIDDEN NAME=fname VALUE=general>

<TABLE class="table1" ALIGN='CENTER' WIDTH="100%">
<TR>
<TD ALIGN='CENTER'><A HREF=javascript:history.back()>Go back</A>

<TD ALIGN='CENTER'><A HREF="/doh3/applinks/cdess/mainMenu.do">Main</A></TD>
<TD ALIGN='CENTER'><A HREF="/doh3/applinks/cdess/mainMenu.do">New</A></TD>
<TD ALIGN='CENTER'><A HREF="/doh3/applinks/cdess/mainMenu.do">Update</A></TD>
<TD ALIGN='CENTER'><A HREF="/hpn/cgi-bin/applinks/confcase/cdessdelete">Delete</A></TD>
<TD ALIGN='CENTER'><A HREF="/hpn/cgi-bin/applinks/confcase/cdessdownload">Download</A></TD>
<TD ALIGN='CENTER'><A HREF="/hpn/ctrldocs/confcase/cdessreports.html">Reports</A></TD>
<TD ALIGN='CENTER'><A HREF="/hpn/ctrldocs/confcase/cdesshelp.html">Help</A></TD>
</TR>
</TABLE>
<HR>
<TABLE WIDTH='100%'>
<tr>
<TD>Serial # - <B>200701111025</B></TD>
<td>Name: <b>testing , general</b></td>
<TD><a method="post" href=https://bhnsm03.health.state.ny.us/hpn/cgi-bin/applinks/confcase/cdessprintrec?snum=200701111025 class="term" onKlick="var w=window.open(this.href, 'TestWindow');w.focus(); return false;">
View/Print Record 200701111025</A></TD>
</tr>
</TABLE><INPUT TYPE=HIDDEN NAME=dcode VALUE=8>
<INPUT TYPE=HIDDEN NAME=cntycode VALUE=001>
<INPUT TYPE=HIDDEN NAME=lname VALUE=testing >
<INPUT TYPE=HIDDEN NAME=serialno VALUE=200701111025>
<INPUT TYPE=HIDDEN NAME=supp_values VALUE="--------------------------------------------------------------------------------------------3-1-2007----3-1-2007----------------------------------------------------------">
<H2 ALIGN=CENTER>Gastroenteritis Supplemental Screen</H2>
<INPUT TYPE=HIDDEN NAME=discode VALUE=8>
<INPUT TYPE=HIDDEN NAME=state VALUE=gastro>
<HR>
<Table BORDER=1 WIDTH=100%>
<TH>Patient Data</TH>
<TR>
<TD>Name of Employer or School
<INPUT NAME="employer" MAXLENGTH=30 SIZE=30 VALUE="" onKeyUpp='return autoTab(this, 30, event);'></TD>
</TABLE>
<Table BORDER=1 WIDTH=100%>
<TH colspan=4><B> Clinical & Lab Data</TH></B>
<TR>
<TD colspan=2>Date of First Symptom
<INPUT NAME="symp_mo" MAXLENGTH=2 SIZE=2 VALUE="3" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="symp_day" MAXLENGTH=2 SIZE=2 VALUE="1" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="symp_yr" MAXLENGTH=4 SIZE=4 VALUE="2007" onKeyUpp='return autoTab(this, 4, event);'></TD>
<TD colspan=2>Time
<INPUT NAME="hour" Maxlength=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'> <B>:</B>
<INPUT NAME="minute" MAXLENGTH=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'>
AM/PM
<select name="ampm">
<option value=""></option>
<option value="A">AM</option>
<option value="P">PM</option>
</select> </TD>
<TR>
<TD colspan=4>
<TABLE BORDER=0 WIDTH=100%>
<TD ROWSPAN=2>Symptoms:</TD>
<TD>
<INPUT TYPE=CHECKBOX NAME=diarrhea VALUE=1>Diarrhea</TD><TD>
<INPUT TYPE=CHECKBOX NAME=bstool VALUE=1>Bloody Stool</TD><TD>
<INPUT TYPE=CHECKBOX NAME=cramps VALUE=1>Cramps</TD><TR><TD>
<INPUT TYPE=CHECKBOX NAME=fever VALUE=1>Fever <INPUT NAME=fev_temp MAXLENGTH=3 SIZE=3 VALUE="" onKeyUpp='return autoTab(this, 3, event);'>degrees
</TD><TD>
<INPUT TYPE=CHECKBOX NAME=vomiting VALUE=1> Vomiting</TD>
<TD>Other
<INPUT NAME="othersy" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
</TABLE>
</TD>
<TR>
<TD colspan=2> Duration of Symptoms
<INPUT name="durday" MAXLENGTH=3 SIZE=3 VALUE="" onKeyUpp='return autoTab(this, 3, event);'> Days</TD>
<TD colspan=2> Fatal Case
<select name="fatal">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD colspan=4>Lab ID Where Culture Identified:
<INPUT NAME="lab_namepfi" MAXLENGTH=5 SIZE=5 VALUE="" onKeyUpp='return autoTab(this, 5, event);'>
</TD>
<TR>
<TD colspan=4>Culture Submitted to Wadsworth State Lab
<select name="state_lab">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> <TR>
<TD colspan=2>Date Admitted
<INPUT NAME=hosp_mo MAXLENGTH=2 SIZE=2 VALUE="3" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME=hosp_day MAXLENGTH=2 SIZE=2 VALUE="1" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME=hosp_yr MAXLENGTH=4 SIZE=4 VALUE="2007" onKeyUpp='return autoTab(this, 4, event);'></TD>
<TD colspan=2>Date Discharged
<INPUT NAME="disch_month" MAXLENGTH=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="disch_day" MAXLENGTH=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="disch_year" MAXLENGTH=4 SIZE=4 VALUE="" onKeyUpp='return autoTab(this, 4, event);'></TD>
</TD>
<TR>
<TD colspan=4>Agent
<select name="agent">
<option value=""></option>
<option selected="selected" value="1">Campylobacteriosis</option>
<option value="2">Cryptospordium</option>
<option value="3">Cyclospora</option>
<option value="4">Giardia</option>
<option value="5">Listeria</option>
<option value="6">Salmonella Group</option>
<option value="7">Shigella</option>
<option value="8">Vibrio</option>
<option value="9">Yersinia</option>
<option value="0">Other</option>
</select> Specify Other (if applies)
<INPUT NAME="other_agent" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'>
<BR>Campy Species
<select name="spec_sero">
<option value=""></option>
<option value="C01">Bubulus</option>
<option value="C02">Coli</option>
<option value="C03">Concisus</option>
<option value="C04">Curvus</option>
<option value="C05">Doylei</option>
<option value="C06">Fecalis</option>
<option value="C07">Fetus</option>
<option value="C08">Hyointestinalis</option>
<option value="C09">Jejuni</option>
<option value="C10">Lari</option>
<option value="C11">Mucosalis</option>
<option value="C12">Rectus</option>
<option value="C13">Showae</option>
<option value="C14">Sputorum</option>
<option value="C15">Unknown</option>
<option value="C16">Upsaliensis</option>
<option value="C17">Venerealis</option>
<option value="C18">Other</option>
<option value="C1a">Non Viable</option>
</select>Specify Other (if applies)
<INPUT NAME='other_sero' MAXLENGTH=10 SIZE=10 VALUE='' onKeyUpp='return autoTab(this, 10, event);'> </TD>
<TR>
<TD colspan=4>Source of Specimen
<select name="source">
<option value=""></option>
<option value="01">Abscess</option>
<option value="02">Blood</option>
<option value="03">Bone</option>
<option value="04">CSF (Cerebrospinal Fluid)</option>
<option value="05">Gall Bladder</option>
<option value="15">GI aspirate</option>
<option value="06">Joint</option>
<option value="07">Other</option>
<option value="08">Otitis</option>
<option value="16">Small bowel biopsy</option>
<option value="09">Sputum</option>
<option value="10">Stool</option>
<option value="11">Throat</option>
<option value="12">Unknown</option>
<option value="13">Urine</option>
<option value="14">Wound</option>
</select> Specify Other (if applies)
<INPUT NAME="other_so" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD colspan=4>
Reporting Physician, Name
<INPUT NAME="physician" MAXLENGTH=20 SIZE=20 VALUE="" onKeyUpp='return autoTab(this, 20, event);'>
--- Telephone <INPUT NAME="phone" MAXLENGTH=12 SIZE=12 VALUE="" onKeyUpp='return autoTab(this, 12, event);'></td>
</TABLE>
<TABLE BORDER=1 WIDTH=100%>
<TH>Animals</TH>
<TR>
<TD>
Did Patient have direct or indirect contact with the following animals
3 days prior to onset of symptoms ?
<TABLE BORDER=0 WIDTH=100%>
<TD>
<INPUT TYPE=CHECKBOX NAME=cats VALUE=1>Cats</TD><TD>
<INPUT TYPE=CHECKBOX NAME=dogs VALUE=1>Dogs</TD><TD>
<INPUT TYPE=CHECKBOX NAME=mice VALUE=1>Mice</TD><TD>
<INPUT TYPE=CHECKBOX NAME=turtles VALUE=1>Turtles</TD><TR><TD>
<INPUT TYPE=CHECKBOX NAME=chickens VALUE=1>Chickens</TD><TD>
<INPUT TYPE=CHECKBOX NAME=ducks VALUE=1>Ducks</TD><TD>
<INPUT TYPE=CHECKBOX NAME=parakeets VALUE=1>Parakeets</TD><TD>
Other <INPUT NAME=other_an MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD><TR><TD>
<INPUT TYPE=CHECKBOX NAME=cows VALUE=1>Cows</TD><TD>
<INPUT TYPE=CHECKBOX NAME=horses VALUE=1>Horses</TD><TD>
<INPUT TYPE=CHECKBOX NAME=parrots VALUE=1>Parrots</TD><TD>
<INPUT TYPE=CHECKBOX NAME=none VALUE=1>None</TD><TR><TD></TD><TD>
<INPUT TYPE=CHECKBOX NAME=iguanas VALUE=1>Iguanas</TD><TD>
<INPUT TYPE=CHECKBOX NAME=snakes VALUE=1> Snakes
</TD>
</TABLE>
</TD>
</TABLE>
<TABLE BORDER=1 WIDTH=100%>
<TH colspan=5>Food History<BR>
(Complete this section for Salmonellosis and Campylobacteriosis)</TH>
<TR>
<TH>EGGS</TH>
<TH>Type</TH>
<TH>Other</TH>
<TH>Had?</TH>
<TH>Where</TH>
<TR>
<TD>Cooked</TD><TD>
<select name="t_c_eggs">
<option value=""></option>
<option value="1">Scrambled</option>
<option value="2">Fried</option>
<option value="3">Other</option>
</select> </TD><TD>
<INPUT NAME="oth_c_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD><TD>
<select name="h_c_eggs">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD><INPUT NAME="w_c_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD>Undercooked</TD><TD>
<select name="t_u_eggs">
<option value=""></option>
<option value="1">Poached</option>
<option value="2">Soft scrambled</option>
<option value="3">Sunny side up</option>
<option value="4">Other</option>
</select> </TD><TD>
<INPUT NAME="oth_u_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD><TD>
<select name="h_u_eggs">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD><INPUT NAME="w_u_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD>Raw</TD><TD>
<select name="t_r_eggs">
<option value=""></option>
<option value="1">Egg nog</option>
<option value="2">Ceasar salad</option>
<option value="3">Hollandaise sauce</option>
<option value="4">Meringue</option>
<option value="5">Beamaise</option>
<option value="6">Other</option>
</select> </TD><TD>
<INPUT NAME="oth_r_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD><TD>
<select name="h_r_eggs">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD><INPUT NAME="w_r_eggs" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TH COLSPAN=2>Ate</TH>
<TH>Had?</TH>
<TH COLSPAN=2>Brand</TH>
<TR>
<TD COLSPAN=2> Raw or undercooked poultry</TD><TD>
<select name="poultry">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD COLSPAN=2>
<INPUT NAME="brandp" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD COLSPAN=2>Raw or undercooked red meat</TD><TD>
<select name="meat">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD COLSPAN=2>
<INPUT NAME="brandme" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD COLSPAN=2>Raw Milk</TD><TD>
<select name="milk">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD COLSPAN=2>
<INPUT NAME="brandmi" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD COLSPAN=2>Homemade/unpasteurized cheese</TD><TD>
<select name="cheese">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD COLSPAN=2>
<INPUT NAME="brandc" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
<TR>
<TD COLSPAN=2>Raw or undercooked fish/shellfish</TD><TD>
<select name="fish">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TD COLSPAN=2>
<INPUT NAME="brandf" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
</TABLE>
<table border='1' width='100%'>
<th>Other Exposure<BR>Within 3 days (10 for giardia) prior to onset of
symptom(s), did patient: </th>
<tr>
<td>Handle raw poultry <select name="handle_pou">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select>
</td>
<TR>
<TD>Have exposure to day care or nursery <select name="daycare">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD>Have household member or sexual partner with similar symptoms
<select name="similar">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD>Hike, camp, fish, swim
<select name="hike">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD>Drink from a stream, lake, or spring
<select name="drink">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD>Have antibiotics in month prior to onset of this illness
<select name="had_anti">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> --- Type
<INPUT NAME="typ_anti" MAXLENGTH=10 SIZE=10 VALUE="" onKeyUpp='return autoTab(this, 10, event);'></TD>
</TD>
<TR>
<TD>Have colonic irrigation or proctoscopy
<select name="colonic">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
<TR>
<TD>Go to hospital in the week before onset?
<select name="hospital">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
<option value="9">Unknown</option>
</select> </TD>
</TABLE>
<TABLE BORDER=1 WIDTH=100%>
<TH colspan=2><B> Disposition </B></TH>
<TR>
<TD>Any work or school restrictions
<select name="restrict">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
</select> </TD>
<TD> If yes, specify
<INPUT NAME="typ_res" MAXLENGTH=20 SIZE=20 VALUE="" onKeyUpp='return autoTab(this, 20, event);'></TD>
<TR>
<TD>Advised of appropriate precautions
<select name="precaut">
<option value=""></option>
<option value="1">Yes</option>
<option value="2">No</option>
</select> </TD>
<TD> If Yes, how
<select name="prec_how">
<option value=""></option>
<option value="1">Telephone</option>
<option value="2">Fact Sheet</option>
<option value="3">In Person</option>
</select> </TD>
<TR>
<TD COLSPAN=2>Investigated by
<INPUT NAME="investgr" MAXLENGTH=20 SIZE=20 VALUE="" onKeyUpp='return autoTab(this, 20, event);'>
--- Date
<INPUT NAME="inv_month" MAXLENGTH=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="inv_day" MAXLENGTH=2 SIZE=2 VALUE="" onKeyUpp='return autoTab(this, 2, event);'> /
<INPUT NAME="inv_year" MAXLENGTH=4 SIZE=4 VALUE="" onKeyUpp='return autoTab(this, 4, event);'></TD>
</TABLE>
<TABLE WIDTH=100% BORDER=0>
<TD WIDTH=75%>
<INPUT TYPE=SUBMIT VALUE='Submit Report'>
</TD>
<TD>
<INPUT TYPE=RESET VALUE="Reset Fields">
</TD>
</TABLE>
<BR>Comments:<BR>
<TEXTAREA NAME=comments ROWS=3 COLS=70 WRAP=PHYSICAL></TEXTAREA> </FORM>
</BODY></HTML>
[ March 28, 2007: Message edited by: Vani D Bandargal ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Paul Clapham:
Is the MIME type of whatever you are complaining about actually "text/html"?


Pauls questions seems more relevant.
MSIE often ignores the Content-Type heading and displays things as HTML whether that was the author's intent or not.

What technology are you using to generate the HTML (JSP, PHP, ASP...)?
Are you specifically setting the content-type header?
If you have the LiveHTTPHeaders plugin for FireFox installed, you can see what header is being used.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: raw HTML in Mozilla