Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array length
Message
 
 
À
08/05/2003 15:21:05
Philip Jones
Cornwall County Council
Truro, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00786134
Message ID:
00786465
Vues:
22
Hi Phillip,

You may start from http://www.w3schools.com/js/js_functions.asp tutorials. You can also use www.tek-tips.com JavaScript forum.

Of course, you can reuse functions, once defined. Just include file with your JavaScript functions (usually file with .js extension).

One more good place: http://www.dynamicdrive.com/dynamicindex5/index.html

Also View Source for this site as well.

One very good article, I read quite recently:
http://www.atgconsulting.com/oodynlistbox.asp

Also try to search on google.com by JavaScript Form Validation. I'm sure, you would be able to find several good artciles on the topic.

>Thanks,
>Kind of obvious really wasn't it. You probably guessed I'm new to this.
>I've got a less stupid question you might be able to help me with as well.
>I've written a function to validate certain mandatory fields in a form. At the moment everybody here writes their own functions for that and other types of validation. Usually even different functions for each individual input box on the same form.
>I was wondering if anyone out there reused javascript functions in the way you would use a procedure library in other environments. I am initialy thinking along the lines of storing functions in separate files and using includes to pick appropriate ones (like the one mentioned above) and then calling the function with parameters that identify the necessary elements of the particular form. That's where the idea gets messy. Can you pass arrays as parameters?
>Is the whole idea daft?
>If not are there any recognised methodologies and what is your approach?
>
>
>Phil
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform