We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Problem linking on a CD Rom html page

Slimshaneey
Slimshaneey asked
on
Medium Priority
204 Views
Last Modified: 2008-02-01
Hi there. Im having a problem with IE on a html page that I have created for a CD rom that demos some movies content. Everything works well on the page except for a small piece of javascript I have acting within the link it self.
It works fine in Firefox but in IE I get a permission Denied Error
The code is like this:
<a href="javascript: document.location.href='index.html';">Home</a>

What can I do to get it running? It works fine in testing on the file system on my PC but when I burn the cd to test this problem appears.
Comment
Watch Question

Author

Commented:
Oh, and I did try linking to just the index.html like a normal link, but nothing happens in IE for some reason. Something about being on the CD breaks it, so I tried JS and the result is the above error...
CERTIFIED EXPERT

Commented:
Check in Tools->Internet Options, Security tab what security level IE is working at.  Additionally, under the Local Intranet zone, click Sites & check the UNC paths option.

Author

Commented:
Java permissions are medium, I tried Low and still no difference, and UNC paths are checked.
CERTIFIED EXPERT

Commented:
if you have links like this:
<a href="javascript: document.location.href='index.html';">Home</a>

then you don't need javascript;
<a href="index.html">Home</a>

Author

Commented:
I did try that, but for some reason the direct link doesnt work from a cd due to the way the browser interprets the relative links from a cd, hence having to use the javascript.
CERTIFIED EXPERT

Commented:
probably you have some <base href=.....

remove or change it

Author

Commented:
Nope, no base href....

I have no problem with a CD and
a local file resource with the form
file:///F:/folder/index.html
which opens in my default browser FF unproblematically.

However if I paste this URL in IE, then
IE thinks - wot? a file? apply file associations - open it in default bowser -> FF

There's a good chance that this is happening on your system with FF refusing to be opened by IE

I work around this in test mode by renaming or copying the file to index.htmie and then associating the .htmie extension with IE...

Then all I get is a warning from IE about showing active content - which you must then be allowed.

D

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.