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

Menu sits on a different domain...


Poster: mraspiller
Dated: Monday October 27 2003 - 21:31:08 GMT

Can I have my Milonic DHTML menu on one domain & still reference it from another domain?

If so, how do I do this...simply putting an absolute path to the .js files doesn't work, & I can't make the references to each menu item absolute, they have to stay relative...

Is this even possible?

Thanks in advance!


Poster: kevin3442
Dated: Tuesday October 28 2003 - 0:09:33 GMT

mraspiller wrote:
Can I have my Milonic DHTML menu on one domain & still reference it from another domain?

What do you mean by "reference it". You mean load the .js script files, or do you mean run menu functions across domains?


Off the top of my head... I suppose you could load the menu scripts from another domain, as long as security settings don't prevent it. But then again, doing so would cause the page to load more slowly. However, I'm not sure about this:
Quote:
...simply putting an absolute path to the .js files doesn't work, & I can't make the references to each menu item absolute, they have to stay relative...

I can't imagine how you'd access any type of file across domains without specifying the source domain. How could one achieve a relative path to a different domain?

There's also the practical matter of licensing to consider: the menu license is per domain.

If you're talking about running functions across domains, that's another story. Suppose, for example, that you have two frames, each containing a document from different domains. Maybe you'd like to have a menu in one frame open a submenu in the other frame. Or maybe you'd like to have a menu selection in one frame cause something to happen in the other. Since the two frames display documents from doffernet domains, you'll normally get a security violation error and it won't work. This isn't a menu issue, it's a security issue. Under normal circumstances, you can't have a script in one domain control behavior in another domain, unless you take steps to circumvent the normal security restrictions. I suppose you could do something with trusted domains at the servers. Some browsers also let you establish trusted domains so that you can do this type of thing, but that'd only work if you have control over the workstations accessing the site (e.g., an intranet).

I'm no expert on security, but that's my take, for what it's worth.

Kevin


Poster: John
Dated: Tuesday October 28 2003 - 4:47:52 GMT

You'll run into a problem with licensing if you do. You would need a license for each domain running the menu.


Poster: Hergio
Dated: Tuesday October 28 2003 - 5:33:36 GMT

If it makes you feel any better Kev, I agree with you, there will be security implications if you call javascripts across domains. Just thought I would let ya know so you you know either you're security smarts aren't that bad, or we both shouldn't read up alittle more on the subject.