Djalma -
What is the type of the Button you are using?
- Todd
Djalma Fadel Junior wrote:
>
> Thank you Todd,
>
> It sets the button value and I can get it through oButton.get("value").
>
> The problem now resides on posting the form where the button is in.
>
> I'm using
>
> oButton.addHiddenFieldsToForm();
>
> to post button value to the server via Connection Manager.
>
> But the button is not being posted.
>
> Is it possible to set the button value using method .set() and post
> its value through asyncRequest?
>
> thanks in advance,
>
> Em Wed, 20 Aug 2008 11:17:04 -0700
> Todd Kloots <kloots@... <mailto:kloots%40yahoo-inc.com>>
> escreveu:
>
> > Djalma -
> >
> > To set the value of a Button, use the "value" property:
> >
> > oButton.set("value", "somevalue");
> >
> > The other bug is a bug in Menu that will be resolved in the upcoming
> 2.6
> > release of YUI.
> >
> > - Todd
> >
> > Djalma Fadel Junior wrote:
> > >
> > > I'm facing the same problem. Was it solved?
> > >
> > > Another question is. How to set the 'value' and the 'text label' of a
> > > button?
> > >
> > > just setting
> > >
> > > myMenuButton.set("label", "option 2");
> > >
> > > doesn't set the value for posting.
> > >
> > > thx
> > >
> > > Em Thu, 07 Aug 2008 08:51:22 -0000
> > > "yui_bill" <yui_bill@... <mailto:yui_bill%40yahoo.com>
> <mailto:yui_bill%40yahoo.com>> escreveu:
> > >
> > > > I am using the example from
> > > >
> http://developer.yahoo.com/yui/examples/button/btn_example07.html
> <http://developer.yahoo.com/yui/examples/button/btn_example07.html>
> > > <http://developer.yahoo.com/yui/examples/button/btn_example07.html
> <http://developer.yahoo.com/yui/examples/button/btn_example07.html>>
> > > >
> > > > I copy-pasted the entire code into an ASPX page, and added an ASP
> > > > button to submit the form.
> > > >
> > > > The problem is with the Javascript-created menubutton with the
> > > > values "one", "two", "three".
> > > >
> > > > First, if I submit the form without touching the menubutton, no
> value
> > > > at all is submitted for this button.
> > > >
> > > > Secondly, if I open the menu, choose the value "two" and then submit
> > > > the page, the value is correctly submitted as "two". However, if I
> > > > open the menu, choose the value "two", and then re-open the menu and
> > > > hover over another option WITHOUT selecting it, close the menu by
> > > > clicking elsewhere on the page (the value on the button is
> > > > still "two") and then submit the page, the value is now beeing
> > > > submitted as the value of the last "hovered" menu item instead
> of the
> > > > value on the button.
> > > >
> > > > Any thoughts on this? Is it a bug, or am I using the control
> > > > incorrectly?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > Djalma Fadel Junior
> > > Diretor Técnico
> > > Ferasoft Corporation Ltda
> > > Soluções em Tecnologia da Informação
> > > +55 (19) 3542-3490
> > >
> > >
> >
>
> --
> Djalma Fadel Junior
> Diretor Técnico
> Ferasoft Corporation Ltda
> Soluções em Tecnologia da Informação
> +55 (19) 3542-3490
>
>