Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Won't compile after missing Bin file replaced Pin
F-ES Sitecore18-Jan-18 22:41
professionalF-ES Sitecore18-Jan-18 22:41 
GeneralRe: Won't compile after missing Bin file replaced Pin
Redvan19-Jan-18 9:07
Redvan19-Jan-18 9:07 
QuestionHow to save large class data to multiple table using entity framework 6 Pin
Mou_kol17-Jan-18 22:25
Mou_kol17-Jan-18 22:25 
AnswerRe: How to save large class data to multiple table using entity framework 6 Pin
debasish mishra23-Jan-18 19:05
professionaldebasish mishra23-Jan-18 19:05 
Question"Whoops! Please Enable Adobe Flash" popup does not allow user click from my aspx page (which relates to a .master file). Pin
Anita Ziegner 17-Jan-18 6:41
professionalAnita Ziegner 17-Jan-18 6:41 
AnswerRe: "Whoops! Please Enable Adobe Flash" popup does not allow user click from my aspx page (which relates to a .master file). Pin
Richard Deeming17-Jan-18 8:29
mveRichard Deeming17-Jan-18 8:29 
GeneralRe: "Whoops! Please Enable Adobe Flash" popup does not allow user click from my aspx page (which relates to a .master file). Pin
Anita Ziegner 17-Jan-18 8:48
professionalAnita Ziegner 17-Jan-18 8:48 
GeneralRe: "Whoops! Please Enable Adobe Flash" popup does not allow user click from my aspx page (which relates to a .master file). Pin
Richard Deeming17-Jan-18 9:04
mveRichard Deeming17-Jan-18 9:04 
Looking at the full script file[^], it seems the popup creates a <button> element within the modal to open a new page with instructions on how to install Flash.

The event handler for the button doesn't prevent the default behaviour. Since the button is inside a form, the default behaviour in some browsers is to submit the form.

You'll need to find some way to identify the button, possibly via an ID or CSS class on an ancestor element. You'll then need to add a delegated event handler[^] for the button's "click" event, and call the preventDefault()[^] method on the event object.

For example:
JavaScript
document.getElementById("parent-element").addEventListener("click", function(e) {
    if (e.target && e.target.nodeName == "BUTTON") {
        e.preventDefault();
    }
});




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionPls help Pin
Quarshie Mawunyegah11-Jan-18 7:08
Quarshie Mawunyegah11-Jan-18 7:08 
AnswerRe: Pls help Pin
ZurdoDev11-Jan-18 8:17
professionalZurdoDev11-Jan-18 8:17 
AnswerRe: Pls help Pin
F-ES Sitecore14-Jan-18 22:09
professionalF-ES Sitecore14-Jan-18 22:09 
QuestionWhat url option does with ajax begin form Pin
Mou_kol8-Jan-18 22:00
Mou_kol8-Jan-18 22:00 
AnswerRe: What url option does with ajax begin form Pin
Vincent Maverick Durano9-Jan-18 19:20
professionalVincent Maverick Durano9-Jan-18 19:20 
QuestionBest way to prevent xss attack Pin
Mou_kol8-Jan-18 0:23
Mou_kol8-Jan-18 0:23 
AnswerRe: Best way to prevent xss attack Pin
Richard Deeming8-Jan-18 6:25
mveRichard Deeming8-Jan-18 6:25 
GeneralRe: Best way to prevent xss attack Pin
Mou_kol8-Jan-18 21:04
Mou_kol8-Jan-18 21:04 
GeneralRe: Best way to prevent xss attack Pin
Richard Deeming9-Jan-18 1:21
mveRichard Deeming9-Jan-18 1:21 
QuestionAngular 4 having vs2013 Pin
soumyaraj7-Jan-18 18:54
soumyaraj7-Jan-18 18:54 
AnswerRe: Angular 4 having vs2013 Pin
debasish mishra8-Jan-18 23:23
professionaldebasish mishra8-Jan-18 23:23 
QuestionGuidance required to show date and time as per user's timezone wise Pin
Mou_kol6-Jan-18 6:16
Mou_kol6-Jan-18 6:16 
AnswerRe: Guidance required to show date and time as per user's timezone wise Pin
Richard MacCutchan7-Jan-18 2:43
mveRichard MacCutchan7-Jan-18 2:43 
GeneralRe: Guidance required to show date and time as per user's timezone wise Pin
Mou_kol7-Jan-18 4:48
Mou_kol7-Jan-18 4:48 
GeneralRe: Guidance required to show date and time as per user's timezone wise Pin
Richard MacCutchan7-Jan-18 6:09
mveRichard MacCutchan7-Jan-18 6:09 
Questionhow to prevent csrf attack by using csrf-token Pin
nooshiiin5-Jan-18 18:58
nooshiiin5-Jan-18 18:58 
AnswerRe: how to prevent csrf attack by using csrf-token Pin
debasish mishra8-Jan-18 2:16
professionaldebasish mishra8-Jan-18 2:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.