checking whether will have access to a document properties?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
neh
Forum Newbie
Posts: 16
Joined: Tue Jul 23, 2002 3:08 am

checking whether will have access to a document properties?

Post by neh »

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
Post Reply