Drop Down Menu / Posts /

License for a website that has multiple domains including intranet

We are looking to purchase this drop down menu for use on our Intranet site. I have 3 questions regarding how this will work.
1. We do not use a domain name when connecting to our Intranet site. We use something similar to "http://intranet", so how will the script be able to tell that the user is on the correct site?
2. We have 2 internal URLs that we use to connect to our Intranet (i.e. http://intranet and http://myintranet - don't ask me why). How do we deal with this?
3. In addition to hosting this site on our Intranet, we also host a secured version of our site on a different URL, i.e. https://intranet.domain.com. Although we use different URLs, the sites point to the same files on the server. How would the licensing work in this case?

I wouldn't have an issue with buying 3 different licenses, but the problem is where to update the license keys, because we share the same files.

Thanks in advance, nice work on the menu!
Belinda  3 years ago   viewed: 22150    

1 Answer


1. If all other domains will be redirect to domain1.com, then only the license for domain1.com is required because the license mechanism only verifies the domain name in the address bar of the browser.

2. Recently we’ve updated our Buy Now page that allows intranet address in the “For website” box. The script will not care about http://, https://, and www. , so intranet is not a problem. The script will check the domain name on the address bar of your browser and do the validation by mapping it to the license key. There is no other service involved, and no checks connecting to other places.

3. Yes you can add a piece of code just after the var ddmenuOptions block in the ddmenu.js file to handle the different domains. Below is a sample for four domains:

var ddmenuOptions = { ...... license: "license1" }; if(document.domain.indexOf("domain2.com")!=-1) ddmenuOptions.license = "license2"; else if (document.domain.indexOf("domain3.com")!=-1) ddmenuOptions.license = "license3"; else if (document.domain.indexOf("domain4.com")!=-1) ddmenuOptions.license = "license4"; var ddmenu = new McDdMenu(ddmenuOptions); /* Menucool Drop Down Menu v2013.5.16 Copyright www.menucool.com */ ... (the follows are remain unchanged)

Note: Above domain2.com, domain3.com, and domain4.com must be in lowercase.

4. As said in section 1, http:// and https:// will not be concerned in the validation. So it will not be a question.

  3 years ago


Your name*
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: