Service Pack 2, file:///C:/index.htm Javascript blocked disabled

R

Richard Martino

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
 
C

Code-Curious Mom

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=...osoft.public.windowsxp.general&sa=G&scoring=d

http://groups.google.com/groups?hl=...avascript%20mouseovers&as_scoring=d&lr=&hl=en
 
J

Jan Il

Hi Richard :)

When litigation was over between Sun Microsystems and Microsoft, Microsoft
was forced to remove the java code from Internet Explorer. Many websites
require Java Software to be displayed correctly.

Go here and download the latest version of Javascript
http://www.java.com/en/download/windows_automatic.jsp

Download the Microsoft Java VM for Windows XP here
http://windowsupdate.microsoft.com

or get the Sun Java, which is the same as the Java
http://java.sun.com/j2se/index.jsp

also.......

MSJVM Transition FAQ
http://www.microsoft.com/mscorp/java/faq.asp


HOW TO: Troubleshoot Situations Where You Cannot Connect to Secure Web Sites
by Using Internet Explorer in Windows XP
http://support.microsoft.com/?kbid=813444

Troubleshooting Secure Sites in WinXP SP2
http://support.microsoft.com/?kbid=870700

Download the Microsoft Java VM for Windows XP here
http://windowsupdate.microsoft.com

Go to the Windows Update Site (Start/All Programs/Windows Update/Personalize
Windows Update/Enable the Windows Update Catalog. Save Settings. Select
Windows Update Catalog from the left hand pane/Select Find updates for
Microsoft Windows systems from the right hand pane/Select Windows XP/Search.
Select Critical Updates and Service Packs.
Select the March 4th Security Update as it contains Windows XP VM.

Or you can download it from one of these locations:

http://www.download.windowsupdate.c..._CD24D109B33421DB6728FBDC80C9F572EB7A3865.exe
or
http://ftp.uni-stuttgart.de/pub/systems/win95/fixes/VM/msjavx86.exe
or
ftp://ftp.uq.edu.au/mirror/microsoft/patches/winxp/javavm_3319_MIL_4275/MSJavx86.exe

You can test whether Java is working on your machine at the following sites:

http://www.pocoso.de/pocoso052.html
http://www.clan.lib.ri.us/clan/javatest.html (This one may be down)
http://www.fitwise.com/testjava.asp (both 1.0 and 1.1 and what's installed)
http://coglab.wadsworth.com/support/browsercheck.html
http://www.ces.clemson.edu/webct/browser_detect.html

and you can test Javascript here:
http://www.dancespots.net/browsertest.htm

You can get the Sun Java J2SE RunTimes or SDK here:
http://java.sun.com/downloads/index.html (all versions - select using the
dropdown)

Sun also offers an automatic download and install of the 1.4 Java plug-in
here: http://java.sun.com/getjava/download.html

Both Java VM's can co-exist on your machine quite nicely. Just select which
one you want to use in Tools|Internet Options|Advanced and restart all IE
browsers. Here, courtesy of Mitch Gallant, MVP Security, is a tiny utility
which allows you to toggle and view status of your current Java VM vendor
associated with IE:
http://www.jensign.com/JavaScience/SelectIEJVM/index.html

You can try updating your scripting engine. The latest scripting engine can
be found at:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp

For 2000 and XP go to
http://www.microsoft.com/downloads/...43-7e4b-4622-86eb-95a22b832caa&DisplayLang=en

Java VM:
http://www.mvps.org/inetexplorer/answers_9.htm#java2

List of Fixes for the Microsoft Virtual Machine
http://www.microsoft.com/java/download/40fixes.htm

Sun version
http://java.sun.com/getjava/installer.html

MSJVM Transition FAQ
http://www.microsoft.com/mscorp/java/faq.asp

Do you have the JavaScript plug-in installed?
http://java.sun.com/webapps/download/AutoDL?BundleId=9567

or...........

You might also try installing the Windows Script 5.6 for Windows 2000 and XP
if you have not already done so. The install includes a new jscript.dl
http://www.microsoft.com/downloads/...43-7E4B-4622-86EB-95A22B832CAA&displaylang=en


If these steps do not resolve your problem, please post back to this thread
with the details and any error messages.

Hope this helps

Jan :)
Smiles are meant to be shared,
that's why they're so contagious.

Please reply to the newsgroup so others may benefit.

How to make a good newsgroup post:
http://www.dts-l.org/goodpost.htm
 
T

Test Man

The "Javascript" page is actually the webpage for the Sun Java Browser
plug-in and has nothing to do with Javascript.

If you are serious about using Java on your machine, you wouldn't touch
Microsoft's version with a bargepole as due to litigation, it's very old and
out of date.
 
R

Richard Martino

Jan:

Thanks but...

This issue involves JavaScript not Java. The terms are similar, but
the languages and technologies are different.

I was hoping for something as simple as, "Oh, just click 'here' or
configure 'this' or enable/disable 'that'". Since, all I did was
install Service Pack 2, I thought I might be able to undo something
that it does.

Your reply does have a lot of valuable links that can help me learn in
other vital areas. Thank you.
 
D

David Gugick

Richard said:
Jan:

Thanks but...

This issue involves JavaScript not Java. The terms are similar, but
the languages and technologies are different.

I was hoping for something as simple as, "Oh, just click 'here' or
configure 'this' or enable/disable 'that'". Since, all I did was
install Service Pack 2, I thought I might be able to undo something
that it does.

Your reply does have a lot of valuable links that can help me learn in
other vital areas. Thank you.

Try renaming your local HTML file with an HTA extention.
 
J

Jan Il

Hi Richard :)

Sorry that the information did not helpl, but, I am afraid that there are no
simple answers when it comes to SP2, and especially those regarding
Javascript. It also seems that what works for some will not work for
others.

You might also try the following and see if anything will help:

Have you deleted your temporary internet files since this problem
started - if not, do it now

Zone Alarm Pro [Private Header Info - enabled?] Reset "Ad Blocking"
and "Cookie Control" to "medium" "Mobile Code Control" = Off

Any "ad blocking" software that blocks "http_referer" or contains
entries that are blocking access to the desired site.

HOSTS file that contains entries that are blocking access to the
desired site.

Cookie blocking software that are blocking "required" Cookies.

Pop-up blockers that are stripping header\url info.

WebWasher Standard Filter/URL Filter

Sometimes a damaged index.dat file can cause this - this procedure will
delete the index.dat file which can't be deleted from windows - when you
reboot windows creates a new clean one.

Check the date and time on your computer ...if it's wrong, cookies will
not be accepted and you will not be able to log in to some sites.

or............................

IE | Help | About IE | Will show the encryption level/Cypher strength.

or .......

Problems accessing secure sites/ cannot install 128 bit encryption
http://inetexplorer.mvps.org/answers2.htm#secure_sites

Allow active content to run in files on My Computer - Windows XP Service
Pack 2:
http://www.winxptutor.com/lmzunlock.htm


If these steps do not resolve your problem, please post back to this thread
with the details and any error messages.

Hope this helps

Jan :)
Smiles are meant to be shared,
that's why they're so contagious.

Please reply to the newsgroup so others may benefit.

How to make a good newsgroup post:
http://www.dts-l.org/goodpost.htm
 
R

Richard Martino

The World:

A fellow worker dug deep enough and found the answer for me.

Within Internet Explorer, click on Tools -> Internet Options ->
Advanced Tab.

Within the Security Category, turn ON "Allow active content to run in
files on My Computer". Click Apply or OK.

Exit out of Internet Explorer and restart it.

Your Javascripts will now be honored from a local file, e.g.,
C:\index.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top