Click here to Skip to main content
15,886,844 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Resilience of the DOM Pin
Shog98-Feb-09 7:54
sitebuilderShog98-Feb-09 7:54 
GeneralRe: Resilience of the DOM Pin
JimmyRopes8-Feb-09 11:52
professionalJimmyRopes8-Feb-09 11:52 
QuestionOnMouseUp Event Pin
Manas Bhardwaj7-Feb-09 12:22
professionalManas Bhardwaj7-Feb-09 12:22 
AnswerRe: OnMouseUp Event Pin
Shog97-Feb-09 17:18
sitebuilderShog97-Feb-09 17:18 
QuestionCross-Domain Scripting Pin
il_manti7-Feb-09 5:31
il_manti7-Feb-09 5:31 
AnswerRe: Cross-Domain Scripting Pin
Shog97-Feb-09 7:07
sitebuilderShog97-Feb-09 7:07 
QuestionImplement common JS to Textboxes Pin
ketan bader6-Feb-09 20:34
ketan bader6-Feb-09 20:34 
AnswerRe: Implement common JS to Textboxes Pin
Perspx6-Feb-09 20:52
Perspx6-Feb-09 20:52 
ketan bader wrote:
because giving textboxid of all controls to "getElementById()"is not possible..


Why not..? Can't you call them textbox1, textbox2.. etc and then loop through and call your function on each one..?

If you don't do this, you could assign the textboxes in question a class name that no other element on your page has, then do something like:


//Find all input elements
var inputs = document.getElementsByTagName("input");

for(var i=0;i<inputs.length;++i) {
  //Check whether the input element is a textbox that you want to validate
  if(inputs[i].type=="text"&&inputs[i].className=="validatetextbox") {
    //Do validation on textbox here
  }
}


Regards,
--Perspx


"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year."
-Andrew Tanenbaum

"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer."
-Fred Brooks



QuestionWhich website is good to purchase image libraries for creating a business website? Pin
T4AMD6-Feb-09 18:58
T4AMD6-Feb-09 18:58 
AnswerRe: Which website is good to purchase image libraries for creating a business website? Pin
ziwez07-Feb-09 7:12
ziwez07-Feb-09 7:12 
QuestionIIS7 Not passing Headers? Pin
MaxRelaxman6-Feb-09 4:19
MaxRelaxman6-Feb-09 4:19 
QuestionHow to maintain row position in Gridview inside the panel? Pin
hifiger20045-Feb-09 12:20
hifiger20045-Feb-09 12:20 
QuestionMaking controls visible using javascript Pin
nainakarri5-Feb-09 5:29
nainakarri5-Feb-09 5:29 
AnswerRe: Making controls visible using javascript Pin
vaghelabhavesh5-Feb-09 6:04
vaghelabhavesh5-Feb-09 6:04 
GeneralRe: Making controls visible using javascript Pin
megivimal22-Jul-09 4:42
megivimal22-Jul-09 4:42 
QuestionOpen a Large pdf fomr sql database using vbscript, asp clasic Pin
DotNetCoderJunior5-Feb-09 3:00
DotNetCoderJunior5-Feb-09 3:00 
AnswerRe: Open a Large pdf fomr sql database using vbscript, asp clasic Pin
SeMartens5-Feb-09 21:11
SeMartens5-Feb-09 21:11 
QuestionDefaultValue in DataObject used in Webservice [modified] Pin
Roland Bär5-Feb-09 2:03
Roland Bär5-Feb-09 2:03 
QuestionCreating a discussion board / forum Pin
NetQuestions4-Feb-09 20:44
NetQuestions4-Feb-09 20:44 
AnswerLook at DotNetNuke Pin
David Mujica5-Feb-09 3:01
David Mujica5-Feb-09 3:01 
GeneralRe: Look at DotNetNuke Pin
NetQuestions5-Feb-09 18:47
NetQuestions5-Feb-09 18:47 
GeneralRe: Look at DotNetNuke Pin
NetQuestions5-Feb-09 19:52
NetQuestions5-Feb-09 19:52 
AnswerRe: Creating a discussion board / forum Pin
NetQuestions9-Feb-09 18:51
NetQuestions9-Feb-09 18:51 
Questiondouble click on Grid Pin
omlac4-Feb-09 20:19
omlac4-Feb-09 20:19 
QuestionNamespace..JavaScript [modified] Pin
Amr M. K.4-Feb-09 2:32
Amr M. K.4-Feb-09 2:32 

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.