views:

290

answers:

1

I have two frames loaded from local filesystem with file:// URL. How can I access the document in the left frame from the right frame? parent.leftFrame.document gives:

"Error: Permission denied to get property Window.document"

I went through several articles explaining Same origin policy for JavaScript but those didn't help with files loaded from local filesystem

The document.domain property for both of my frames are empty.

On Linux with Firefox 3.

A: 

Finally I found security.fileuri.strict_origin_policy preference in Firefox that solves the problem.

Needle in a haystack...

Atos
Atos