Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:35
Change selected menu without reloading the whole page.
Poster: Ethorsen
Dated: Thursday May 17 2007 - 16:47:58 BST
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.
Poster: Ruth
Dated: Friday May 18 2007 - 7:09:07 BST
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
Poster: Ethorsen
Dated: Friday May 18 2007 - 14:32:05 BST
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.
Poster: Ruth
Dated: Tuesday May 29 2007 - 17:44:52 BST
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