Solved

IE 8 security

Posted on 2010-09-23
5
904 Views
Last Modified: 2013-12-08
<script type="text/javascript" language="javascript"  src="file://D:\DevJava\FireFox\javascript\base_empty.js" ></SCRIPT>
IE8 won't allow loading local file execution when running from //localhost

IE 7 allowed adding "My computer" in zone 0; however IE 8 doesn't.  hence I need to know how to set the security.   I did add //localhost to trusted site; but, that doesn't fix it in IE8
0
Comment
Question by:intellias_net
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
kawzaki earned 100 total points
ID: 33751093
why not change the src to be relative to your html file it self ?

or if you have a local server (iis or apache) , use a local server link
http://localhost/foldername/page.html


anyhow, for per use,
If Internet Explorer restricts active content that you are sure you want to allow, click the Information bar, and then click Allow blocked content.


for permanent use,
add your site to trusted websites.

steps:

 To add a website to a security zone
Click to open Internet Explorer.

Navigate to the website that you want to add to a specific security zone.

Click the Tools button, and then click Internet Options.

Click the Security tab, and then click a security zone (Local intranet, Trusted sites, or Restricted sites).

Click Sites.

If you clicked Local intranet in step 4, click Advanced.

The website should be shown in the Add this website to the zone field. Click Add.

If the site is not a secure site (HTTPS), clear the Require server verification (https:) for all sites in this zone check box.

Click Close, and then click OK (or click OK twice if you clicked Local intranet in step 4).
0
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 100 total points
ID: 33751094
this path <<file://D:\DevJava\FireFox\javascript\base_empty.js>> is not from localhost, but from a location on system where the browser is running.

I dont think that browser can pick up the files from local machine, if the current domain is localhost or other wise. Means that if the web-page is being served by application server (remote or local) browser may not allow the file to be picked up from local system.


0
 

Author Comment

by:intellias_net
ID: 33756038
I'm running the application in local mode to debug it by selection of 'view in browser' mode from VS2008.    Although all applicaions are on drive D: along with include js files; howvere, the javascript source file are in one sub folder below the application test files,  I'm sure i could go 'relative' if the javascript files were above the test file sub folder; however, i've organized these test case in separate subfolders and having many copies of the source file would make maintennace a nightmare.  

This used to work in Win XP by setting the proper security.  

I'm sure using shortcuts to the javascript files won't work.

any suggestions would be helpful
0
 

Author Comment

by:intellias_net
ID: 33757679
it wasn't IE security anyway.
I didn't have "display script errors turned on' so the js file wouldn't load.
0
 

Author Closing Comment

by:intellias_net
ID: 33757701
Gave me pause to investigate other approach.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now