jquery javascript module architecture on a website

Posted by stephan on Stack Overflow See other posts from Stack Overflow or by stephan
Published on 2009-07-21T09:47:36Z Indexed on 2010/03/24 2:33 UTC
Read the original article Hit count: 247

I want to write a module on one html site - I will never leave the site

I think about two possible concurrent basic approaches:

  1. We go into the module by use only a specific function (with specific params - everything which will happen, happen there - logic, exception handling etc)

  2. We go in by using one handler-fct, which manages some kind of action & a dataArray (depending on the action also fcts will be called -> but not directly maybe for exception handling)

So what you prefer?!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript