RC46: Support for 'pagecolor' is gone

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

RC46: Support for 'pagecolor' is gone

Post by Martin »

After updating to RC46, the 'pagecolor' attribute set in style does not work anymore.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Do you have the latest RC46? There have been at least 3 releases under that number.

Just trying to pin it down.

Thanks.
John
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi,

I donwloaded the latest version a few minutes ago, but it didn't solve the problem.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

OK, thanks.

Andy will have to dig into this one.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

No It hasn't gone it's been fixed, or at least I think it has.

The problem is this, with the menu the way it was before RC46, links like:

url=/index.php;
url=/scombo/index.php;

Would both highlight the same and this was clearly wrong.

The demo at http://www.rockmill.co.uk/MilonicTest/ is failing because the link in the data file is url=sub1.htm; What it should be is url=/MilonicTest/v5r46/sub1.htm;

If you add more than one url=sub1.htm; to the menu_data.js at the above site they would all show up in pre RC46 - In my opinion this is wrong.

There is something about Pagecolor that I just cannot seem to satisfy everybody with. There is always something that it either doesn't do is does do but shouldn't and, although it should be simple, it is in fact a very complex problem.

I'll have a rethink and see what I can do.

Cheers
Andy
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi Andy,

My URL is always like this: url=index.cfm/0004016000000000000;
Only the URL parameter will change. This worked fine in previous builds.

Maybe the new build does not check this search engine friendly url or skips the stuff after the filename completely :?:
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Sheesh, that took some brain power :? :? :? :?

I think I've finally cracked it. RC47 should hopefully, keep everybody happy.

Let me know how it goes.

Cheers
Andy
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi Andy,

Thanks for your BrainPower.

It's works now very well. I tested it with IE.5.5 and Mozilla 1.5
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
bgreen
Beginner
Beginner
Posts: 3
Joined: Fri Jan 30, 2004 8:38 pm
Location: bc canada
Contact:

installed RC 47, still one oddity

Post by bgreen »

I just bought DHTML menu last week and it worked fine except for
Pagecolor. Since I was new, I got everything else working before looking for an explanation.

I see on this forum that there was a problem with Pagecolor in 46 that was improved in release 47.
So I installed 47 and it works, MOSTLY.

But I have one problem, a menu item that is highlighted when it
should NOT be:

http://www.robelle.com/welcome-menu.html

notice that the Home Page link when you pull down the first menu
is correctly highlighted as the current page. But I also see the
"Robelle" at the top left of the menu highlighted when I display this page in
IE 6.0

the menu definition in menu_data.js is as follows:

with(milonic=new menuname("Robelle Menu")){ // based on sample menu
style=menuStyle;
screenposition="center"; // not align="center";
top=93;
alwaysvisible=1;
orientation="horizontal";
aI("text=Robelle;showmenu=About;");
aI("text=What's New;showmenu=WhatsNew;url=http://www.robelle.com/products/whatsnew.html;");
aI("text=Support;showmenu=Support;url=/support/");
aI("text=Just Ask Us;showmenu=AdminSales;");
aI("text=Popular Apps;showmenu=Partners;url=http://www.robelle.com/partners/");
aI("text=Resources;showmenu=Resources;");
aI("text=Find Info;showmenu=Search;");
}

I used to have a URL= clause with the aI def for the first menu
item, but I removed it. But it is still highlighted as if it were
the current page.

Any thoughts?
- Bob Green (see also http://www.news.ai !)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The reason the Robelle item is highliighted is because it is showing you a path to the menu item.

You can switch this off of declaring another style for your top bar menu.

This style must not include a value for pagecolor or pagebgcolor.

I note that you have 2 styles in your data file but both are named menuStyle.

You need to name them uniquely.

i.e.

Code: Select all

with(horizStyle=new mm_style()){. . . . .

and

with(menuStyle=new mm_style()){. . . . .
Hope this helps
Andy
bgreen
Beginner
Beginner
Posts: 3
Joined: Fri Jan 30, 2004 8:38 pm
Location: bc canada
Contact:

Post by bgreen »

Andy,

Thanks. I did what you suggested and it worked. The Robelle menu item
is no longer highlighted.

But I am still a bit confused about why it was highlighted. The menu item didn't have a
URL attached to it, so what is the highlighting telling the user? You say
"The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?


In some of my horizontal menu items I used both a submenu and a url.
Nothing in your examples said this would work, or not, but it does seem to
work in practice. Nice feature. Allows me ot have a web page link that explains the submenu choices in more detail.

It would be nice to have these horizontal menu items highlighted by PageColor in my final menu design when you happen to be on the URL that matches the URL= of the menu item def. But that won't happen with
the two styles solution.

Thanks in advance.
- Bob Green (see also http://www.news.ai !)
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

bgreen wrote:Andy,You say "The reason the Robelle item is highliighted is because it is showing you a path to the menu item." What is the path to a menu item without a URL?
I believe what he means is that the feature is like a "bread crumbs" feature, where all menu selections, throughout the enire hierarchy, up to the one responsible for the currently viewed page, are highlighted; not just the single menu item that was clicked to get you where you are now. That way, the user could see, for example, which main menu item was selcted, and which submenus, etc., etc., to get to where they are now in the navigation system. By using a different style (with no pagecolor and pagebgcolor) for the main menu, you are effectively preventing the first level of the hierarchy from following that behavior... which is just fine if that's how you want it!

Kevin
bgreen
Beginner
Beginner
Posts: 3
Joined: Fri Jan 30, 2004 8:38 pm
Location: bc canada
Contact:

Post by bgreen »

Thanks for the explanation. I get it now. "Path" means the menu path to the highlighted item. The default with one style is to highlight each node in the path. Good.
- Bob Green (see also http://www.news.ai !)
Post Reply