A Javascript tip from Chris Heilmann, who reckons the object literal is "pretty close to sliced bread". Replace:
with the object literal form:
He's noticed that newer tutorials are tending to use the object literal form, and that object literals are one of several techniques to avoid name clutter:
- Dont use generic names in your scripts (which is a shame as
initandvalidatedoes what it says on the tin)- Add a name to each of the functions like
easyFameAndFortune_initandeasyFameAndFortune_validate- Turn the functions into methods and the variables into parameters of an object
Some libraries go further and offer functions that have to be new()'d to form an object, but if you all you want is a separate namespace, a singleton object literal is a good way to go.
you speeky very bad
yes it is, very secure. Going
but I think it's not good way
ewe
i love to try this
Sonia, this is very very old
Hi
I gone thru ur code and
thanks for including my
Thank You for the post!
broken link