Javascript Namespaces?
-
Is there a Javascript equivalent to Ruby modules used as namespaces? Do the Js functions need to be protected the same way as the Ruby methods to prevent conflicts in function names?
-
The webdialogs will be completely separate from each other. One window will not interfere with another.
-
Thanks, that's good to know. Can you point me to a source so I can understand why?
-
Well the DOM (document object model) of a HTML page is rooted from an instance of document and everything hangs off that.
If you have multiple WebDialogs, you have multiple DOMs, each with their own parts hierarchy which have names which are 'within' the scope of just that document.
So, Google "DOM" for more info, but its basically just a hierarchy of named & typed parts.
Adam
Advertisement