No it could be any html element within the form. Here's another example.
<netui:form tagId="foo">
<div id="dhtmlPane" style="display;none"/>
</netui:form>
function fooFunc ()
{
var scopeElement = document.getElementById ('dhtmlPane');
var formId = lookupIdByTagId ('foo', scopeElement);
var formElement = document.getElementById (formId);
formElement.submit ();
}
Take a peek at the gen'd source in the browser for the form's id and see how
beehive generates its own interanal ids.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wed 4/26/2006 6:40 PM
To: Beehive Users; Beehive Users; Beehive Users
Cc: Tim Noonan
Subject: RE: Beehive javascript
Calrification
I mean - Do i need to always pass this in the function to get the form also?
-------------- Original message ----------------------
From: [EMAIL PROTECTED]
> If I just want to get the form to do submit from javascript, How do I do it
> given the tagId?
>
> Thank You
> -------------- Original message ----------------------
> From: "Tim Noonan" <[EMAIL PROTECTED]>
> > 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: [email protected]
> > 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.
>
>
_______________________________________________________________________
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.