IFrame SSI script II works with http://intranet/ but not http://intranet.domain.com/
IFrame SSI script II
This script is brilliant. I've incorporated it into my company's intranet site for a project involving a photo directory. I thought it was working fine until today, when one of the managers tested it out and found a problem (talk about embarrassing). The page with the script works fine when you go to http://intranet/section/page.html but breaks when you go to http://intranet.domain.com/section/page.html. I'm not sure why that would really make any difference at all. The intranet is hosted internally and both of those addresses take you to the same page(s). I've tried changing the script from being embedded directly on the page to being a separate file with a relative link pointing to it, but besides that I have no clue what to do about this one. Any help would be greatly appreciated.
Sub domains, or ones with the syntax
subdomain.mysite.com is treated as a separate domain from
The Following User Says Thank You to ddadmin For This Useful Post:
var currentURL = '' + window.location;
window.location = 'http://intranet.domain.com/dir/page.htm';
Quick, easy, and it works!