Hi Srivathsan, Did you figure out a way to do this? I assume that your page fragment in the scriptContainer requires scoping. If not, you could do something like in the tagIdSupport.jsp sample in the "Tags Support for JavaScript" document. http://beehive.apache.org/docs/1.0.2/netui/tags/javascript.html
Otherwise, for a page that is made up of multiple scoped scriptContainer elements, I think you'd want to use the enhancement completed in BEEHIVE-1179. It's not part of a release yet but is fixed in the main trunk of SVN for Beehive. The improvement allows you to use the <netui:rewriteName> tag to generate a tag Id from a name using the same scoping to participate in the NetUI JavaScript scoping features. See... https://issues.apache.org/jira/browse/BEEHIVE-1179 Kind regards, Carlin On 5/7/07, Varadarajan, Srivathsan <[EMAIL PROTECTED]> wrote:
I'm a little unclear on the scope parameter of lookupIdByTagId(). In my case, I don't have a button or link in the same scope to use as a lookup reference. I need to setup a JS object by using lookupIdByTagId() and can do this only after the page loads so that the framework generated JS is available. How do I get a reference to the scope in script that is run on window load? Part of the problem I'm facing is due to the fact that framework generated JS is placed outside the scriptContainer and not inside the scriptContainer along with the element that has a tagId. Anyone faced this situation? -- Srivathsan ****************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ******************************************
