Peter Johnson
03-02-2008, 03:00 PM
I have a file that is used by a number of different clients. It is pulled into their website via iframe.
On this file, I have put a script that writes content differently, based on the top or parent document's URL. I am using an if/else statement:
parent.document.URL.substr(parent.document.URL.lastIndexOf("/"),6).toLowerCase();
However, on 2 of the clients, I am getting nothing - no error message, just a blank where the content should be. I then tried to see if I got anything, just from the following on these clients:
parent.document.URL
top.document.URL
parent.location.href
Again - everyone returns the URL of the top document, except these 2 clients - on them, it's not undefined, not error - just blank
Is there some kind of server security issue that is causing this not to work? Thanx.
On this file, I have put a script that writes content differently, based on the top or parent document's URL. I am using an if/else statement:
parent.document.URL.substr(parent.document.URL.lastIndexOf("/"),6).toLowerCase();
However, on 2 of the clients, I am getting nothing - no error message, just a blank where the content should be. I then tried to see if I got anything, just from the following on these clients:
parent.document.URL
top.document.URL
parent.location.href
Again - everyone returns the URL of the top document, except these 2 clients - on them, it's not undefined, not error - just blank
Is there some kind of server security issue that is causing this not to work? Thanx.