Help - Search - Members - Calendar
Full Version: Permission error
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
Dranners
I am using the atomz search facility in a website which uses dhtml menus.

When I come to view the results of the search, the menus are not displayed and there is a javascript error: Permission Denied.

I have put the loader code into the head of the search results page (hosted by Atomz) and made sure that the path to the compiled files is absolute. I have also made sure that the urls in the compiled code are absolute (as suggested by Atomz) but no luck.

Has anyone got any ideas? You can test the problem here:
http://212.50.185.5/bucks/skymarket%20live%20website/
Hywel
It's because cross-domain scripting security.  You're trying to get your DMB script to run from one frame on your domain to one frame from another domain.  You can't do that with any type of scripting.

Looks like you'll need to get a search script to run on your own domain.
xfx
Hywel is correct.
For more information about this security issue try reading this nice article:
http://www.webreference.com/js/tips/000527.html

-------

NOTE: If you're not using frames and you're getting JS errors when implementing the menus into the AtomZ search results it is recommended that you move the menus' loader code to a separate .js file and the load this file using this code:

CODE
<script language="JavaScript" src="http://yourdomain.com/loadercode.js"</script>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.