•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,779 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2709 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Why in jsp the scripts shows error on throws object required error with IE if we written the script above the <form>. But this error will not come if the script is written below the form. anybody know why this error happening?
Thanks in advance..
document.forms[0].[fieldname].length
Thanks in advance..
When written above the form, the script tries to access an element which isn't there i.e. since the form hasn't been yet created, there is no form element whose fieldname you can access. When written below, it obviously works as expected.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- getElementById not retreiving values from ASP textbox (JavaScript / DHTML / AJAX)
- reading records from a .dbf file (Visual Basic 4 / 5 / 6)
- VB6 - Outlook Email set up - Error 424: Object required (Visual Basic 4 / 5 / 6)
- Connecting To External Javascript File (JavaScript / DHTML / AJAX)
- Javascript - Expected J and Expected Object errors (JavaScript / DHTML / AJAX)
- Error 424-object required (Visual Basic 4 / 5 / 6)
- VB6 RTE '424' Object required. (Visual Basic 4 / 5 / 6)
- Problem using onload (JavaScript / DHTML / AJAX)
- Runtime Error 424 object required (was: Please Help!) (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: function to create multiple objects
- Next Thread: Dynamic Div Height



Linear Mode