[HTML_AJAX-devel] Permission denied on IE6
Joshua Eichorn
josh at bluga.net
Wed Sep 5 14:07:19 MST 2007
RafaQuiM wrote:
> I'm receiving the Javascript error message: Permission denied only the first
> time i load a locally served tomcat JSP which makes my script to halt, but
> if I reload the page by pressing F5 the page loads well and the script works
> fine.
>
> The line where the script halts is calling a function defined on other
> script which is actually located on a different context than the caller
> script. This is so because i want to share scripts between applications.
>
> I must say that this error appeared suddenly and that's why i guess the
> error is due a script loading synchronization issue rather than an across
> domain access which is the theorical reason of this error.
>
> Any help is great.
>
> The code I have is shown below:
>
> Inside the JSP:
> ...
> <script src="/scripts/remedialJS.js"></script>
> <script src="scripts/SimpleMenus.js"></script>
> ...
>
> Inside the remedialJS.js:
> ...
> var $=document.getElementById;
> ...
>
> Inside the SimpleMenus.js:
> ...
> $('scriptServer').value=scriptServerVal;//Here is where the scripts
> crashes
> ...
>
>
>
I don't think reassigning document.getElementById works right in IE
In HTML_AJAX we have an actual functin for $
-josh
More information about the Html_ajax-devel
mailing list