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

Menu, Item and Style properties, what datatype of variables?


Poster: Brannmark
Dated: Tuesday August 26 2003 - 22:50:32 BST

I'm making an asp generated version of this menu and need to know what datatypes all the variables are.....

Some I understand is both integers and strings....

Or should one leave this to the acctual input interface to insert "" marks when its a string.....

Anyway, would Milonic be interesed in having an asp generator??

/Anders


Poster: Hergio
Dated: Wednesday August 27 2003 - 3:28:01 BST

Good question...
Generally if its JUST a number, you don't need the quotes. But if there are any non-numeric characters in the value, such as px or = or %, then put quotes around it.


Poster: Brannmark
Dated: Wednesday August 27 2003 - 9:00:32 BST

Ok, So if its just an integer, then it will work without quotes???

I will make a function that checks that then.... And puts quotes when it contais chars.

/Anders


Poster: Hergio
Dated: Wednesday August 27 2003 - 14:18:34 BST

Brannmark wrote:
Ok, So if its just an integer, then it will work without quotes???

Correct. I tried to think of rare instances where this would not be the case, but I didnt see any so I think its a safe assumption.


Poster: Brannmark
Dated: Wednesday August 27 2003 - 14:42:42 BST

Ok, thanks for the help. I'm pretty much done with the asp version now.

It rocks in my book, this new menu is much easier to work with. I was in the process of making a asp version of the old, and was almost finished when the new menu was relased....

I'm glad I decide to go with the new version. Now I have to contact Andy and get the licenens as it works just like I want it to.

/Anders


Poster: John
Dated: Wednesday August 27 2003 - 14:47:42 BST

Brannmark wrote:
I'm glad I decide to go with the new version. Now I have to contact Andy and get the licenens as it works just like I want it to.

Most pleased to hear you are going for a license. Andy busts his butt making this system the absolute best there is, and I just have a feeling a lot of folks take it and run. Your support, and that of all others who do get their license, is most appreciated. Andy certainly deserves it.

So, this is just a simple Thank You!


Poster: Hergio
Dated: Wednesday August 27 2003 - 14:49:36 BST

So basically what are you doing? Are you making ASP javascript functions that write the corresponding milonic code to the head of the document? Basically like makeMenu(name,url,style,attr1,attr2,..,link1,link2....) and then you ouput the with(milonic=new menu...) stuff? Or are you making a COM object that you install on the server that can generate this stuff?


Poster: Brannmark
Dated: Wednesday August 27 2003 - 15:27:14 BST

I'm just making the asp code to generate the javascript code. Com objects will otherwise require to be installed on the web server....

So that my users down the line only have to click and write names of the menus...

And if Andy desides to add more properties, I just add the fields in the database tables. As this asp script doesnt care if the tables have 10 fields or 200. It will loop thru everyone of them, get the name of the field and the data in that field. This is what makes the new version of the menu rock, properties are assigend to specific "porpertybags". Thanks again Andy for the new version. If you read this, I will be intouch with you the next couple of days when I have decide on which licence I want to get.

Yepp, I think he really deserves the money for it, it basiclly flat out rock this new version.

/Anders