File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes run time control change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "run time control change" Watch "run time control change" New topic
Author

run time control change

ravindra maddi
Greenhorn

Joined: Oct 20, 2001
Posts: 6
Hello,
I have a situation that needs to change my text box to combo box based on input entered.
If the corresponding value has only one value than I am going to display in text box else in combo box.
Can any one give me a hint how to solve this situation using java script.
Thanks in advance.
manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
use divs
<div id="div0" name="div0"></div>
and in the javascript
if(isTextBox){
document.all.layers.div0.innerHTML = '<input type="text"...
else
do the same for a combo box
check the syntax but i hope u get the essence of what i am trying to say here
-manav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: run time control change
 
Similar Threads
how can i dynamically change xsl element value
Problem with JComboBox default behavior
calling a bean from java script
how to clear the values of components on validation errors in JSF
how to retrive a value from a check box on one page to another page containing a com