Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 138221 articles
Browse latest View live
↧

Adding custom claims return error auth/invalid-email:The email address is...

I'm trying to add a custom user claims on my vue project so I can change what a user can see/do. The way it works is I have an input field that I'll enter an email from a user and it will add an admin...

View Article


What could this be about? [TsLint Error: "Promises must be handled...

I'm doing some basic asynchronous operations using async/await in TypeScript but TSLint is throwing mysterious error messages for these two functions below. Has anyone encountered these errors before?...

View Article


how do I display the image that was saved to local storage?

My problem is I saved an image to the local storage but when I retrieve it from vuex and paste it into the code the image does not appear.The object I get from vuex:place: { .... imgPath:...

View Article

React redirects after successful login , but page doesn't get updated until...

I have a problem with routing. I have a login page, where, after successfully logging in, the user must be redirected to the main page. Actually it changes the path in browser and redirects, but the...

View Article

Isomorphic-Fetch not responding with my API's JSON

I've got an API page of JSON that I'm trying to fetch from. If I search the link that I fetch the correct JSON is all that shows. One of two responses come back, depending on how I fetch. I'm using...

View Article


Want to generate the random code when document load and click refresh button...

Want to generate the random code when document load and refresh the code when refresh button click using javascript and jquery, also validate the random code please help...Here is the form<form...

View Article

checkbox not working with multiple checkbox onclick

`function myFunction(){ var checkBox = document.getElementById("myCheck"); var text = document.getElementById("text"); if (checkBox.checked == true){ text.style.display = "block"; } else {...

View Article

Jest/TypeORM purge database after all tests

I would like to delete all entries into my database after or before all jest tests.Here is my setup.js:import { getConnection, getConnectionManager } from "typeorm" beforeAll(async () => { const...

View Article


i want to execute a function every time i click on a button Using JQuery

I want to make a dynamic list of colors using jQuery and CSS (and ofc php but this is not related to my issue).There is a problem when they click on 'choose a color' button my color list will appear...

View Article


Remove last element from array if it matches a particular condition

What's the best way to remove the last element from an array if it matches a particular value?For instance:components = dedupeLast(components,...

View Article

how to change the src path to an image with jquery

The path to an image looks like this:<img src="uploads/image1.jpg"> The image is visible when on index.php in the same directory as uploads is. But for my admin, i use a subdirectory admin. So to...

View Article

Detect window width on the fly in jQuery

I am using a template and it come with a jQuery function to detect the window width, but it only works if you open the window up or refresh the page, not when you adjust the window width.. From what IU...

View Article

Draw a line from geojson with harp.gl

Can somesone give me an example how can I draw a line from a geojson LineString in harp.gl? The tutorial and the doc missing it.Currently I'm trying with this in index.js:fetch('my_data.geojson')...

View Article


Pass database values to Redux form fileds

I have started creating application from this boilerplate. https://github.com/Bikranshu/express-react-boilerplateBelow codes are perfectly saving the new records to database. I need help for two...

View Article

Image may be NSFW.
Clik here to view.

Cursor showing outside the Text Input Area

Here is a snippet of the code : Components : const InputText = styled.input.attrs({ className: 'form-control', })` ` const InputClient = styled.div.attrs({ })` margin-left: 5%; ` const InputStockItem =...

View Article


How to make a hover effects like Wikipedia and Facebook

I am trying to make a hovercard effect using SVG and JavaScript such as Wikipedia and Facebook. but how to fix the top triangle position when hovering on elements. I need to fix the triangle position...

View Article

WHM API: Getting output JSON elements in a random order each time

I am using NodeJS to get results through WHM API 1.I made an async function which calls WHM getdiskusage function and receives the results object.The results I get back from the JSON is having its pair...

View Article


How to align text boxes in yii2 form field?

I have a checkbox in my form field , its a multiple checkbox with single array of values its appears one below one and i need it to appear side by side.I used css properties to change but it does not...

View Article

Aggregation query to return most recent messages to and from User A not...

I have a MostRecentMessage model, defined as,const MostRecentMessage = new Schema({ to: { type: mongoose.Schema.Types.ObjectId, ref: "user" }, from: { type: mongoose.Schema.Types.ObjectId, ref: "user"...

View Article

Google SignIn In Cognito Using Custom Login Form

Currently, I am trying to implement Social Login for my web Application using Cognito Aws Service. But I don't want to redirect the user to Cognito Hosted UI for Social Login. So I use...

View Article
Browsing all 138221 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>