Hi Ahmed, On Sun, May 2, 2010 at 1:32 AM, Ahmed Abdelsalam <[email protected]>wrote:
> Hi, > > 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. > 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 so, that's an interesting approach, but one that I've never tried. I'm guessing 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 try that to see if yields better results. Best regards, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

