| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| changing function...javascript. | |
|---|---|
| Tweet Topic Started: Nov 14 2007, 03:01 AM (499 Views) | |
| Mistagnerd | Nov 14 2007, 03:01 AM Post #1 |
|
Member
![]() ![]() ![]()
|
Ok i'm trying to change the onsubmit validate() function that is executed when a person registers...so this is the code i'm using...
but for some reason its not working...anyone know why? |
![]() |
|
| Arrogant | Nov 14 2007, 03:36 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
- Validate() already returns true or false, so i don't see why they even have "return Validate()" in there. >.< - when putting a function for an "on"-event type thing, you don't include the ()'s. those execute the function, but you want the funciton to be executed when the "on"-event occurs. - document.REG > document.getElementsByTagName("form") + for loops. - ^^ same with the location check thing. pffft. ![]() ---- here's an easier way (don't know if it causes errors though):
just re-define the function itself. of course, you're going to have to have SOMETHING returned, but i think you already know that. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
4:58 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




4:58 AM Jul 11