Avatar of Devildib
Devildib

asked on 

Window popup issue on MS edge browser

Hi Experts,

facing issue with window popup on MS edge browser.
The pop up does',t even show and the functionality is working fine.
I mean its just that the popup is getting by passed altogether.
I have below line of code for popup:

windowpopup(url,window,"height=190px;width=510px;top=270;left=190;center=yes;edge=Sunken;help=No;resizable=No;status=no;modal=yes;","showModelessDialog");

Please help
JavaScriptWindows 10Web Browsers

Avatar of undefined
Last Comment
Devildib
Avatar of LockDown32
LockDown32
Flag of United States of America image

I don't understand the question. Is it when you open Edge you automatically get a pop-up and the pop-up is blank?

Can you try explaining it again?
Avatar of Devildib
Devildib

ASKER

Nope.Its a button click event and the underlying javascript gets fired.At the end of the javascript, the line i pasted above gets bypassed without any error.And functionality works fine.The popup is required to be shown as it displays a reference number.
But its not happening.All server side code etc is good and reference number gets generated at the backend.But the popup code that need to display it lies dead.
Avatar of Devildib
Devildib

ASKER

The popup works fine on IE 11, chrome and FF.Its only on windows 10 and Edge browser that i find this weird behavior.
Avatar of Devildib
Devildib

ASKER

and the defination of windowpopup functions is as given below:
And this line is having the issue :      winModalWindow = window.open(URL, windowname, parameters);    

function windowpopup(URL,windowname,para,type)
{
    var parameters = para.replace(/\;/g, ",");
    window.top.captureEvents (Event.CLICK|Event.FOCUS);
    window.top.onclick = IgnoreEvents;
    window.top.onfocus=HandleFocus;
    winModalWindow = window.open(URL, windowname, parameters);    
    childwindows[childwindows.length] = winModalWindow;
    winModalWindow.focus();
    return winModalWindow;
 
}
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Devildib
Devildib

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Devildib
Devildib

ASKER

fixed the issue by applying above change
Avatar of Devildib
Devildib

ASKER

fixed the issue
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo