The scope basically represents an html element that is contained within the thing your looking for. Basically lookupIdByTagId walks the DOM "inside out" by calling getParentNode on each parentNode starting with "scope" until beehive maps it's internal id for the form with the id specified.
So if your form contained a button with an onClick handler you could do something like: <netui:form tagId=""> <netui:button type="button" onClick="foo (this)"/> </netui:form> function foo (element) { lookupIdByTagId ("fooForm", element); } ~Tim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 4:11 PM To: user@beehive.apache.org Subject: Beehive javascript Can anybbody explain the scope used in the javascript var form = document.getElementById(lookupIdByTagId("form",scope)); The above is from the documentation on Beehive site I am confused about the scope. If I need to get the form in a page, what is the scope that is referring to? _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.