Observe field is not working

Hi all,

I used observe field in my site as

<%=text_field :one,:new_col%>
<%= observe_field(: :one_new_col,
:url => { :action => :live_search }),
:frequency => 0.5,
:update => :hits,
:with => ‘query’
%>

And I got the javascript error as

element.tagName is undefined

Please give the solution.

Thanks
Bava

On Fri, Oct 23, 2009 at 5:53 AM, ssbava [email protected] wrote:

      :with => 'query'

Hi Bava, what field are you trying to observe?

<%=text_field :one,:new_col %>

=>

Next, are you creating or updating a model? If you’re not, then I would
recommend using

<%=text_field :one_new_col %>

=>

Finally, you’ll need to correct the following line because it has an
extra
colon:

<%= observe_field(: :one_new_col,

change it to

<%= observe_field( :one_new_col,

Good luck,

-Conrad

On Fri, Oct 23, 2009 at 6:40 AM, Conrad T. [email protected]
wrote:

      :frequency => 0.5,

Thanks
recommend using

<%=text_field :one_new_col %>

The above should be

<%= text_field_tag :one_new_col %>

Hi Conrad,
Thanks for ur reply.
I want to update the model,
<%= observe_field(:one_new_col,
:url => { :action => :live_search }),
:frequency => 0.5,
:update => :hits,
:with => ‘query’
%>

I have put like this only, previous mail I typed wrongly sorry for that
still i am getting the same error. Please give a solution.

Thanks
Bava