Using React linking images inside of components

I am learning react. I have a file website_index.js inside my components folder inside my src folder. Also inside my src folder is an images folder. I am trying to link pictures in a carousel to the pictures in the image folder but no matter what pat...
more »

2017-05-20 23:05 (2) Answers

ES6 Classes - Updating Static Properties

I am trying to figure out alternative ways to set a static (or class) property an ES6 Class and then change it after new instances of the class are created. For example - Lets say I have a class called Geo, and I need a static property called 'all'...
more »

2017-05-20 23:05 (1) Answers

Hiding fetch request keys

I am using the new OMDB api, and want to keep the fetch requests (that include the key) out of visibility on client-side. Here is an example of the problem whenever a user opens up dev tools:. I do all my calls in React like so: import OmdbKey f...
more »

2017-05-20 21:05 (0) Answers

Navbar for React Website

I am learning react. I am trying to create a navbar and have my tabs open components as new pages using browser router. (When I click the navitems nothing is happening) I have website_header.js as: import React, { Component } from 'react'; import {N...
more »

2017-05-20 21:05 (2) Answers

.append or .after defined as a variable?

So I'm trying to figure out the best way to get this to work. I have a long list of code that's pulling off of a JSON database, and I'm trying to streamline it. I've created the following function: var insertData = function(formattedData, originalDa...
more »

2017-05-20 20:05 (2) Answers

How to send a email from my mobile app?

I have a list of employee details in which email details are also present . Once I click the mail icon of one employee it should either call the email app in the mobile or open a page where I compose and send a mail. I tried cordova plugin email com...
more »

2017-05-20 19:05 (1) Answers

Extjs custom sorting

I'm having a problem in understanding how I can define my custom sorter function on Grid I'm using Extjs 6.2.0 (EDIT: see below, at the end of post) When I try to set up that on store like below: sorters: [{ { sorterFn: function() { ...
more »

2017-05-20 18:05 (1) Answers

feed dialog is not available?

I get the following error after I enter my phone number and password Sorry, this feature isn't available right now: An error occurred while processing this request. Please try again later. <!DOCTYPE html> <html lang="en"> <head...
more »

2017-05-20 17:05 (1) Answers

Function executes faster on subsequent runs

I was playing with performance.now() and wrote a simple recursive function to calculate the factorial of a number when I ran into some interesting observations. The following code finds the factorial of a number and logs the time it took for the fun...
more »

2017-05-20 15:05 (0) Answers

Javascript onclick submit button issues

I'm working on validating user information via a form. I made a simple user information form and I cannot get the submit button to call the javascript fuction in the head. I do not know if I structured something incorrectly. I looked at the script in...
more »

2017-05-20 15:05 (3) Answers

Vue Syntax error after binding a session variable

I'm getting this syntax error when I try to bind a session variable as a prop of my vue component. I reviewed my code and I haven't found the mistake in my code. But more eyes could spot something, I hope. Here is where I register my components: Vu...
more »

2017-05-20 13:05 (1) Answers

How to make <li> jump up and down using JQuery?

I have a horizontal navigation menu with a "JOIN" item. I want the #jump item to jump up and down indefinitely soon after the page loads. This gives the effect but only once and only upon hover: <script type="text/javascript"> $('#jump')....
more »

2017-05-20 10:05 (2) Answers

Javascript listindex Event Handling

Im trying to fire up event handling based on the listindex of a DOM element. I cant quite figure why the code doesnt work as I'm running it in a boostrap environment. Javascript: window.onload = function(){ function getEventTarget(e) { e = e || w...
more »

2017-05-20 10:05 (3) Answers

Array.map object not displaying to the view?

I have an array stored in my redux store, but when I call notifications.map((x, i) => {} nothing actually renders to the view... however if I console.log x to the console then they print.... How do I get my array contents to render to the view? ...
more »

2017-05-20 09:05 (2) Answers

validating array using jQuery Validate

I am trying to validate an array using jQuery Validate plugin. The array has a numeric key and the key number is not sequential. That means, it could be cause[0] or cause[2] or cause[7] Html code <form id="myform" action="submit.php"> <...
more »

2017-05-20 09:05 (2) Answers

REACT DROPZONE: Get data:images after upload

As topic, I want get data:images after upload. I get that if only upload one image. If multiple images how to array it in console? constructor(props) { super(props); this.state = { image: null }; } onDropMain(mainImage) { var that = ...
more »

2017-05-20 08:05 (1) Answers

What is `export type` in Typescript?

I notice the following syntax in Typescript. export type feline = typeof cat; As far as I know, type is not a built-in basic type, nor it is an interface or class. Actually it looks more like a syntax for aliasing, which however I can't find refer...
more »

2017-05-20 00:05 (1) Answers

Setting state through fetch in React Native

In my React Native app I am trying to fetch a particular response string from my API and display it within a text component in my view. The below does not work and returns "TypeError: undefined is not a function(evaluating _this5.setState...) I thin...
more »

2017-05-20 00:05 (1) Answers

What is the purpose of doing `Object(this)`?

I was going through the Array'a find polyfill implementation on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find?v=control#Polyfill Copy pasting it below: // https://tc39.github.io/ecma262/#sec-arr...
more »

2017-05-19 23:05 (2) Answers