Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled
From: Code-Curious Mom (none_at_NG.invalid)
Date: 10/25/04
- Next message: Gogga: "XP service pack 2"
- Previous message: Bob Newman: "Re: Can't access the net"
- In reply to: Jan Il: "Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled"
- Next in thread: Test Man: "Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 25 Oct 2004 10:47:31 -0400
Although this SP2 issue also occurs with Java, Java and Javascript are not
related despite the similar sounding names.
I had a similar situtation with local HTML files used as custom start
pages. I'm using the 'Mark
of the Web' method which you can find at
http://msdn.microsoft.com/security/productinfo/XPSP2/securebrowsing/lockdown_devimp.aspx
It doesn't specify where in the HTML file it should go, but I had a file
that actually was saved from the web, and
there it was located at the top just before <HTML>. Just be sure there are
no spaces after the
-->
(end of comment mark)
and <HTML>. Not sure why this has to be, but it won't work if there is a
space there. So something like:
<!-- saved from url=(0028)http://www.InternetZone.net/ -->
at the top of your file immediately before <HTML> should fix it. You can
change InternetZone.net to a real web address if
desired, it doesn't matter. The 28 is the number of characters in the web
address following, if you change the address, you'll have to modify the
character count too.
(Before I found this method, I had tried renaming the file to *.hta, but
that lets off the menu and toolbar, which I didn't like at all.)
To totally disable this security feature (which I don't recommend--not all
javascript or other active content is safe):
right click IE|Properties|Advanced| scroll down to 'Security', check 'Allow
active content to run in files on my Computer', click 'OK'.
More info see these threads:
http://groups.google.com/groups?hl=en&lr=&threadm=OYIKnezpEHA.2684%40TK2MSFTNGP11.phx.gbl&rnum=4&prev=/groups%3Fq%3Djavascript%26hl%3Den%26lr%3D%26group%3Dmicrosoft.public.windowsxp.general%26sa%3DG%26scoring%3Dd
>> I just installed Service Pack 2 for Windows XP.
>>
>> I have my Internet Explorer home page set to file:///C:/index.htm
>>
>> Unfortunately, I cannot seem to get the JavaScript on that page
>> enabled all the time (e.g., <FORM><SELECT><OPTION>, and goto a new web
>> page).
>>
>> Yes, I can click on "Allow Blocked Content" every time I load the
>> page, but I would like to tell Internet Explorer that this file is OK,
>> trust it, run JavaScript on it all the time.
>>
>> I also went into Tools, Internet Options, Security, Custom Level and
>> enabled everything (except pop-up blocker) and Javascript still does
>> not work automatically from my local home page.
>>
>> I also tried to add it to trusted sies, but the URL must begin with
>> "https:"
>>
>> What can I do to enable Javascript automatically, (i.e., at all times)
>> for a local file such as file:///C:/index.htm?
>>
>> Thanks
>
>
- Next message: Gogga: "XP service pack 2"
- Previous message: Bob Newman: "Re: Can't access the net"
- In reply to: Jan Il: "Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled"
- Next in thread: Test Man: "Re: Service Pack 2, file:///C:/index.htm Javascript blocked disabled"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|