Click here to Skip to main content
15,887,446 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionTaking input from user and printing stars Pin
NaumanFarooq28-Apr-15 10:15
professionalNaumanFarooq28-Apr-15 10:15 
AnswerRe: Taking input from user and printing stars Pin
Sumanth Madireddy28-Apr-15 19:34
professionalSumanth Madireddy28-Apr-15 19:34 
GeneralRe: Taking input from user and printing stars Pin
NaumanFarooq29-Apr-15 0:52
professionalNaumanFarooq29-Apr-15 0:52 
GeneralRe: Taking input from user and printing stars Pin
Sumanth Madireddy29-Apr-15 1:25
professionalSumanth Madireddy29-Apr-15 1:25 
GeneralRe: Taking input from user and printing stars Pin
NaumanFarooq29-Apr-15 2:10
professionalNaumanFarooq29-Apr-15 2:10 
Questionactive opened menu Pin
ptvce25-Apr-15 0:25
ptvce25-Apr-15 0:25 
QuestionRe: active opened menu Pin
ZurdoDev7-May-15 9:27
professionalZurdoDev7-May-15 9:27 
QuestionHow do I change the width of an aps textbox dynamically in a JavaScript function Pin
Stephen Holdorf24-Apr-15 11:41
Stephen Holdorf24-Apr-15 11:41 
I have C# code dynamically adding a textbox named txtDodic to a data table in the code behind and setting it to a Width of txtDodic.Width = (10 * 4); as so:

C#
tc = BaseControl.CreateTableCell(tr, null, "ColDodic", null);
txtDodic = BaseControl.CreateTextBox(tc.Controls, prefix + "txtDodic", "", "ASPTextBox", "TextBoxDodic");
txtDodic.Attributes.Add("onkeypress", "ValidateDodicInput();");
txtDodic.Width = (10 * 4);


I want to change the Width of the textbox txtDodic to a width of txtDodic.Width = (10 * 16) in a JavaScript function as so:

document.getElementById('" + txtDodic.ClientID + "').Width = (10 * 15);

The problem is that when the JavaScript function is called the width does not change. Please help.

Thanks,

Steve
AnswerRe: How do I change the width of an aps textbox dynamically in a JavaScript function Pin
jkirkerx25-Apr-15 8:14
professionaljkirkerx25-Apr-15 8:14 
GeneralRe: How do I change the width of an aps textbox dynamically in a JavaScript function Pin
Stephen Holdorf27-Apr-15 2:47
Stephen Holdorf27-Apr-15 2:47 
GeneralRe: How do I change the width of an aps textbox dynamically in a JavaScript function Pin
jkirkerx27-Apr-15 6:12
professionaljkirkerx27-Apr-15 6:12 
Questionsend data from JavaScript to PHP Pin
Member 836750223-Apr-15 15:24
Member 836750223-Apr-15 15:24 
GeneralRe: send data from JavaScript to PHP Pin
Sascha Lefèvre24-Apr-15 4:21
professionalSascha Lefèvre24-Apr-15 4:21 
QuestionConfirmation Alert for browser. Pin
Member 1004598422-Apr-15 18:52
Member 1004598422-Apr-15 18:52 
Answer[Repost] Pin
Sascha Lefèvre22-Apr-15 19:18
professionalSascha Lefèvre22-Apr-15 19:18 
GeneralRe: [Repost] Pin
Sumanth Madireddy23-Apr-15 4:43
professionalSumanth Madireddy23-Apr-15 4:43 
Questionregex help Pin
Wombaticus18-Apr-15 0:26
Wombaticus18-Apr-15 0:26 
GeneralRe: regex help Pin
Wombaticus18-Apr-15 4:03
Wombaticus18-Apr-15 4:03 
AnswerRe: regex help Pin
thoiness18-Apr-15 13:13
thoiness18-Apr-15 13:13 
GeneralRe: regex help Pin
Wombaticus18-Apr-15 21:21
Wombaticus18-Apr-15 21:21 
GeneralRe: regex help Pin
Wombaticus21-Apr-15 11:13
Wombaticus21-Apr-15 11:13 
GeneralRe: regex help Pin
thoiness21-Apr-15 11:15
thoiness21-Apr-15 11:15 
GeneralRe: regex help Pin
Wombaticus21-Apr-15 11:21
Wombaticus21-Apr-15 11:21 
GeneralRe: regex help Pin
thoiness21-Apr-15 11:21
thoiness21-Apr-15 11:21 
GeneralRe: regex help Pin
Wombaticus21-Apr-15 11:28
Wombaticus21-Apr-15 11:28 

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.