[plt-scheme] html in servlets

From: ifconfig (nslookupifconfig at hotmail.com)
Date: Sun May 16 11:12:15 EDT 2004

Try putting your code in the following form:
<HTML>
  <BODY>
    <SCRIPT language="JavaScript">
      <![CDATA[
        .... script ....
      ]]>
    </SCRIPT>
  </BODY>
</HTML>

The <![CDATA[ ... ]]> tag is the proper way to do it in XML. Does that work?

ifconfig.

> -----Original Message-----
> From: plt-scheme-admin at list.cs.brown.edu [mailto:plt-scheme-
> admin at list.cs.brown.edu] On Behalf Of Zhu Chongkai
> Sent: Sunday, May 16, 2004 4:00 PM
> To: plt-scheme
> Subject: Re: [plt-scheme] html in servlets
> 
> 婂娝kzV瓂譂?獠谮?薜??m?鍔薥焙杪w澔鶜奩殶鵥藏忛栛
呴?the last mail seems to be wrong (maybe
> it is in Unicode), so I resend one)
> 
> >Zhu Chongkai wrote:
> >
> >1. Example
> >
> >> <table>
> >> <tr><th>Food</th><th>Drink</th><th>Sweet</th>
> >An </tr> is missing at the end.
> >
> >> <tr><td>A</td><td>B</td><td>C</td>
> >> </table>
> >
> >
> >2. Example (worked)
> >> <table>
> >> <tr><th>Food</th><th>Drink</th><th>Sweet</th></tr>
> >> <tr><td>A</td><td>B</td><td>C</td></tr>
> >> </table>
> >
> >3. Example
> >> <table border>
> >
> >The proper syntax is <table border="1!>.
> >
> >> <tr><th>Food</th><th>Drink</th><th>Sweet</th></tr>
> >> <tr><td>A</td><td>B</td><td>C</td></tr>
> >> </table>
> >
> >
> >The "problem" is that DrScheme only allows wellformed
> >HTML-expressions. This forces you to write proper
> >HTML. When a browser sees an HTML-expression with
> >errors it guesses, what was meant. Different browsers
> >guess differently, so if you write non-proper HTML,
> >you'll experience that your pages only look good
> >in one browser.
> >
> >--
> >Jens Axel S鴊aard
> >
> 
> Then how to use JavaScript in servlets? (that is, some
> code that can run at the client)
> 
> Zhu Chongkai



Posted on the users mailing list.