[Javascript] Odd behaviour?

Peter Lauri lists at dwsasia.com
Sun Sep 3 21:13:05 CDT 2006


Hi,

I make an AJAX request and on the server side this is generated (I push it
into a database to detect problem before outputting it in the script that is
requested with get):

<table>
<p style='float: right;'>
<a href='javascript:teamToDoHideInfoBox(1, 6);''>Close</a></p>
<tr><th>Name</th><td>asdf</td></tr>
<tr><th>Description</th><td></td></tr>
<tr><th>Assigned to</th><td></td></tr>
<tr><th>Created by</th><td>Peter Lauri(Farang)</td></tr> <tr><th>Due
date</th><td></td></tr> <tr><th>Start date</th><td></td></tr>
<tr><th>Priority</th><td>Normal</td></tr>
<tr><th>Creation date</th><td>Sun, 03 Sep 2006 23:09:44 +0700</td></tr>
</table>

But it stops after the <td> after the <th>Description</th>.

The content of the <td></td> where it breaks comes from a database field. If
the field is empty this happens, if it is not empty everything works fine.

I am using innerHTML property to insert this into the web page.

When I make this request on a "static" way it works fine all cases, but with
AJAX it does not work. This makes me confused :)

/Peter




More information about the Javascript mailing list