Link to home
Start Free TrialLog in
Avatar of Sudhanshum
Sudhanshum

asked on

Popup Windows comes up without closing Alert box in Microsoft Edge Browser

I have one Jquery[ Written in $(document).ready(function ())] on my master page which identify Input controller.

Now this Jquery calls a JavaScript function which is written in .js file and it shows Alert box when Special Character identify in Input controller.

On child page we have textbox along with submit button. There are two scenario below, in which second is giving problem.

1. When we enter special character along with some text in textbox and hit on other area of the screen Alert box comes up with proper message[Which is Correct and working as well].

2. When we enter special character along with some text in textbox and Hit on Submit, It Shows Alert box with the right message but then function on submit button got called and popup comes up which hides our Alert Box.[Now this is the Problem].

Note that, this thing is happening in EDGE browser only.
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

The problem is not how the browser handles the alert() box but how your onSubmit function prevents the form from being submitted.


I suppose without seeing your source code that your onSubmit handler is not checking the result from input checking function.





Avatar of Sudhanshum
Sudhanshum

ASKER

@Zvonko, Thank you for the reply.

Please find attached text file which has source code.
SpecialCharacter_Issue_SampleCode.txt

Thanks for that, I will analyse what I can see.

But if it is possible for you could you please get the browser side source code from your whole submit page and look if any company internals should be blacked out and post it here?


I did not understand this:
But if it is possible for you could you please get the browser side source code from your whole submit page and look if any company internals should be blacked out and post it here?

  Can you please explain in more detail.

OK, when you click with the mouse on your browser page and press the mouse right button then you get the Contex menue. One of the options in that menue is: Page source code

Save that page source code to a file and post that faile here.


Another method in Edge browser to get the page source code is to prefix your page URL with this:  view-source:

Foe example:

view-source:https://your.page.address.com/goes/here.aspx



Did you figure out issue on my given code? I need help to fix that if you can please
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.