Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating library of useful little functions
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Titre:
Creating library of useful little functions
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01303738
Message ID:
01303738
Vues:
62
Hi everybody,

I'm wondering if I'm thinking/going in the right direction and what would be the best thing to not re-invent the wheel too much.

I'm thinking that we can create several useful more or less generic JavaScript f functions and put them in separate js file invoked from the Master page of the webiste.

Does it sound like a good idea?

I have currently created few little functions such as ShowElement, HideElement, ToggleDisplay, SetValue. I'm thinking of adding CheckIfItemSelected and CheckIfNotEmpty two separate functions one for combo/lists another for textboxes.

Do you think I should create 2 separate functions or better handle it in one function using case switch?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform