Click to See Complete Forum and Search --> : Putting Table in Associate array...help


Kamal_Hi_tek
09-22-2003, 05:01 PM
Hi all, I want to put table on this associate array. At the end of code where it's displaying the left Nav, How could you put those names into table.

thanx
Here's the Code.


<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
// now start creating the list in the left nav

document.write ("<br><b>Address List</b>");

for (entry in myList) {
document.write ("\n<br><a href='javascript:displayDetail(" + entry + ")'>"
+ myList[entry]['lastName'] + "</a> " +myList[entry]['firstName'] );
}

//-->
</SCRIPT>

96turnerri
09-22-2003, 05:50 PM
in the document.write function put in the code for a table

document.write ("\n<br><table><tr><td width="100"><a href='java script:displayDetail(" + entry + ")'>"
+ myList[entry]['lastName'] + "</a></td></tr></table> " +myList[entry]['firstName'] );

Kamal_Hi_tek
09-22-2003, 09:22 PM
I did that and added that into the document.write...but still unable to make it work.

any other suggestions...

thanx