Click here to Skip to main content
15,921,606 members
Home / Discussions / Web Development
   

Web Development

 
GeneralUsing Javascript Client-Side to Hide .net ASCX UserControl Pin
graemea1006-Apr-05 14:21
graemea1006-Apr-05 14:21 
GeneralRe: Using Javascript Client-Side to Hide .net ASCX UserControl Pin
Vasudevan Deepak Kumar13-Apr-05 4:50
Vasudevan Deepak Kumar13-Apr-05 4:50 
GeneralRe: Using Javascript Client-Side to Hide .net ASCX UserControl Pin
graemea10014-Apr-05 10:35
graemea10014-Apr-05 10:35 
GeneralRe: Using Javascript Client-Side to Hide .net ASCX UserControl Pin
graemea10014-Apr-05 17:56
graemea10014-Apr-05 17:56 
GeneralToolbars problem... Pin
theJazzyBrain6-Apr-05 1:41
theJazzyBrain6-Apr-05 1:41 
Generalvalidate email address Pin
mpapeo5-Apr-05 14:19
mpapeo5-Apr-05 14:19 
GeneralRe: validate email address Pin
mpapeo5-Apr-05 15:10
mpapeo5-Apr-05 15:10 
GeneralNeed some direction with my web app Pin
SootedPare5-Apr-05 9:25
SootedPare5-Apr-05 9:25 
GeneralRe: Need some direction with my web app Pin
man_krastogi5-Apr-05 10:00
man_krastogi5-Apr-05 10:00 
GeneralRe: Need some direction with my web app Pin
6-Apr-05 6:54
suss6-Apr-05 6:54 
GeneralRe: Need some direction with my web app Pin
man_krastogi13-Apr-05 5:28
man_krastogi13-Apr-05 5:28 
GeneralAuto format a text field Pin
Andy122795-Apr-05 9:18
Andy122795-Apr-05 9:18 
GeneralRe: Auto format a text field Pin
JKroschel6-Apr-05 5:43
JKroschel6-Apr-05 5:43 
GeneralRe: Auto format a text field Pin
Andy122796-Apr-05 6:05
Andy122796-Apr-05 6:05 
GeneralReport automation from ASP and C# Pin
keith@reaseheath5-Apr-05 8:33
keith@reaseheath5-Apr-05 8:33 
GeneralWebservices on Server 2003 Pin
RB@Emphasys5-Apr-05 7:18
RB@Emphasys5-Apr-05 7:18 
GeneralChanging <EMBED> source throught java script Pin
tibiz4-Apr-05 22:28
tibiz4-Apr-05 22:28 
QuestionASP substring function?? Pin
Andy122794-Apr-05 9:40
Andy122794-Apr-05 9:40 
AnswerRe: ASP substring function?? Pin
econner5-Apr-05 9:03
econner5-Apr-05 9:03 
GeneralDate Selector control Pin
rotsey3-Apr-05 23:43
rotsey3-Apr-05 23:43 
GeneralMime boundry Pin
alex.barylski3-Apr-05 10:54
alex.barylski3-Apr-05 10:54 
GeneralRe: Mime boundry Pin
DavidNohejl3-Apr-05 12:26
DavidNohejl3-Apr-05 12:26 
GeneralINPUT tag Pin
nagarajuepuri2-Apr-05 6:26
nagarajuepuri2-Apr-05 6:26 
GeneralRe: INPUT tag Pin
Scott Serl2-Apr-05 8:34
Scott Serl2-Apr-05 8:34 
Apparently not (just tried IE6).
You can just replace it with a new element:
function evolve()
{
	var obj = document.getElementById("MyInput");
	var newObj;
	newObj = document.createElement("input");
	newObj.type = "text";
	newObj.id = "MyInput";
	obj.parentNode.replaceChild(newObj,obj);
	
}


From a coding design point of view, it is probably better to just put 2 input controls on the page and hide/show the one you need. It can introduce errors if some code is expecting one type of input control, but receives another because it has morphed into something else.
GeneralJAVASCRIPT Pin
Member 15762691-Apr-05 8:22
Member 15762691-Apr-05 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.