T
Tayna Taylor
(I'm so sorry! My other post didn't represent everything correctly so
I am reposting - and I also reduced the complexity of what I was
trying to achieve)
Ok, here goes --
I have a SQL loop around a bunch of code in a table:
///*START SQL LOOP*
<table>
PHP, SQL, graphics, other code & stuff
</table>
///*END SQL LOOP*
So, ok this runs and spits out however many result sets (sections) on
the screen. It works -- but here is what I want it to do --
Each result set has two tabs... for elegance rather than having the
screen refresh, I would like to use some kind of DHTML <div> technique
(?) to statelessly go back and forth when a user clicks on whichever
tab.
So below in theory I think this is how it could be pulled off -
//(I want this displayed initially)
<div ID="StateOne">
<table>
PHP, SQL, graphics, other code & stuff (somewhere in here are the
two button tabs)
</table>
</div>
//(I want this displayed when tab two button is clicked)
<div ID="StateTwo">
<table>
PHP, SQL, graphics, other code & stuff (somewhere in here are the
two button tabs)
</table>
</div>
I am reposting - and I also reduced the complexity of what I was
trying to achieve)
Ok, here goes --
I have a SQL loop around a bunch of code in a table:
///*START SQL LOOP*
<table>
PHP, SQL, graphics, other code & stuff
</table>
///*END SQL LOOP*
So, ok this runs and spits out however many result sets (sections) on
the screen. It works -- but here is what I want it to do --
Each result set has two tabs... for elegance rather than having the
screen refresh, I would like to use some kind of DHTML <div> technique
(?) to statelessly go back and forth when a user clicks on whichever
tab.
So below in theory I think this is how it could be pulled off -
//(I want this displayed initially)
<div ID="StateOne">
<table>
PHP, SQL, graphics, other code & stuff (somewhere in here are the
two button tabs)
</table>
</div>
//(I want this displayed when tab two button is clicked)
<div ID="StateTwo">
<table>
PHP, SQL, graphics, other code & stuff (somewhere in here are the
two button tabs)
</table>
</div>