tags:

views:

213

answers:

1

All of a sudden, this doesn't work for me:

<script type="text/javascript">
window.opener.startLoad();
self.close();
</script>

I get the following from firebug.

Permission denied to get property Window.startLoad
[Break on this error] window.opener.startLoad();

I am not even sure why it says properly "Window.startLoad" since "startLoad" is a function??

This was working yesterday, the day before and the day before...I am racking my brains why this isn't working any more?

Any help?

+2  A: 

I ran into a similar problem with local content - if some of the other content (like your javascript startLoad function) is in a different folder (which counts as a different domain) you won't be able to access those functions from your <script>

Did you reinstall Firefox recently, or upgrade to a new version? One of my coworkers did this, and we had to change one of the permissions in FF to get it to work again. Type

about:config

in the address bar, then type

fileuri

in the Filter: textbox. this should leave you with only the security.fileuri.strict_origin_policy setting remaining. Change it to false by double-clicking it, and that should take care of your issue.

ScottSEA
Yes, that function is in a JavaScript folder that is different to the folder that child window is displaying the page from. However, this was working before! No file structure has changed! I don't what it could be though.
Abs
I haven't changed browser, it might have done an autoupdate though.?? I can't expect users to do that to use my site! Maybe there is another way of triggering a function on window close. I think I will ask this as a seperate question.
Abs