• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

active content with firefox, netscape

I have published ebook with html format. With IE, sometimes the image & links failed. The solution is found as:
Basing on a solution found in a forum, "I went to tools > internet Options > advanced > security: allow active content to run in files....< it was already checked but I unchecked it, rebooted and re enable it".

But now some readers are using Firefox or Netscape with the same problem. What is the solution for these non-IE browser?
0
fhtong
Asked:
fhtong
  • 6
  • 5
1 Solution
 
BarthaxCommented:
"Active content" is basically the browser's support of ActiveX which is a Microsoft "feature" of Internet Explorer.  All non-IE browsers do not support ActiveX by default, and indeed Microsoft have not made it an easy task to integrate such into other browsers.  There is one attempt that I am aware of to get ActiveX into other browsers and that is the Mozilla ActiveX Project: http://www.iol.ie/~locka/mozilla/mozilla.htm

Personally, I do not trust ActiveX as this has been one of the principal reason why so many browser hijacks occur.  I leave the decision to others with their own browser(s).
0
 
fhtongAuthor Commented:
Thanks, Barthax.

It seems that it is not easy for my readers to handle. I just astonish that I have used javascript and links to sub-directories for image files, nothing advance at all.

I have tested with all files in a single directory but images still could not be shown. It seems that it might not be Active X problem at all.

Why non-IE browsers cannot open local image file, but OK for online image file?
0
 
BarthaxCommented:
My misunderstanding, sorry.

I'm a little confused by what it is you're trying to achieve based on what you've said.  Images and JavaScript are certainly available within Firefox and Netscape.

Perhaps you are using <img> tags with src parameters which point only to directories?  Standard way to reference a file which is local to the machine is with the file:// URI - is this being used?  I don't quite understand how you can guarantee that the file will be local to all users wherever though.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
fhtongAuthor Commented:
Barthax,

I have decided to use html page style since IE browser is free for all some years ago.
My readers are asked to unzip my product to root directory, then in directory like c:/Mybook would have sub-directories for various files.

For image file, I use the format:
<img src="/./Mybook/imagelib/blank.gif">

For links, I use the format:
<form>
<select name="urlList" onchange="GotoPage(this.form)">
<option value="javascript:void(0)" selected>Goto</option>
<option value="/./Mybook/Chapters/Chapter01.htm">Chapter One: Introduction</option>
.
.
</select>
</form>

For pop up windows, I use the format:
<script type="text/javascript">
<!--//hide
function SHOW_HOLDING01() {
window.open("/./Mybook/Popup/holding01.htm", "mybook", "height=350,width=400,top=0,left=0");
}
  // end hide -->
</script>

There is nothing fancy, nothing high tech. I prefer the simplest way.

I have tried the Firefox and Netscape to read similar format online and were OK, they just failed with local. It seems that they did not suppose that a fool like me would work in this way.

0
 
BarthaxCommented:
What exactly is it you intend by the path "/./" - this isn't normal under any circumstances that I'm aware of.  A"/" at the beginning means the root of the drive under Windows and under Linux it means the root of all things drive-related.  A "." at the beginning of the path indicates the current working directory.  I think you may be confusing the two.

If your server is set up such that your items are in the root of the web-server followed by the path Mybook/<etc>, then your references need only be /Mybook/<etc>.  If, however, the items are relative to the location of the page, then you need only specify Mybook/<etc>.
0
 
fhtongAuthor Commented:
Hi, Barthax

I have used "/./" and found it OK with IE and that mislead me.
But after changing either "/Mybook/.." or "Mybook/..", Firefox still failed to show the image files as well as links.
Is it impossible for Firefox to read local subdirectory file?
0
 
BarthaxCommented:
I think I may be missing something more of what it is you are intending...  Let me write what I think you're attempting & you can correct me. :)

You have a HTML page as a file on a disk somewhere (doesn't matter where) in which you have various normal HTML stuff & some Javascript (neither especially indicative of a problem).  Your HTML references some external files (images possibly) and some other html pages which are available in a folder called Mybook.  Mybook is a folder which is also sitting on the hard drive.

If I have the above correct, then I'd you to try a test:

Go through My Computer and find the directory with the HTML file.
From the Tools menu, choose Folder Options and go onto the View tab.  Ensure the checkbox is checked for "Display the full path in the address bar".  Click OK to make the change if it was necessary.
In the Address panel at the top you will then have the directory path.  Add in this bar the character "\" and the name of the html file you are having trouble with.  You should get the html page in Windows Explorer (instead of it opening Internet Explorer in a seperate window).
At this point your address bar should show something like "c:\APath\AHTMLFile.html".  Now right-click one of the links you are using & choose Copy Shortcut.  Go back to the Address bar, remove the content and right-click & paste the text in.  You should get a URL in the form "file://c:/APath/MyBook/mypath/myfile.htm".  Is this what you get or do you get something different?

If you get a URL like that, try it out in Windows Explorer - does it work?  If it does, with the URL still in the clipboard, fire up FireFox (pun intended) and paste the URL into Firefox's Address bar - does it work?

As I mentioned at the start - I'm not sure what's going on, so I'm just trying to get you to give me more info at the moment.  Sorry if this appears long winded.
0
 
fhtongAuthor Commented:
Hi, Barthax

I got the shortcut, C:/Mybook/G6.HTM and cannot find the copying as you indicated.

Then I use IE to open the G6.HTM and copy it; close IE and open Firefox; paste it to address bar of Firefox, it is file:///C:/G6/G6.HTM.

Since it failed to show the image files, then I use Open File to choose the htm file, it is shown as file:///C:/G6/G6.htm in the address bar. Again, the image files failed.



0
 
BarthaxCommented:
So in Firefox, with the file loaded, right-click one of the missing images (the locations should still be shown) & choose Properties - where does the Location point to & is it the correct location for the image?
0
 
webwomanCommented:
Put everything in the same folder. Whatever the structure is on your server, it does NOT exist on their computers. Also, how are they getting this? Are you sending them a disk, are they saving the page, what?
0
 
fhtongAuthor Commented:
Thanks, Barthax.
Although I still get problem with Firefox,I think that with your advice, it is confirmed that I have mistake but Firefox is short of something that I need. Perhaps it is the Windows.
The earliest of my work is like what webwoman said, put every files in the same folder. But that is hard to manage when I have over hundred files.
I have investigated years ago for the method of publishing ebook and possibly I had been spoiled by IE that everything were smoothly run. It is not possible to investigate again as I am busy with the writing.
One thing I can say is that thoughout these years there has been lots of people who dislike Microsoft always said they had something better. I never believe them, every time this so called better alternative always failed for me. Free of charge is a big joke and free means no responsibility. As a businessman myself, that is the truth.

 
0
 
BarthaxCommented:
I certainly understand your sentiment with regard to free software.  In many cases free can be equated to no responsibility.

In terms of the Mozilla projects, they are responsible people and adhere to the W3C standards.  In this case I think you are also correct in that you have been spoiled by Microsoft's endeavour to make things easy.  Unfortunately, this path of Microsoft's also has a habit of making things that work with Microsoft not work with other things - including standards.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now