Change selected menu without reloading the whole page.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Ethorsen
Beginner
Beginner
Posts: 2
Joined: Thu May 17, 2007 4:39 pm

Change selected menu without reloading the whole page.

Post by Ethorsen »

Hello guys,

I use the menu to dynamically load div elements. That means, when i click on a menu element, instead of reloading the entire page I call a javascript function that replace the content of a DIV element. (kinda tab browsing)

The problem I have: the selected menu element doesn't change for the one I clicked as the page isn't reloaded. Is there a way to tell the menu to apply the ON properties (onbgcolor, onborder, etc) i soon as i click on an element?

Thank you all. Milonic is the by far the best js menu.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Thanks for the compliment. Milonic will appreciate that. I happen to agree, it's why I volunteer here :)

OK, I have had others try such setups and the problem is, as you note, since you are not loading a 'page' say in an iframe or something and can use pagematching that way, or since you're not going to a new page and can have page highlighting work, the only thing I can think to use would be clickbgcolor or maybe clickcolor. Unfortunately, I don't think it will go off when you click another item. But, at least you'd know which items you had clicked :)

If you are a professional license or above user, then you might contact Milonic on the issue to see if there is something that could be set up for such circumstances. I"m not js savvy or a programmer so I don't know.

Ruth
Ethorsen
Beginner
Beginner
Posts: 2
Joined: Thu May 17, 2007 4:39 pm

Post by Ethorsen »

Thanks for the answer.

I have a professional license so i will try contacting them. If i had more time I would try to solve the problem myself, but unfortunately I have so many things to do.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I was looking over the demos and saw this one which I had forgotten about, not sure if it will do what you want, but though I'd post for you to check out. I think it's for calling to an iframe, however you might be able to use it for what you have....

http://support.milonic.com/demos/breadcrumb/index.htm


Ruth
Post Reply