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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

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

Post by Brannmark »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

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
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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!
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Post by Brannmark »

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
Post Reply