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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement