Click here to Skip to main content
15,892,298 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Mapping a network drive over the net Pin
George L. Jackson29-Nov-06 14:44
George L. Jackson29-Nov-06 14:44 
GeneralRe: Mapping a network drive over the net Pin
TheJudeDude30-Nov-06 5:27
TheJudeDude30-Nov-06 5:27 
GeneralRe: Mapping a network drive over the net Pin
George L. Jackson30-Nov-06 10:57
George L. Jackson30-Nov-06 10:57 
GeneralRe: Mapping a network drive over the net Pin
TheJudeDude30-Nov-06 11:50
TheJudeDude30-Nov-06 11:50 
QuestionIE7 Javascript Problem Pin
Infomine Liam29-Nov-06 12:49
Infomine Liam29-Nov-06 12:49 
AnswerRe: IE7 Javascript Problem Pin
Torsten Mauz30-Nov-06 1:49
Torsten Mauz30-Nov-06 1:49 
GeneralRe: IE7 Javascript Problem Pin
Infomine Liam30-Nov-06 6:11
Infomine Liam30-Nov-06 6:11 
GeneralRe: IE7 Javascript Problem Pin
Torsten Mauz30-Nov-06 6:36
Torsten Mauz30-Nov-06 6:36 
Wierd, just done a tiny test myself using your code and get a number as you'd expect from elements.length

Here is the code I ran:

<form id="form1" name="form1" onsubmit="return checkForm();">
<input type="text" id="Text1" />
<input type="text" id="Text2" />
<input type="text" id="Text3" />
<input type="text" id="Text4" />
<input type="submit" />
</form>
<script>
function checkForm()
{
alert(document.forms.length);
var numElements = document.forms[0].elements.length;
alert(numElements);
return true;
}
</script>

The first alert gives "1" and the second gives "5". If your form isn't too huge perhaps you could paste in the code that's giving you this wierd behaviour.

HTH
GeneralRe: IE7 Javascript Problem Pin
Infomine Liam30-Nov-06 6:53
Infomine Liam30-Nov-06 6:53 
GeneralRe: IE7 Javascript Problem Pin
Torsten Mauz30-Nov-06 6:59
Torsten Mauz30-Nov-06 6:59 
QuestionProgramatically change image control ImageUrl Pin
Jrnsr850029-Nov-06 12:03
Jrnsr850029-Nov-06 12:03 
AnswerRe: Programatically change image control ImageUrl Pin
Christian Graus29-Nov-06 12:20
protectorChristian Graus29-Nov-06 12:20 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850029-Nov-06 12:25
Jrnsr850029-Nov-06 12:25 
GeneralRe: Programatically change image control ImageUrl Pin
Christian Graus29-Nov-06 12:37
protectorChristian Graus29-Nov-06 12:37 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850029-Nov-06 15:21
Jrnsr850029-Nov-06 15:21 
GeneralRe: Programatically change image control ImageUrl Pin
Paddy Boyd29-Nov-06 23:13
Paddy Boyd29-Nov-06 23:13 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850030-Nov-06 4:07
Jrnsr850030-Nov-06 4:07 
GeneralRe: Programatically change image control ImageUrl Pin
Jrnsr850030-Nov-06 17:39
Jrnsr850030-Nov-06 17:39 
QuestionJavascript and database Pin
ronapost29-Nov-06 11:29
ronapost29-Nov-06 11:29 
AnswerRe: Javascript and database Pin
Bradml29-Nov-06 11:43
Bradml29-Nov-06 11:43 
AnswerRe: Javascript and database Pin
Dominic Pettifer29-Nov-06 13:34
Dominic Pettifer29-Nov-06 13:34 
AnswerRe: Javascript and database Pin
Torsten Mauz30-Nov-06 2:26
Torsten Mauz30-Nov-06 2:26 
GeneralRe: Javascript and database Pin
Dominic Pettifer30-Nov-06 11:42
Dominic Pettifer30-Nov-06 11:42 
QuestionWYSIWYG HTML Editor Pin
sam31529-Nov-06 10:09
sam31529-Nov-06 10:09 
AnswerRe: WYSIWYG HTML Editor Pin
Infomine Liam29-Nov-06 13:00
Infomine Liam29-Nov-06 13:00 

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.