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.
> 
> 


Reply via email to