Re: Javascript problem after installing SP2

From: OShah (nospam_at_aol.com)
Date: 12/04/04


Date: Fri, 03 Dec 2004 16:31:23 -0800


"Mark Christensen" <markc@ssbrakes.com> wrote in news:#W#lwRx1EHA.1296
@TK2MSFTNGP10.phx.gbl:

> Hello,
>
> The admin site of my website is setup so that when I add a new product, I
> can browse to a photo on my local hard drive to upload. After browsing to
> that photo, I can click a Preview button before uploading the photo and the
> photo would open in a new window. This worked great for months - until I
> installed SP2 last week. Now when I click on the Preview button, I do not
> get a preview of the photo. Instead, I get an "Error on page" notification
> in the bottom left corner of my browser (IE 6) and when I click on it, it
> says:
>
> Line: 522
> Char: 2
> Error: Access is denied.
> Code: 0
> URL: it then lists the url of this admin page on my website
>
> I've talked with the IT guy who wrote the code for the admin part of our
> site and he says the problem might have to do with SP2 not allowing me to
> read files from my local machine via JavaScript. Does anyone know if he is
> correct? Or what I need to do to make this Preview button work again? (I've
> set IE to allow popups from my site but that hasn't helped.) Thanks for the
> help.
>
> Mark
>
>

If you are affected by local machine lockdown [watch wrap]
(http://msdn.microsoft.com/security/productinfo/XPSP2/securebrowsing/localloc
kdown.aspx), then you can disable it in Internet Options -> Advanced ->
Security [At the bottom]. You can disable local machine lockdown by checking
"Allow active content to run in files from my computer" (Or CDs if you run
from CD).

Try converting your page into a HTML application (my HTML is pathetic but
AFAICT, renaming it to .hta seems to be enough).

-- 
------------------------------------------------------------------------
oshah
Control Panel -> System -> Advanced -> Error Reporting -> Choose Programs
-> Do not report errors for these programs:
Acrobat.exe
waol.exe
------------------------------------------------------------------------