Name___________________________________________ Last 4 digits PSID___________________
This is the DIV with id='p1out'
|
1. (50 points) When this button labeled "p1" is clicked a javascript function named p1 is executed. A DIV block with id="p1out" is shown to the left.
|
2. (50 points) The textarea to the left named ta2 is in a form named f2. The XML represents the current elected members of the Federal House of Representatives stored as an XML string. The DTD for the XML is: <?xml version="1.0"?> <!DOCTYPE houseofrepresentatives [ <!ELEMENT houseofrepresentatives (state+) <!ELEMENT state (statename,rep+)> <!ELEMENT rep (district,repname,town)> <!ELEMENT district (#PCDATA)> <!ELEMENT repname (#PCDATA) > <!ELEMENT town (#PCDATA)>] Assume root has been created in your code. Create a table containing: a row for each state with the statename centered in a cell that spans three columns; followed by a row for each representative from that state; each representative row contains three columns: district, name and town.
Place the table and the list of Houston representatives in the DIV with id="p2out". Show no HTML. Show NO heading row. Show only the javascript for p2 Data from: wikipedia this is the DIV with id="p2out"
|