carlc
Posts: 7
|
| Posted: 12/08/2006, 12:24 PM |
|
(1) I would like some controls (list boxes, text boxes, etc.) to appear when option A is clicked, and a different set of controls to appear when option B is clicked. I would like the functionality to work on the client side. I assume that JavaScript is the way to go. Is [object].style.display='none' the best way to accomplish this?
(2) I have seen some web sites where, when a row of controls appears/disappears, all the other controls shift down/up, changing the page length to accomodate the controls. How can I do that?
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.
Carl |
 |
 |
Edd
Posts: 547
|
| Posted: 12/09/2006, 8:25 PM |
|
1) Yes.
(2) Look through the example pack on how to dynamically add rows to editable grids, this gives you a good example of how to hide / show content.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
carlc
Posts: 7
|
| Posted: 12/11/2006, 5:47 AM |
|
(2) Thank you for the hint. I'm still a bit confused though - isn't the code in the examples making a request to the server? I would like to show/hide controls on the client side.
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.
Carl |
 |
 |
peterr
Posts: 5971
|
| Posted: 12/12/2006, 12:08 AM |
|
Carl,
From what I remember discussed here in the past you can divide your form into multiple parts and enclose them into <DIV> tags, then use JavaScript to control visibility. Maybe using TBody would also work, as described by Dave at http://forums.codecharge.com/posts.php?post_id=66189
Little Googling could give you more ideas and examples as well. Or since you "have seen some web sites where ..." you can take a peek at their HTML/JavaScript to see which approach they use.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
carlc
Posts: 7
|
| Posted: 12/12/2006, 3:31 PM |
|
Thank you Peter! Good thoughts.
_________________
I am using CodeCharge 3.1.0.2, Windows XP Pro, IIS 5.1, and ASP.NET 2.0.
Carl |
 |
 |
|