There is no response. But when I replaced the hidden_field with a
select, it worked. I need to implement the observe_field with
hidden_field itself. Please help me....
When you test this...
is the request going out
how are you changing the hidden field?
There is a link called choose location. When I click on it, a popup box
for selecting the location is shown. When I click on one location, the
value of the hidden field will be changed.
The code for changing the value of the hidden_field is given below:
In the view search_ci_location.rhtml under popup controller:
<script type="text/javascript">
function setLocation(location_id)
{
window.opener.document.forms[0].location_id.value=location_id;
window.close()
}
</script>