brucie said:
in post: <
thats fine using the server side options at the link above before the
server does its majic but the end result spat out at the browser end
will have the <td> containing goodies.
and just in case you're using <table>s for layouts. <smack on wrist/>
stop it. use css.
ok, ok - I'll reveal what I'm really trying to do. I have a page with a lot
of content. It is tablular data and the able has 1000 lines. I was planning
to break it up into 20 tables with 50 rows each. I will then use COOLjsTree
(
http://javascript.cooldev.com) to hide all but one table. The darn thing
is, COOLjsTree requires its HTML content to be a valid javascript string
which is cubersome for a table with 50 lines. So I thought I would put that
table in a div and just mention the dive in the javascript string.
Here's an example for COOLjsTree developers (which I think is ugly):
var t1 = '<table bgcolor="#4682B4" width="400" cellspacing="0"
cellpadding="0" border="0"><tr><td align=center><font
color=white><b>Personal Info</b></font></td><tr></table>';
var f1 = '</a><table width="400" cellspacing="0" cellpadding="0"
border="0"><tr><td bgcolor="#EEEEEE">';
f1 += '<table width="100%" cellspacing="2" cellpadding="2" border="0">';
f1 += '<form action="javascript:alert(\'Submitted\');" method="get">';
f1 += '<tr><td><p class="last">First Name</td><td><input
type="text"></td></tr>';
f1 += '<tr><td><p class="last">Last Name</td><td><input
type="text"></td></tr>';
f1 += '<tr><td><p class="last">Age</td><td><select><option>from 10 to
15<option>from 16 to 20<option>from 21 to 30<option>from 31 to
40<option>older 40</select><td></tr>';
f1 += '<tr><td colspan=2 align=center><input type="submit"
value="Submit"> <input type="reset" value="Reset"></td></tr>';
f1 += '</form>';
f1 += '</table></td></tr></table>';
.... lator on f1 is used:
var FORM_NODES = [
[t1, null, null,
[f1, null, null],
],
SO, I'm looking to avoid creating a long javascript string wih HTML content.