checking whether will have access to a document properties?
Posted: Wed Feb 26, 2003 3:56 am
Hi
apologies if this is a bit of noob question -
I have some client side script for an application I'm developing - the script captures navigations in a frame for a framed view (just grabbing the frames.location and also the documents.title for the frame in question - for basica logging and etc) ..
my question concerns trapping the domain sandboxing that JavaScript employs -
some of the links users can follow in this frame take them to linked documents etc which are outside of the domain the app works in - so if I try to grab any properties of the document I obviously get an access denied error ..
my question is how can I check whether I have permission to interrogate the document prior to firing the code .. as even the document.domain property if locked away if the domain differs?
cheers
Ant
http://www.objectmonkey.com
apologies if this is a bit of noob question -
I have some client side script for an application I'm developing - the script captures navigations in a frame for a framed view (just grabbing the frames.location and also the documents.title for the frame in question - for basica logging and etc) ..
my question concerns trapping the domain sandboxing that JavaScript employs -
some of the links users can follow in this frame take them to linked documents etc which are outside of the domain the app works in - so if I try to grab any properties of the document I obviously get an access denied error ..
my question is how can I check whether I have permission to interrogate the document prior to firing the code .. as even the document.domain property if locked away if the domain differs?
cheers
Ant
http://www.objectmonkey.com