SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2001
    Location
    USA
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    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>
    <div id=jobDiv></div>
    <xml async=false id="siteData" src="form1.asp"></xml>
    <xml async=false id="sitexmlXSL" src="test.xsl"></xml>
    <div id=siteDiv></div>
    Ravi

  2. #2
    SitePoint Zealot HotDog's Avatar
    Join Date
    May 2000
    Location
    Salt Lake City, UT
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ravi

    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.
    Joe Eliason
    Just a dog learnin' PHP from cat.

  3. #3
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 ) and I should be able to help you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •