Click here to Skip to main content
15,891,204 members
Home / Discussions / JavaScript
   

JavaScript

 
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 
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 
there should be a property in asp.net called ClientIDMode, you set that to the value needed. Static most likely

Actually when you make a dynamic textbox, its sort of like this in c#
You have to get the server side code right before you fix your javascript.
TextBox txt_firstName = new TextBox();
txt_firstName.ID = "txt_firstName"
txt_firstName.clientIDMode = clientIDmode.static;
txt_firtName.attributes.add("onkeypress", "makeBigger(); return false;";
controls.add(txt_firstName);

Then fix your javascript.
function makeBigger(){ 
   alert('I fired');
   var txt = document.getelementbyid('txt_firstName');
   txt.style['width'] = '100px';
}

Now look at your HTML source code in your browser, and double check that the ID is correct in the textbox and javascript.
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 
AnswerRe: regex help Pin
Kornfeld Eliyahu Peter18-Apr-15 21:36
professionalKornfeld Eliyahu Peter18-Apr-15 21:36 
GeneralRe: regex help Pin
Wombaticus18-Apr-15 22:45
Wombaticus18-Apr-15 22:45 
GeneralRe: regex help Pin
Kornfeld Eliyahu Peter18-Apr-15 22:51
professionalKornfeld Eliyahu Peter18-Apr-15 22:51 

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.