I don´t think so, but I need to receive the Value contained in the
Button.

Checkbox would be the Solution, but it must look like a Button.

Any Ideas?

THX

Dieter Asman

On 19 Jun., 02:30, Richard <richar...@gmail.com> wrote:
> can buttons post form data?
>
> Are you perhaps after a checkbox instead?
>
> On Jun 19, 3:11 am, AsmanCom <d.as...@web.de> wrote:
>
> > Hi,
>
> > I need to retrieve the request.vars from an JavaScript Object.
>
> > controller code:
>
> > form.append(INPUT( _id="buttonid", _type="button", _class="my_button",
> > _name="buttonName", _value="Off"))
>
> > and then i want to get the value from this, like so:
>
> > if request.vars.buttonName == "Off":
> >     do anything
>
> > But it doesn´t work.
>
> > Could you explain how to achieve  this?
>
> > TXH
>
> > Dieter Asman

Reply via email to