•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 361,896 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,329 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 HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3047 | Replies: 3
![]() |
has anyone ran into this before?
The id and name had a capital letter. “submitButton� “submitButton�
For some reason I would see the following js error: object doesn't support this property or method. When I clicked the button.
When I changed the id and name to all lowercase "submitbutton" everything works fine.
The id and name had a capital letter. “submitButton� “submitButton�
<input id="submitButton" name=" submitButton " value="ok" type="button" title="submit" onclick="submitButton();" />
When I changed the id and name to all lowercase "submitbutton" everything works fine.
Good stuff.
"Internet Explorer incorrectly adds all name's (and maybe id's) of objects as global variables. So when you say submitButton(), it thinks you're trying to call the <input> tag itself as a function. Renaming the tag (javascript is case sensitive) prevented this.
This is Internet Explorer's fault, because submitButton shouldn't be a global variable." (Slime)
"Internet Explorer incorrectly adds all name's (and maybe id's) of objects as global variables. So when you say submitButton(), it thinks you're trying to call the <input> tag itself as a function. Renaming the tag (javascript is case sensitive) prevented this.
This is Internet Explorer's fault, because submitButton shouldn't be a global variable." (Slime)
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- HP Pavilion ze5155 BIOS problem... (Troubleshooting Dead Machines)
- A simple problem (C)
- iweb will not give me any options (Mac Software)
- What Would You Pay? (Promotion and Marketing Plans)
- Standard Practice & Process ? (Site Layout and Usability)
- Reading an input file as a class memeber function (C++)
- Heading Back To College, Input Needed On Some Aspects (IT Careers and Business)
- i want the user to enter an input without obligating him to press enter (C++)
Other Threads in the HTML and CSS Forum
- Previous Thread: URL issue
- Next Thread: how can i check the existence of a n element



Linear Mode