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
Con
(Con)
2
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
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
Con
(Con)
3
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
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 %>
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