Data dodania Pytanie
2017-01-11 23:01 Delete data from database if user closed browser »
Hello how can i detect if user closed browser and delete something from db? I want to use it for online count because when user close browser he is st...
(3) odpowiedzi
2017-01-11 23:01 Unique id for each control in table »
I have a table which contains a single input control for each item in my model. For this example let's assume my model contains 3 items. I am able t...
(1) odpowiedzi
2017-01-11 22:01 Why does Math.min([]) evaluate to 0? »
Why does Math.min([]) evaluate to 0? I would expect that it would evaluate to NaN since MDN's manpage for Math.min states "If at least one of the arg...
(2) odpowiedzi
2017-01-11 22:01 Finding the last element of a multidimensional array that meets a condition through recursion »
I know there are not so many real-life examples of recursion. I think I found one today and I want to share it Q&A style because I think it's fasc...
(3) odpowiedzi
2017-01-11 21:01 POST from Typescript to Web API API, unable to pass a JSON Object »
I am trying to pass a JSON Object from a typescript POST call to a Web API method. Fiddler shows that the object has been converted into JSON and the...
(1) odpowiedzi
2017-01-11 18:01 ColdFusion handling AJAX JSON data »
I am setting up a local API as an additional step in my external API call using AJAX. The sequence goes like this: Ajax call passes data to localAPI...
(1) odpowiedzi
2017-01-11 18:01 DataAnnotations range in View number helper »
I'm using Entity Framework with Data Annotations, in my Model (myModel.cs) i have this field: [DisplayName("My object")] [Required] [Rang...
(1) odpowiedzi
2017-01-11 17:01 jQuery in a HTML formatted string »
I have some AJAX call like this: $.ajax({ type: 'GET', url: <some url>, dataType: 'html', success: function(html){ // d...
(3) odpowiedzi
2017-01-11 17:01 How to get clicked item index in jQuery collection? Not by index() »
I want to get an index of clicked element var $inputs = $("input"); $inputs.click(function() { console.log($(this).index()) }); it works well f...
(3) odpowiedzi
2017-01-11 16:01 How to spread divs around without overlapping each other »
I'm building an event scheduler and I've gotten into a point that I can't figure out a way to spread events around without overlapping each other. (It...
(2) odpowiedzi
2017-01-11 15:01 Number input with 0.01 steps gives undefined for certain values in angularjs »
With a input of that type in angularjs (1.6.1) gives undefined for values between 9.03 to 9.05 inclusively. The problem reproduces with other values, ...
(3) odpowiedzi
2017-01-11 14:01 How to use data in external javascript file from express »
I am creating application using node.js express where i want to pass some data from express and use in external javascript file. here is my app.js c...
(1) odpowiedzi
2017-01-11 12:01 CSS Animation for transform does not work properly when using an initial keyframe with matrix3d value »
I need to execute an animation on a div for properties scaleZ() and translateZ() using CSS Animations. The following code works fine when initial and...
(2) odpowiedzi
2017-01-11 11:01 Using `instanceof` on objects created with constructors from deep npm dependencies »
Background: I have an npm module that I have common error handling code in, including a custom error: function CustomError () { /* ... */ } CustomEr...
(2) odpowiedzi
2017-01-11 10:01 Comparing 2 different set of data array »
I have an app that are retrieving 2 sets of data. Now I want to do is get the brand of data1 and and the brand of data2 which depends on the date, if ...
(4) odpowiedzi
2017-01-11 07:01 Node.js Error: Can't set headers after they are sent. »
I am writing a simple query to fetch all the list of courses in the mongodb. I get a {} as response, and node.js stops with the error, "Error: Can't s...
(2) odpowiedzi
2017-01-11 06:01 set it to null and get variable data in just one line »
var checkActiveBrand = $(".brand__title").attr("data-brand-title"); I have this variable to get my .brand__title data but I also want to check if it...
(3) odpowiedzi
2017-01-11 06:01 Why New Date() is always return null, if i pass the value is 1-1-2016? »
If a date format is $scope.timestamp = '2016-12-16 07:02:15 am' I want to format to 16/12/2016 07:02:15 am I have tried this below code and it's w...
(1) odpowiedzi
2017-01-11 05:01 Contact Form 7 - Datepicker »
How do I add an image on date field if I am using Contact Form 7 Datepicker Plugin? The example that I want is on this website, Jquery Datepicker. Thi...
(1) odpowiedzi
2017-01-11 05:01 Jquery DataTable pagination Not working when postaback »
Jquery DataTable Pagination is not working I have 13 paginations i am selecting 5th pagingwhen i click edit button in my gridview the page will postba...
(1) odpowiedzi
2017-01-11 02:01 React js syntax for if else with map function in branch »
I'm new to React and struggling with the syntax. I have this block as a div inside my render function. Every change I make goes from one syntax error ...
(3) odpowiedzi
2017-01-11 01:01 JavaScript variable color in JetBrains WebStorm »
Why JS variables have different colors in JetBrains WebStorm 2016 ? There are no significant differences between express, path, favicon... variables: ...
(2) odpowiedzi
2017-01-10 21:01 chrome.tabs.executeScript(): How to get result of content script? »
According to the documentation for chrome.tabs.executeScript (MDN), the callback function accepts an "array of any result" result set from the executi...
(1) odpowiedzi
2017-01-10 20:01 How to make from textbox div which contains text of that textbox. Is it possible? »
I want to create this on my website. The user will input some text into the textbox and after he will press enter the textbox will change into the div...
(4) odpowiedzi
2017-01-10 19:01 Chrome extension: detect tab closing with message passing »
I am building a simple chrome extension that will only work on a specific domain, and I'm now facing the problem of detecting a tab's close in backgro...
(0) odpowiedzi
2017-01-10 19:01 Handling JQuery ajax success object data »
Im having a hard time handling the ajax object pass back. Im trying to loop over each object and output each data value from each object. AJAX call: ...
(3) odpowiedzi
2017-01-10 18:01 how to automatically share user content / entries from my web app to facebook? »
How do apps like twitter and instagram accomplish this? I've been searching for a while online, and have gone through the facebook api, but it seems ...
(0) odpowiedzi
2017-01-10 17:01 How to add more fields using jQuery? »
I have a 3 input fields with +Add More Button. I want to add more fields when +Add More button is pressed. When New field will create there should be...
(2) odpowiedzi
2017-01-10 17:01 Responsive Hexagon Menu »
I am trying to implement a Hexagon menu for mobile apps. The end result is My attempt is at JSFiddle. The issues I am facing right now are: How...
(0) odpowiedzi
2017-01-10 16:01 ActionView::Template::Error "Invalid CSS" thrown in feature spec only »
The following Sass works perfectly in development: main :not(table) img +box-shadow But when I run my specs, as soon as a JavaScript feature ...
(0) odpowiedzi
2017-01-10 14:01 Jquery application loading slowly »
In my application, I am using steal to load all the controllers which are needed for the current page and one more as then and structure goes somethin...
(0) odpowiedzi
2017-01-10 14:01 what does this "a: ?number = null;" mean? »
In Facebook's React Native's Geolocation documentation I see this line of code: watchID: ?number = null; I am clueless about it's nature. Is this ...
(1) odpowiedzi
2017-01-10 08:01 DataTable does not re-draw after updating rows »
I'm using the DataTables library to create a table with extra functionality. What I'd like to achieve, is that the user can select rows and then press...
(1) odpowiedzi
2017-01-10 08:01 How to cancel a promise in javascript? »
var promise1 = new Promise(function(resolve, reject) { // ajax api call }); var promise2 = new Promise(function(resolve, reject) { // ...
(1) odpowiedzi
2017-01-10 07:01 ng-repeat ignores immediate ng-if »
I have been working with Angular JS for long time now, but just now faced a strange issue where ng-if is simply gets ignored with ng-repeat. This is ...
(3) odpowiedzi