Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
1. What do I have to do so that when display is clicked the table is refreshed? For now, whenever display is clicked a new table is created underneath the previous one.

2.
When the page loads for the first time I want the whole of the table to be displayed (ie the whole of my XML file(which is linked to an XSL file) underneath the Input fields. How do I do that?

3.
in IE (and not in Firefox) whenever the user clicks on the display button the input section is gone and only the table with the XML content is displayed. How do I get IE to keep the input fields and display the table underneath? Here is a fragment of my code with all the essential parts hopefully... Thank you in advance!

XML
<html>
.........
......
<script type="text/javascript">

function filterTable(f)
{
  ................
  .......
  if (moz)
  {
    ...........
    ....
    var proc = new XSLTProcessor();
    proc.importStylesheet(stylesheet);
    var resultFragment = proc.transformToFragment(xmlDoc, document);
    document.getElementById("target4").appendChild(resultFragment);
  }

  else if (ie)
  {
    .....
    ......
    value.setAttribute("select", "books/scifi" + filter);
    value2.setAttribute("select", sorter);

   document.write(xmlDoc.transformNode(stylesheet));
  }
}

</script>
<form>
  ...........
  ....
  <input type="button" value="Display" onClick="filterTable(this.form)"/>
</form>

<body id="target4">
</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900