I have a drop down menu that contains a set of menu items. Each menu
item is planned to make ajax call to change the content of the page when
it’s clicked. I used link_to_remote successfully to make the ajax call
and update the specific div
However, After clicking the menu item, the menu doesn’t close, and it
remains open. The contents already changed in the background, but the
menu is still open, which hides a part of the page.
On Sun, May 2, 2010 at 1:32 AM, Ahmed A.
I’m not sure I understand what you mean ‘used link_to_remote…’. I’m
imagining that you’ve coded the menu items themselves with the link. If
that’s an interesting approach, but one that I’ve never tried. I’m
it might be why your menu is misbehaving. I use observe_field on the
select, passing the selected value to render the new content. You might
that to see if yields better results.