[HTML_AJAX-devel] Permission denied on IE6
Ben Johansen
benj at pcforge.com
Thu Sep 6 14:39:40 MST 2007
sorry to jump in on this thread, but the getElementById thing caught
my eye
the one thing that makes IE different from other browsers with
regards to JS is that the object needs to be placed before you can
reference it
so all JS code should be after the object is rendered (in short at
the bottom) if you place the JS in the header then all bets are off
with IE ;-)
I know M$ swayed way off the RFC path on this, but who has the money
to make them change, LOL :-)
Ben
On Sep 5, 2007, at 2:32 PM, RafaQuiM wrote:
Josh, thanks for your reply
>> I don't think reassigning document.getElementById works right in IE
I see, but actually this reassignment works well. If i move the line
from
remedialJS.js to SimpleMenu.js the page loads properly or even having
the
page reloaded works fine.
>> In HTML_AJAX we have an actual functin for $
Is good to know that, in this case i'm not using HTML_AJAX framework
though.
I forgot to mention that the JSP sends a no-cache header to the client.
Regards
JoshuaEichorn wrote:
>
> 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
>
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>
>
--
View this message in context: http://www.nabble.com/Permission-denied-
on-IE6-tf4387991.html#a12511318
Sent from the HTML_AJAX Dev/Support mailing list archive at Nabble.com.
_______________________________________________
Html_ajax-devel mailing list
Html_ajax-devel at lists.bluga.net
http://lists.bluga.net/mailman/listinfo/html_ajax-devel
More information about the Html_ajax-devel
mailing list