Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:59

wildcard for url to use pagecolor (/blah.php?act=show&pa


Poster: aaalexxx
Dated: Friday October 31 2003 - 2:22:14 GMT

hi there!

i was thinkin' about something and i don't know if it's possible in v5. what i'd like to have is the possibility to use a wildcard in the urls.

let me explain what i mean:

i have a guestbook on my page for example. so here's the code for a menu:

Code:
with(milonic=new menuname("guestbook")){
style=subStyle;
aI("text=show;url=http://www.mypage.com/?goto=guestbook&action=show;");
}

if i call "http://www.mypage.com/?goto=guestbook&action=show" 'pagecolor' and 'pagebgcolor' is set correctly. but if i call the second page "http://www.mypage.com/?goto=guestbook&action=show&page=2" (which is not in the menu and can't be there because i can't update it all the time) 'pagecolor' and 'pagebgcolor' are not set, because the url doesn't match the one in the menu.

now, here's my question:

why can't i use wildcards in the urls? it would be perfect if i could change the code to

Code:
with(milonic=new menuname("guestbook")){
style=subStyle;
aI("text=show;url=http://www.mypage.com/?goto=guestbook&action=show*;");
}

the browser should call the "http://www.mypage.com/?goto=guestbook&action=show" then (without the asteriks), but subpages would still match the given url.

is there any way to do this? if not, wouldn't it be a great feature?

any help/answers would be appreciated :roll:

aleks.


Poster: Hergio
Dated: Sunday November 2 2003 - 19:37:24 GMT

I like the idea, its definetly got some useage worth. I have heard a couple other people have trouble with the URLs due to query string problems. Maybe not in the initial release, but an addon in the near future?