drop down menu not closing onclick

Post your questions and problem reports here.

drop down menu not closing onclick

Postby rging » Wed Jan 21, 2009 5:37 am

I've got calls to ajax populating div areas without page reload, and the drop down menus won't clear when clicked. I presume the design assumes a page re-load, so this would not be a problem, but my site does not ever do a page re-load, only content refresh. Any idea what's wrong? Am I missing something?
rging
 
Posts: 4
Joined: Wed Jan 21, 2009 5:31 am

Re: drop down menu not closing onclick

Postby Karlis » Thu Jan 22, 2009 2:07 am

Menus have nothing to do with refreshing he page. Please note, however, that if you are processing page content you must be careful not to touch anything connected with menu code. You should not alter the HTML or CSS code of the menus in any way.

If you would like us to take a look, just drop in a link to your page or a test page that demonstrates the problem and we will look at it.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3624
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe

Re: drop down menu not closing onclick

Postby rging » Thu Jan 22, 2009 2:38 am

Thanks for the reply. Here is a link to the page. Select "Artist Tools" then "Tour Planner".

http://www.toursavant.com/rg
rging
 
Posts: 4
Joined: Wed Jan 21, 2009 5:31 am

Re: drop down menu not closing onclick

Postby Karlis » Thu Jan 22, 2009 7:53 pm

Does your javascript function return ture? I'm not an expert of JavaScript, but it seems that your should return a true value for this to go through.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3624
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe

Re: drop down menu not closing onclick

Postby rging » Thu Jan 22, 2009 10:04 pm

I tried that just now. With target="_self", it brings up a blank page with "true" as the only content, with target="fileuploadframe", which is a hidden iframe, it executes the desired function, who's content ends up in "main" div, but the submenu still does not close.

I've looked around at other sites using this menu system, and all the ones I found actually navigate to a new page when a submenu item is clicked, so of course, the menu is "closed", since the page has changed. In fact, the submenu stays visible until the current page goes away, pending loading of the new page. In my case, I'm not navigating off the page at all, just changing the innerHTML property of a div on the current page. Hope this makes sense and you can help me.
rging
 
Posts: 4
Joined: Wed Jan 21, 2009 5:31 am

Re: drop down menu not closing onclick

Postby Karlis » Mon Jan 26, 2009 9:07 pm

The developer said that you must call this JavaScript function to close the menu:

Code: Select all
ebmTickerOn(cbnOpenTopMenu);


Try it.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3624
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe

Re: drop down menu not closing onclick

Postby rging » Mon Jan 26, 2009 10:44 pm

That fixed it, thanks much.
rging
 
Posts: 4
Joined: Wed Jan 21, 2009 5:31 am


Return to Easy Button & Menu Maker Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron