I have a script that is use to call just a small part of a full page and display as a popup.
It has a problem inasmuch as it does not work properly in the new MS Edge. Until a solution is found for the problem, I wonder if it is possible to add something to the script to detect when the visitor is using Edge and disable it. With the script disabled the full page is displayed.
So, I place the line right at the beginning, ruight?
function init(){
if (navigator.userAgent.indexOf('Edge') >= 0){ return; }
var left=document.getElementById('left');
var right=document.getElementById('right');
var box4=document.getElementById('box4');
var head=document.getElementById('head');
var nav=document.getElementById('nav');
var horizontal2=document.getElementById('horizontal2');
var footer=document.getElementById('footer')
var hgt=[left.offsetHeight,right.offsetHeight,box4.offsetHeight];
hgt=(Math.max(hgt[0],hgt[1],hgt[2]));
[/quote]
Itâs working. I can put the popups back in place.
Now, I can relax and wait for Edge to sort out its problems
I am still curious to understand why the popups in the Sydney page work with Edge and the one for the Vik hotel with the same code does not work in the Punta Cana page. That might be the first step to understand the problems.
The only small problem with the script now, for Edge, is that it is opening in a NEW page rather then reusing the page. It is not very important but is there a way round this?
âŚand now that I see the popups opening in the other browsers ( see http://pintotours.net/Americas/DomRepublic/Punta.php ) , I see that the popup opens right at the top. How can I get it to open further down?
EDIT
âŚand unfortunately it did not solve the original problem⌠the affiliate links still open in a reduced size page, the size of the popups. Can we use the same method for this?
Edge is a brand new browser - it appears to have a number of bugs i it that should have been fixed before it was released but which are yet to be fixed. Once it is fixed any patches you put in place to work around what is currently broken will then break it instead of fixing it.
I am in touch with MS on this and they have responded. So, in a couple of years, or five it should be fixedâŚ
The fix I thought solved the problem temporarily is only a line of code n the script which will not take too long to delete if the problem is fixed, and I am happy if it stays like this for a while.
The big, big problem, which was the original problem is that even with the fix the links at the bottom of the FULL page open up as a reduced window the size of the popup that is no longer a popup! Diabolical!
Edge isnât like IE9-11, etc. Edge is supposed to have rolling updates which should provide a more âFF/Chromeâ experience with more updated fixes and features.