Another question on this usage.  I am actually trying to send a value
I am pulling from a javascript function (a paused flowplayer
instance).  So is the update-button the right way to send this value?
Or probably I need a form with hidden fields.  I thought I can use the
update-button because the docs said:
update-button: similar to an Ajax form containing zero or more hidden
inputs and a submit button

But I think the update-button fields are not easily modifiable and I
need to use a regular form with submit button so I can modify a full
hidden input tag.

Ankur

On Feb 4, 8:46 pm, Ankur <[email protected]> wrote:
> I am trying to use an update button, i don't know how to use the
> params field.
>
> http://cookbook.hobocentral.net/api_tag_defs/update-button
>
> params: Another hash with additional HTTP parameters to include in the
> ajax request
>
> I tried:
>
> <update-button id="start_position" label="Start Position"
> update="update-fields" params="{'a' : 1}"/>
> Fails because it's a string
>
> <update-button id="start_position" label="Start Position"
> update="update-fields" params={'a' : 1 }/>
> Fails without error message
>
> Temporarily I will use the 'fields' because anything in there gets
> sent to the controller as with the model name as the key.  But just
> wondering it I can get it to work.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to