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

validate field in menu form


Poster: david1721
Dated: Thursday February 1 2007 - 20:10:58 GMT

Hi

I want to add a javascript function to validate whether the text field I have
in my menu contains something, In which of the milonic js files should I put the function?

David


Poster: Ruth
Dated: Thursday February 1 2007 - 20:56:47 GMT

Hi David,

I think you can put the function at the top of the menu data file just below the subOffset section. There is a demo for a form that uses an alert which I put on the index page, but I could have put it in the data file with the rest of the functions.

http://support.milonic.com/demos/select ... lected.htm

You can see the function on the page, but you could just as easily put it in the js file with the rest. This is the js file that does have a function in it for you to see.

http://support.milonic.com/demos/select ... elected.js

Hope this helps
Ruth


Poster: david1721
Dated: Thursday February 1 2007 - 21:39:18 GMT

thanks