Iam having 2 buttons in html page. wheneach one is clicked it gets an data island and displays it in a table. Now i want to hide the table and show other table in the same palce when another button is clicked. Can you help me please.
here is my sample code
<input type=button name=click value=Site onClick="siteinit()">
<input type=button name=click value=job onClick="init()">
<xml async=false id=Data src="form2.asp"></xml>
<xml async=false id=jobxmlXSL src="test.xsl"></xml>
<xml async=false id="siteData" src="form1.asp"></xml>
<xml async=false id="sitexmlXSL" src="test.xsl"></xml>
what you could do is put the tables inside a couple <div> tags and use CSS to hide and show the the different div layers.
If you need me to explain more, let me know. There are many CSS tutorials both here and on the web. Try doing a couple searches here in the forms. Chances are someone may have already explained it in great detail. Check the tutorials here as well. Kevin Yank and others are very good at providing high quality tutorials.
Show us the code for the functions siteInit and init. I did something similar to do on a project a while ago (when there were few decent tutorials for XML :dodgy:) and I should be able to help you.