anchor to a pdf file in internet explorer - html

I have an anchor with the attribute href pointing to a pdf file, like 127.0.0.1/MyApp/myfile.pdf, but the anchor simply doesn't work on Internet Explorer 9. It's ok in FF and Chrome. I didn't get any error in IE's javascript console, and there isn't any traffic at all when I hit the link.
<label>Click to see the PDF file</label>
There's no css associate that is relevant...

As KatieK pointed out, you haven't provided enough information to work with here. However, I had faced something similar a while back, this helped me solve the issue:
Open Reader
Edit > Preferences.
Internet > Display PDF in Browser
But I am not sure if it's a similar issue with yours too.

The problem was resolved! The issue was that I was adding a label, inside the link, thus IE couldn't render the link properly. Instead, I put it on a span tag, and the link is working.
Thanks to all for your help!

Related

Need to Open a Hyperlink in Edge (issues)

I am creating a website and need to have a specific link open with the Edge browser. (Company designed software to only work with Edge as its easier for SSO, not compatible with Firefox or Chrome)
I created an anchor tag with the microsoft-edge parameter and the link will open up fine when using other browsers like Firefox (a popup will force the user to select edge) but when actually using edge the link does not do anything. Upon inspecting element the anchor tag is not even rendered in the DOM.
The following is an example of how i used the anchor.
<a href="microsoft-edge:https://google.com> Click Here </a>
Any advice?
Well, to start, your anchor, <a href="microsoft-edge:https://google.com> is missing a " to close the value of the href attribute. The working code appears in the following snippet:
Click Here
However, this only explains the final issue you mention :
...the anchor tag is not even rendered in the DOM
(I assume you got tangled up in your troubleshooting steps)
The actual problem is that Microsoft Edge doesn't support the microsoft-edge: protocol. I haven't found a published source for this, but I have found a reference to this issue (and a javascript-based workaround) in the SO answer: https://stackoverflow.com/a/53765993/2540235

Chrome console <style></style> location

When inspect a website with chrome console, I normally can see where the css is coming from (e.g. test.css:143) but i recently see the following
What does mean in this case? It is not inline styling neither it is somewhere in the source of the page when I inspect it.
Thank you so much for your help!

Certain link not opening in Internet Explorer 11

I've created a new html page and all other links are opening fine except the one directing to this page. Clicking the link in Internet Explorer simply does nothing, but if I open the file directly it opens it. No problems in Chrome whatsover.
What's happening here?
<a class="m04" href="cariere.html"><strong>CARIERE</strong></a>
Thanks
EDIT I think the issue is with the page itself, what could make IE refuse to open a page?
EDIT2 OK, here's cariere.html:
`Content removed`
EDIT3 Problem solved, I did a rollback while saving the changes I made and now everything is navigating correctly. Still, very strange even for IE.
You're not getting errors, IE is opening other links, and it works fine in Chrome... First glance, this sounds like an issue with the way that IE cached your website. However, I can't elaborate on further possibilities because you didn't provide us with much information or any code to investigate, so basic troubleshooting is the best answer as of right now. I'll update it again if you provide more information.
Try this:
Tools(gear/cog)->Internet Options
Browsing history (general tab)->Delete
You'll want to check the Temporary Internet Files and website files,
Cookies and website data. Uncheck "Preserve Favorites website data."
Then click 'Delete' at the bottom.
Click the 'Security' tab and at the bottom click 'Default level'
Click the 'Privacy' tab and click 'Default'
Test it. If the above doesn't work, you can always click the 'Advanced' tab and click the 'Reset' button. I've seen IE do stranger things, so hopefully it's as simple as this.
As mentioned, you didn't provide us with much to work with. We're all happy to help you out, so if this doesn't work for you, please come back and post us more information/code so we can get this pinpointed. There are many things, code wise, that can cause undesired results, but we can't confirm that without seeing the code.
This has helped me out with various strange "IE bugs." I can't provide you with an explanation, but I'm sure a search could shine further light on this. It's at least worth trying considering how strange this bug is.
In your <head> put:
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
I ran into the problem before, and it's a very weird one: it works fine in Firefox and Chrome, but it's not stable in IE. Sometimes it works, but in most time it just won't work.
The problem is that a label tag is imbedded in the a tag, the link works only in the padding area between label tag and a tag. It can be easily fixed by change the lable tag into span tag.
From:
<label>Learn More</label>
To:
<span>Learn More</span>

Hashlink is not working in Safari

While using haslink (#testhash) is not working on Safari. I am really unable to locate the problem.
Here is the following code I am providing below
Click here to go to Hash
<div style="height:500px"> </div>
<div id="testhash"></div>
<div>............Test Data............</div>
When I am clicking on the link, it is got going to proper place on Safari but it is working fine on Google Chrome, Mozila Firefox and IE9. In Safari the link is redirect to the site http://example.com/ instead http://example.com/#testhash after URL rewritting. The funny thing is when I am directly putting the link http://example.com/#testhash on the address bar of Safari, it is working fine but the time of clicking it is not working and also when I am writting http://example.com/?page_id=112#testhash, it is giving problem.
You may do one thing. Give the full link instead of ?page_id because sometime Safari or some other browsers write different rewrite rules for Wordpress and thats why Hashlinks doesn't work. You may put
Click here to go to Hash
instead of
Click here to go to Hash and it may work.
*I meant by Rewritten page as the browser divides the page by parents and children like about-us/page/etc so the url should be from my example http://testwordpress.com/about-us/page/etc/#testhash
Can you change the href to just "#testhash" and see if that fixes your problem?
Editing my answer as it wasn't clear:
Try this:
Click here to go to Hash
<div style="height:1200px"> </div>
<a name="testhash" />
<div id="testhash"></div>

Website won't load on IE9

Afternoon, i've been struggling with this.
this url simply wont load on IE9.
I opened the developer tools and i get "Text - Empty Text Node" below every single element. It works on all other IE versions and all the browsers. It's only on IE9 that wont load.
Thanks in advance
Have you tried the "compatibly view" in IE9? When you are at the bad page, click the "broken page" icon in the address bar (between search and refresh). It doesn't work for every site, but it might just be the trick to fix yours!