|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
dynamic form building
I have a lot of information to fill out on this form. So I'd prefer not to do the submit to itself everytime to rebuild it. I've seen many java script examples on how to dynamically populate a checkbox, combo box etc. but is it possible just to not have the box there at all?
I've seen a .visible=false on spans in aspx, but can you do something similar to this with plain old asp? Example, i have a combo box, and let's say i select a few options and write a "on change"..... i call a function that makes an attribute .visible false. Is this possible to make a text box disappear off the page without resubmitting the from? If not, any other bright ideas on how to do this one? |
|
#2
|
|||
|
|||
|
Sure,
Have the entire <input> tag in a span or div element. Then make that element's style visible true or false. <div id='div1'> <input type=text value='old' size=25> </div> in javascript document.getElementById("div1").style.visible=false; This is off the top of my head. I think you get the idea though. This removes all the space for the element not just hiding as well. Check out Dynamic HTML by O'Reilly and Javascript the Definitive Guide. They are excellent manuals. - Bill |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > dynamic form building |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|