A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

HTML question Edge problem



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 8th 17, 03:44 PM posted to alt.comp.os.windows-10
Keith Nuttle
external usenet poster
 
Posts: 1,844
Default HTML question Edge problem

I don't know if this is the place to get the answer to this question or
not, but I will asked any way.

I am writing a introductory HTML program to a CD of information for some
data that I am sending to family. In the HTML file I have two types of
hotlinks. One type is opening a PDF file in the browser. The other
type opens a folder on the CD from the browser.

Both types of references work in Firefox and Internet Explorer, but when
I try the HTML file in Edge it opens the PDF file but fails to open the
folder.

The code that works in all three browser is

a href="./Documents/NAME.pdf"

The code that fails in Edge but works in the other two is
a href="./Documents"

Is Edge incapable of opening a folder like the other two browsers?

If Edge is capable of opening a folder, could someone provide the
correct syntax for the line that will work in all three browser?
Ads
  #2  
Old March 8th 17, 08:02 PM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default HTML question Edge problem

Keith Nuttle wrote:
I don't know if this is the place to get the answer to this question or
not, but I will asked any way.

I am writing a introductory HTML program to a CD of information for some
data that I am sending to family. In the HTML file I have two types of
hotlinks. One type is opening a PDF file in the browser. The other
type opens a folder on the CD from the browser.

Both types of references work in Firefox and Internet Explorer, but when
I try the HTML file in Edge it opens the PDF file but fails to open the
folder.

The code that works in all three browser is

a href="./Documents/NAME.pdf"

The code that fails in Edge but works in the other two is
a href="./Documents"

Is Edge incapable of opening a folder like the other two browsers?

If Edge is capable of opening a folder, could someone provide the
correct syntax for the line that will work in all three browser?


Does one of these work ? That's supposed to be suitable
for local files.

file://

But when you work with a browser that is "under development",
who really knows what's supposed to work.

https://answers.microsoft.com/en-us/...c-de4853f4b0a5

Paul
  #3  
Old March 8th 17, 08:34 PM posted to alt.comp.os.windows-10
Keith Nuttle
external usenet poster
 
Posts: 1,844
Default HTML question Edge problem

On 3/8/2017 3:02 PM, Paul wrote:
Does one of these work ? That's supposed to be suitable
for local files.

file://

It works when you use the full path to the files. But because this is
going on CD and I have no idea of how the system will be set up, the
best solution is to make the browser look in the directory that the HTML
file is located. I will set up the CD so all reference calls from the
HTML file are to the root directory of the CD.
  #4  
Old March 8th 17, 09:03 PM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default HTML question Edge problem

Keith Nuttle wrote:
On 3/8/2017 3:02 PM, Paul wrote:
Does one of these work ? That's supposed to be suitable
for local files.

file://

It works when you use the full path to the files. But because this is
going on CD and I have no idea of how the system will be set up, the
best solution is to make the browser look in the directory that the HTML
file is located. I will set up the CD so all reference calls from the
HTML file are to the root directory of the CD.


So file:// doesn't work with "relative" references ?

*******

How about try your HREF, without the dot in front ?

https://www.w3schools.com/html/html_filepaths.asp

Paul
  #5  
Old March 9th 17, 02:06 AM posted to alt.comp.os.windows-10
Good Guy[_2_]
external usenet poster
 
Posts: 3,354
Default HTML question Edge problem

On 08/03/2017 20:34, Keith Nuttle wrote:
On 3/8/2017 3:02 PM, Paul wrote:
Does one of these work ? That's supposed to be suitable
for local files.

file://

It works when you use the full path to the files. But because this is
going on CD and I have no idea of how the system will be set up, the
best solution is to make the browser look in the directory that the
HTML file is located. I will set up the CD so all reference calls
from the HTML file are to the root directory of the CD.


Your HTML coding is wrong (or appears to be wrong). Microsoft EDGE is a
fantastic browser that is HTML5/CSS3 compliant. I've not had any
problems and I do lot of HTML/CSS3 coding for my ASP.Net websites and
coding for our accounting software that can be accessed online.

--
With over 500 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #6  
Old March 9th 17, 12:40 PM posted to alt.comp.os.windows-10
Sjouke Burry[_2_]
external usenet poster
 
Posts: 275
Default HTML question Edge problem

On 09.03.17 3:06, Good Guy wrote:
On 08/03/2017 20:34, Keith Nuttle wrote:
On 3/8/2017 3:02 PM, Paul wrote:
Does one of these work ? That's supposed to be suitable
for local files.

file://

It works when you use the full path to the files. But because this is
going on CD and I have no idea of how the system will be set up, the
best solution is to make the browser look in the directory that the
HTML file is located. I will set up the CD so all reference calls
from the HTML file are to the root directory of the CD.


Your HTML coding is wrong (or appears to be wrong). Microsoft EDGE is a
fantastic browser that is HTML5/CSS3 compliant. I've not had any
problems and I do lot of HTML/CSS3 coding for my ASP.Net websites and
coding for our accounting software that can be accessed online.

GoodGuy == M$ paid village idiot.
  #7  
Old March 9th 17, 02:08 PM posted to alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default HTML question Edge problem

"Keith Nuttle" wrote

| The code that fails in Edge but works in the other two is
| a href="./Documents"
|

I don't know about Edge, but a href="Documents"
works fine for me in IE and Firefox. However, the more
standard way to do it is to link to another HTML
webpage rather than just an index of files. That page
can then have graphics, explanation, and links to the
folder content. A HREF="Documents/index.html"

Also of note: PDFs opening in the browser require
a plugin. Some recent browsers may enable that
by default. For instance, Firefox did that recently.
But in many cases PDFs only open in the browser
because someone installed Acrobat Reader and
Acrobat installed the plugin without asking. If I used
your CD I'd get a download dialgue when I clicked
your links. Since PDFs in the browser are high risk,
and if I want to read a PDF I probably want a copy,
I don't allow PDF plugins. (PDF is not a Web format,
after all, and Acrobat Reader is a frequent malware
venue due to script in PDFs.)
If any of your recipients does not have the plugin
set up they may be confused when a window pops
up to ask whether they want to open or save.



 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 12:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.