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

Updating flash content src tag to swap out an animation [closed]

I have a simple <embed> tag for my flash animation in Chrome, and I want to swap out the animation dynamically:<embed id="test" src="init.swf" width="550" height="400"> </embed>...

View Article


Image may be NSFW.
Clik here to view.

Get the URL behind link items in SharePoint document library via REST API

I have a custom web part that I can connect to different data sources (e.g SharePoint Document Libraries). Then I can map the item properties from that document library to one of my different view...

View Article


Regex optional substring in the pattern

I have a string as Failed to acquire capacity on the hall And sometimes I might also get Failed to acquire new capacity on the hall. So to cover both the cases I want to make new as optional. So I...

View Article

How to make point "adder" button

I am currently working on a game/app. It is a criteria-based point game. I am building it in Ionic 3 with Angular to help with the GUI and ease of testing and deployment. I am having an issue where I...

View Article

Post Hook Find One and Update, Cannot use findOneAndUpdateInside Mongoose

So I'm making a post-findOneAndUpdate-hook. I'm trying to make sure that when people make a ball online or remove references, we check the references and make sure the inputs are updated afterwards....

View Article


Read fragment parameter from redirect url using javascript

I want to read the parameters attached as fragments to the redirect url . I understood that we cannot fetch fragments using jsp but is there any way I could get the parameters using JavaScript?Eg:...

View Article

array.splice() returns the item I want to eliminate rather than the array...

I'm trying to remove an item from an array using the indexOf() with splice() technique suggested. This is what's happeninglet someArray: string[] = [first, second, third, fourth, fifth, sixth]; let...

View Article

React.js - input losing focus when rerendering

I am just writing to text input and in onChange event i call setState, so React rerenders my UI. The problem is that the text input always lose a focus, so i need focus it again for each letter :D.var...

View Article


How to add a Lightbox inside wordpress loop and get_post()?

I am new to wordpress custom theme developing. Currently I am revamping a site into wordpress and there is a gallery page consist with a lightbox. In website, images were pre-selected and images were...

View Article


When are arrays not passed by reference [duplicate]

It is my understanding that non-primitive types in JS are passed by reference not by value. However, in the following code, when I log test.array_reference I am getting the initial value of test_array...

View Article

How to Automate Interactions with Website and Read JavaScript Values in Swift

I am trying to find a way to interact with/navigate around a website without actually requiring a user to perform such interactions. Upon getting to the desired page, I would like to get the value of...

View Article

Image may be NSFW.
Clik here to view.

React Native Press Two Buttons at the same time

GoalI need users to be able to press up to 4 buttons at the same time in React Native.Current RoadblockI'm using TouchableHighlight and when one button is pressed, none of the other 3 buttons can be...

View Article

Image may be NSFW.
Clik here to view.

Three.js detect when object is partially and fully occluded

I'm trying to detect when an object in Three.js is partially and fully occluded (hidden behind) another object.My current simple solution casts a single ray to the the center of the object:function...

View Article


Is there a way by which I can populate an additional field just below the...

while designing the following application I am facing an issue. I am trying to generate an additional field 'Product Detail' just below the Protocol Type (which is only active when i select 'RAID' in...

View Article

Passing a state or prop to pass a value to child component in react

I'm quite new to react. I need to pass whether validation is success or not to child react component.Below is my parent component.Login.js - Parentupdate = name => {...

View Article


get field and value from json using javascript

Now my json is like this { "1": "a", "2": "b", "3": "c", } And from this, I am going to get value like this[ { "id": 1, "value": "a" }, { "id": 2, "value": "b" }, { "id": 3, "value": "c" }, ] I tried...

View Article

Cant get value from json in google maps

i'm newbie in programming, i'm trying to show user location after click on checkbox, but when i check in inspect element->network it's show null and nothing happen. any solution? This is my...

View Article


Encountered two children with the same key, `1`. Keys should be unique so...

The application works completely, but the console returns this The complete error is: Encountered two children with the same key, 1. Keys should be unique so that components maintain their identity...

View Article

Having trouble with Javascript ordering form not calculating

So I'm getting a null error with my order form when I'm trying to calculate the total using javascript. I believe I have everything done. I get an error on line 13 below that starts with...

View Article

How to implement dual display in a Django app [closed]

I am developing a Django application for a school project and it is essentially one page that takes user input and another page that responds to the user input by displaying various alerts/data. The...

View Article
Browsing all 140071 articles
Browse latest View live


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