Can I determine which Submit button was used in javascript?

I have a very simple form with a name field and two submit buttons: 'change' and 'delete'. I need to do some form validation in javascript when the form is submitted so I need to know which button...

prevent touchstart when swiping

I have a scrollable list on a mobile device. They want people to be able to scroll the list via swiping, and also select a row by tapping. The catch is combining the two. I don't want a row to be...

Some questions before choosing/start learning Yii framework

I've been developing simple PHP/MySQL web sites for some years. Never used a PHP Framework before and I understand I'll need to know OOP, no problem. I'm about to start a SaaS project of my...

How to set logical focus without giving keyboard focus?

How can I in code define the logical focus of a container, or focused child, WITHOUT giving it keyboard focus ? I just want to control which child will get the focus when the control will get...

Making a WPF TextBox binding fire on each new character?

How can I make a data binding update as soon as a new character is typed in a TextBox? I'm learning about bindings in WPF and now I've become stuck on a (hopefully) simple matter. I have a simple...

Android browser / Samsung Galaxy SII scrolling bug on web forms. Select list hitboxes don't scroll

EDIT: I've uploaded a video to youtube demonstrating the bug here: http://www.youtube.com/watch?v=zkDYlgtX5Hk I've got a really weird bug that I found testing my new web application on a Samsung...

How do I delete an entity from symfony2

My first symfony2 project is a list of guests (invited in an event) stored in a database. I have created the entity class Guest with all variables for them (id, name, address, phone number...

Returning a mutable attribute as an immutable object

Is there a way to return a mutable attribute but protect it from modification? I'll be more specific: I have a Calendar class which uses an internal dictionary mapping datetime.date objects to...

Symfony2 - Pass data between events

What I need I must build a module that allows input of very simple pay stubs. The classes representing this are PayStub and Detail, which are POPO and persistent. Moreover, the Details must be...

Freeswitch Event Socket Library

I'm trying to use the Event Socket Library (ESL) (archive) from FreeSWITCH but I guess this question is more about the technique and "how to" than anything else. The code below is what my...

Trying to use ESAPI getValidInput but getting error

The following error is being generated while trying to validate an input: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class...

How do I remove a row from a Kendo Grid

I have a very simple setup, a grid called #list with a datasource populated with records to display. I have a button on each row with an onClick event that calls this function: // Soft-Delete...

Setting the initial selected item when binding to a ListView's SelectedItem property

I have a Xamarin.Forms xaml page in which I am using a ListView to allow the user to pick a single item out of a list. I have bound the ListView's SelectedItem property to a property on my...

File drop upload dataTransfer is empty Angular 2

I'am trying to create simple drag-n-drop file upload process. But actually I can't get dataTransfer from event. Files list is always empty. Could someone help me, please? I don't know what exactly...

Populate a dropdown list from a service after form has loaded

I have a similar problem to that described in https://stackoverflow.com/questions/39689049/drop-down-list-in-angular-2-model-driven-form (although with a much simpler model binding to the select...

How to make Vue reactive content update quickly?

I have a problem with Vue being sluggish on updating reactive content. I want users to select items from a list. When items are selected they should be marked. For test I am just setting a border...

Spring data mongodb @DBRef list

I am trying to have a list in a model using @DBRef but I can't get it to work. This is my User model: @Data @Document public class User { @Id @JsonSerialize(using =...

FlatList re-rendering every time i type something in TextInput

I don't think this is a bug, more like I'm doing something wrong but here it goes. I'm building a Chat Component for my application, it's very simple, I type something press send button adds to...

WPF ListViewItem events not firing properly on Touchscreen

<Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

React native onPress with TouchableWithoutFeedback is not working

I am developing a simple React Native application for learning purpose. I am just taking my initial step to get into the React Native world. But in this very early stage, I am having problems. I...

How to setup event log for .NET Core 3.0 Worker Service

I'm working with the new Worker Service app template with .NET Core 3.0 Preview and am trying to add event logging using the AddEventLog method. However, I cannot see any of my logs via the Event...

Getting Msg 8623, Level 16, State 1, Line 1 error on a simple select query on one table

How to optimize a simple query that search on one table for IDes that are not a part of a set. I created the following query Select userId from user where userId not in (5000, 5001, 5002, 5003,...

How to build sticky scroll sidebar behavior similar to Facebook feed sidebar

I am working on building sticky sidebar behavior that will run alongside a vertical feed which is very similar to a facebook feed on desktop web. position: sticky works well for the easy use case...

C# Blazor: How to prevent specific key on input like in JS with e.preventDefault()?

The problem seems very simple, but I didn't found any solutions yet. I have a Blazor Input with an onkeydown event: <input @onkeydown="@(e => KeyWasPressed(e))"...

Why am I receiving this error on Azure when using eventhubs?

I started using Azure recently and It has been an overwhelming experience. I started experimenting with eventhubs and I'm basically following the official tutorials on how to send and receive...

How to find keywords in a text file using python's sklearn

I want to create a way to optimize my resume using a python script. To do this, I am trying to find keywords used in the job listing that I can add to my resume to make it stand out when it is run...

Jetpack Compose - Capture Key Event In Text Field

I want to create a text field inside a todo list where when the user presses backspace on an empty text field , it removes itself from the list , very simple to do as you can see ! Jetpack...

Impossible to display list of *past* or *all* events (events manager plugin) in WP BACKEND with a particular theme

Sorry, this problem needs a longer description and I don't really have any code to post (or rather, I wouldn't know what code to post - see below)... I have two websites with two self-created...

Introduction in developing Cinnamon Shell Extension (Desklet) in CJS / GJS (Gnome JavaScript)?

I started learning how to write Cinnamon extensions. Well, I try to ... While I managed to write a first simple desklet, I still didn't find a really good and up to date documentation and...

Why does my Intel Skylake / Kaby Lake CPU incur a mysterious factor 3 slowdown in a simple hash table implementation?

In short: I have implemented a simple (multi-key) hash table with buckets (containing several elements) that exactly fit a cacheline. Inserting into a cacheline bucket is very simple, and the...