How to use the observe_field to get more than one field?

Hi,

I have two selctdropdown boxes name like “resolution” and “codecname”.

Now i am able to get the single field value either from resolution or
codecformat select box.
ex:
observe_field ‘resolution’
or
observe_field ‘codecforamt’

is there any way to get the two fields in to the observe_field method ?

Can anyone give me suggestionfs or ideas on this?

thanks
Srikanth

On Sun, Dec 21, 2008 at 11:58 PM, sreekanth. G [email protected]
wrote:

I have two selctdropdown boxes name like “resolution” and “codecname”.

Now i am able to get the single field value either from resolution or
codecformat select box.

is there any way to get the two fields in to the observe_field method ?

Have you read the docs for the :with option? Seems like it should be
just what you need:

“A JavaScript expression specifying the parameters for the
XMLHttpRequest…”


Hassan S. ------------------------ [email protected]

sreekanth.G wrote:

Hi,

I have two selctdropdown boxes name like “resolution” and “codecname”.

Now i am able to get the single field value either from resolution or
codecformat select box.
ex:
observe_field ‘resolution’
or
observe_field ‘codecforamt’

is there any way to get the two fields in to the observe_field method ?

Have you looked at the observe_form method. I think you use this if you
want to observe multiple fields in a form. I could be wrong, but at
least take a look at it.