Data dodania Pytanie
2017-11-18 22:11 "Error: Invalid ReCAPTCHA client id" when executing an invisible captcha »
I'm trying to implement Google's Invisible reCAPTCHA in a HTML form in a Wordpress website. In the head First, I have the script that sets up the ca...
(1) odpowiedzi
2017-11-18 21:11 Grunt: How to run a function and then a task and then another function, sequentially, when the functions can not be split in to different tasks? »
I am using Grunt to generate a build. I am new to Grunt, javascript, and nodejs, so any new perspectives would be welcomed. Some of the tasks in my ...
(1) odpowiedzi
2017-11-18 18:11 Can't get value of input field when using ajax FormData() in Laravel »
$(document).on('submit', '#color_changer_form', function(e) { e.preventDefault(); var colorCode = $('#color_code').val(); var formData = ...
(1) odpowiedzi
2017-11-18 16:11 Webpack + React16 + Javascript ES6 "Unexpected token" error »
I know this question was asked about thousand times, but I didn't find any solution that works. I'm still getting the same error. Here are my config f...
(1) odpowiedzi
2017-11-18 15:11 access variable from outside loop »
I know that this is fundamental JS, but I'd like a simple explanation. From what I've read, If i declare an empty variable outside of my loop, the var...
(3) odpowiedzi
2017-11-18 14:11 Add header to all requests in AngularJS application created by Yeoman »
I've just built my very first AngularJS application using Yeoman. I've done it like so: $ yo angular frontend As a result, I've got a bunch of stan...
(2) odpowiedzi
2017-11-18 13:11 catch value in razor »
I try to catch value of input, here's the input: <div class="form-group"> @Html.LabelFor(model => model.Price_Selling, htmlAttri...
(0) odpowiedzi
2017-11-18 13:11 How to make active particular toggle and the main thing is that all data is coming from backend »
This is my toogle code .Iam getting this HTML from backend and we save it in table then render on html page.When I click on a switch and make activate...
(0) odpowiedzi
2017-11-18 12:11 Newbie - Javascript code on a mac to control Chrome »
I've been learning javascript looking through through openstack and need a little guidance, I've written the below code to open a website in chrome (m...
(2) odpowiedzi
2017-11-18 11:11 Functional programming: list conditional branching/filtering (Javascript) »
I'm from an imperative programming background (Java) and starting to try understand FP concepts better. In particular conditional branching/filtering ...
(3) odpowiedzi
2017-11-18 11:11 Microservices sharing code »
There are so many answers and blogposts saying "never share code between microservices" and I wonder right now how I am supposed to follow that advice...
(0) odpowiedzi
2017-11-18 10:11 Javascript: Rotate array (2d-matrix) around a certain X/Y-point »
So, I have an array like this: var my_array = [ '00000000000000000', '00000111111110000', '00000111111110000', '0000011111111...
(0) odpowiedzi
2017-11-18 09:11 Why does an enum transpile into a function? »
Consider: enum Colors { Red, Green, Blue } It transpiles into this: var Colors; (function (Colors) { Colors[Colors["Red"] = 0] = "...
(2) odpowiedzi
2017-11-18 08:11 ng-submit called twice in angular form »
I have gone through several questions regarding this issue, but none solved my issue I am using a form in which two submit type button calling same f...
(1) odpowiedzi
2017-11-18 08:11 script src not loading javascript for angular »
HTML <!DOCTYPE html> <html ng-app="dropApp"> <head> <meta charset="utf-8" /> <title>DropBox</title> ...
(2) odpowiedzi
2017-11-18 08:11 cordova android facebook login error »
I m trying to login from facebook api in cordova android app using this reference doc my login code is below var fbLoginSuccess = function (userDat...
(0) odpowiedzi
2017-11-18 04:11 How to show the only part of the image »
UPDATE Since the question was complicating and unclear, I'm rewriting my question to make it much simpler. Given image (image uri for entire ima...
(1) odpowiedzi
2017-11-18 01:11 Don't allow use of non existent keys on a given flow type »
given this simple object: { id: 'x', value: 1 }, in TypeScript if you try to do: type foo = { id: string, v: number, }; const bar: foo = { i...
(2) odpowiedzi
2017-11-17 22:11 Why does adding a space character at the end of a year string cause JavaScript (node) to apply the timezone offset? »
This is in Node v8.9.0 specifically. Consider these lines: console.log(new Date("2006")); console.log(new Date("2006 ")); They produce this output...
(1) odpowiedzi
2017-11-17 22:11 Firebase - Change displayName for Facebook provider »
I'm fairly new to the Firebase ecosystem, so I hope I'm not asking something too basic. I'm using the firebase-js-sdk along with an e-mail + password ...
(0) odpowiedzi
2017-11-17 21:11 toastr doesn't appear in ui-router child states »
Below is an example of my parent/child states and the index.html file that renders my angular app. No toastr messages appear in the child states, not ...
(1) odpowiedzi
2017-11-17 20:11 datatables custom sort condition after search »
Below is the code snippet. By default after search the result were sorted alphabetically. I want it to sort based on the prefix of my search value. F...
(0) odpowiedzi
2017-11-17 19:11 How to add box shadow for highchart chart? »
I want to have the following style on my chart border border-radius: 4px; box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1); border: solid 1px #e1e1e1; Th...
(2) odpowiedzi
2017-11-17 19:11 Error running Node.js' fs.rename() inside of a loop »
I'm developing an application that has to organize some uploaded files, I'm separating them in folders with the ID of their request (I'm using express...
(2) odpowiedzi
2017-11-17 14:11 How to display following response using vue js? »
This is my response.. How to display the error message? passwords do not match {"errors": {"password": ["Passwords donot match"]}, "status": fals...
(3) odpowiedzi
2017-11-17 14:11 Can I share a service between Angular and Node? »
I have a standard utility service in my Angular5 Typescript app. I want to share that with my node application, which is serving the app. I can't fin...
(3) odpowiedzi
2017-11-17 13:11 Track events in Reactjs pages and components globally »
I need to listen to following events and do action accordingly Form submit event - if the form submission is successful, I need to broadcast success...
(1) odpowiedzi
2017-11-17 12:11 Getting empty array in PHP while using $.ajax »
I have this jQuery $.ajax script: var data = JSON.stringify( selected_products ); $.ajax({ type: "POST", url: "addtocart.php", data: data,...
(2) odpowiedzi
2017-11-17 12:11 Find max height-width of irregular shape drawn on HTML 5 canvas »
I've been doing some image processing recently, and am looking for a javascript solution to determine the longest line segment that is entirely within...
(1) odpowiedzi
2017-11-17 11:11 What is the difference between func() => {} and func = () => {} in class? »
I'm learning to use Class syntax now to create React components now and notice I now have to declare methods like this: class Foo extends React.Compo...
(2) odpowiedzi
2017-11-17 10:11 Why is it faster to put an empty src attribute than not putting any? »
I'm working in local with Bootstrap, jQuery and HTML. When you click in a button you get a data-url which gets put into an iframe video. If you put an...
(1) odpowiedzi
2017-11-17 10:11 Remove spaces between links from html table if links removed »
I have below table in my jsp with links coming dynamically on page load using java arraylist <%ArrayList<String> display = ArrayList<St...
(2) odpowiedzi
2017-11-17 10:11 Detect functions with too long length (>100 lines)? »
Is there any way to detect the functions in my Node App that are longer than 100 lines? Im using JSHint but it doesnt have any option to detect it. ...
(2) odpowiedzi
2017-11-17 05:11 JSX Component + dangerouslySetInnerHTML? »
So I am having trouble implementing this scenario: From the backend server, I am receving an html string, something along like this: <ul><l...
(2) odpowiedzi
2017-11-17 04:11 JavaScript: Why does closure only happen if I assign the return function to a variable? »
Even after reading You don't know JS and JavaScript: The Core I still couldn't understand the behavior of the following code. Why, when I call counte...
(3) odpowiedzi