FlexiMenus JS for Dreamweaver Forum


box FlexiMenus JS for Dreamweaver

Create JavaScript Menus in Dreamweaver

FlexiMenus JS is a Dreamweaver extension that allows you to create and easily manage beautiful drop-down, vertical or tabbed animated JavaScript menus across the website.
  • Drop down, tabbed and vertical animated JavaScript menus
  • 15 ready made skins, each with multiple color schemas
  • 30 eye-catching transition effects
  • PHP, ASP or Coldfusion and your Database of choice

Find out more about FlexiMenus JS for Dreamweaver

Thread: Setting selected state with code

title left
User Details
message
title right
Torben

post date:
2010-04-10 10:26:41
Hi.
I'm using the FleximenuJS for the first time (tabbed menu) and I wondered if it is possible to set the selected menuitem from an other link on the page.


Ex:
On the page I have a few carefully chosen teasers of what's inside the site, and want the user to be able to navigate to that section of the site directly by clicking the teaser. And now I want selected menuitem in the tabbed FlexiMenu to update accordingly, so that the user is able to see how they would choose the page via the tabbed menu.

Again, does anyone know if it is possible to make an onClick function that will set the seleted state of the tabbed menu?
I'm a designer and not a programmer, and it would save me whole lot of time not having to go through all the code, just to discover that it's not possible.

Thanks for any input.

Regards Torben.
Andrei Rinciog [Extend Studio]

post date:
2010-04-12 04:50:08
Hello Torben,

The menu automatically highlights the buttons based on what page you are. This is done by comparing the URL from the address bar with the URL of each button.

This is not happening on your website?

Could you please give me a link to it ?

Regards,
Andrei
Torben

post date:
2010-04-12 06:42:36
Hi Andrei.
Thanks for the reply.

Unfortunately the website is only in the planning fase, hence giving you a link is not yet possible and I've only read the documentation for building a dynamic tabbed menu, which by the way seems pretty straight forward - not yet inserted a menu.

I'm planning to use an iFrame for the target content to avoid constant browser updating and therefore the address bar will not be updated. I plan to make the menu call other dynamic pages and placing them inside the iFrame.

That's why I was looking for a way to have links in the iFrame content address and set the state of the menu (remotely if you like) by an onClick function or through the DOM or something like that.

But maybe that's not the way to go and by judging from your reply, it would probably be much easier to just the let the browser update on menu click.

Tanks again.

Regards,
Torben
Andrei Rinciog [Extend Studio]

post date:
2010-04-12 07:12:31
Hello Torben,

I understand what you are saying, and yes, the menu won't update the pages by default. I don't think you can bypass the automatic highlighting. I will check this with FlexiMenus dev team.

However, I wouldn't recommend you to use iframes in your website. There are a couple of disadvantages, like you can see here http://www.ultrashock.com/forums/client-side/iframes-pros-and-cons-55658.html

If your website is not very big then you can probably just let the browser reload the pages. A large part of them will be cached after all. If you have a PHP website, maybe you can use Ajax to reload different parts of the pages.

Regards,
Andrei Rinciog
Torben

post date:
2010-04-12 07:27:09
Hi Andrei.

Definately worth noticing!!

As mentioned I'm not a programmer, thus not thaty familiar with AJAX yet, but eager to learn over time.

If the dev team comes up with something I'd really like to know - to please my curiosity ;-)

Thanks for the advice given and help provided.

Regards,
Torben