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

Why when I use ajax request, there comes out more prefix?

I have a config.js:function get_config() { var domain = "www.example.net"; var base_url = domain + '/includes/api.php'; return { domain: domain, // domain base_url: base_url, } } When I use...

View Article


Merging Array keys

The following code loops through two arrays and after the run outputs the following.GraphCategories = [ "AdminFee", "AdminFeeVat", "CaptureCharge", "CaptureChargeVat", "CardReplacementFee",...

View Article


Case while working with a number of version format

When i get a number in the format of version Example "1.0.0.0".If i need to increment to the next version of the number and that would result in "1.0.0.1"using the below code of regex will get the...

View Article

input type password is immovable

I have this code and the 1st input won't ever move whatever I do the only thing that made it move was float:right; but I don't want it to be like this I even created this div->P so maybe it would...

View Article

Find return statements using Javascript Regex in an input Javascript string...

This question already has an answer here:My regex is matching too much. How do I make it stop? 5 answersGood day guys! My problem is I need to find all return statements in a Javascript string input. I...

View Article


Image may be NSFW.
Clik here to view.

The not operator is not working correctly in jQuery

I want to get all div elements containing the class, edit-buttons, but not containing the class, hideElements. I have used the following jQuery. But it selects all divs containing the class,...

View Article

Make Datepicker appear when clicking on field in Qualtics

I'm trying to combine two pieces of code. I like the Google data picker style and I like the code that makes it appear when you click on the specific question.Below are the two pieces of code. I know...

View Article

Gatsbyjs and internal links

I am building a site in gatsbyjs. Just for seo, i think "onClick" is not crawlable. So maybe someone can help me.I have this:render={data => ( <div className='feed'>...

View Article


ONCLientClick() posts back even when function returns false

I am trying to make it so an ASP:Button doesn't post back and refresh the page.I have set OnClientClick to return false as the result of the function.HTML - <asp:Button ID="englishButton"...

View Article


How to add functions on randomly generated numbers

Is it possible to add a function on randomly generated numbers. For example I used getRndInteger(min, max), Math.floor() and Math.random() to generate random numbers, and within those numbers you want...

View Article

Three.JS - Raycasting on custom mesh

I'm currently trying to raycast a custom created mesh in three.js. While raycasting works like a charm for some imported meshes, it just doesn't seem to work at all with my custom mesh.After...

View Article

Displaying twitter sampled stream on index.html

I am trying to show the twitter sampled stream on my simple index.html page.So far I have put this inside my body:<script> const https = require('https'); const request = require('request');...

View Article

Firebase - getting the download url (firebase storage) and saving it in...

So i have been trying to make something which just uploads a project to firebase and all.. I cant really explain the project but what i am trying to do is:Get the firebase download URL when uploading...

View Article


How to detect transparent area click OR if user draw in transparent area in...

I'm drawing an image onto a canvas using drawImage. It's a PNG that is surrounded by transparent pixels, like this:How can I detect a drawing move path in the transparent part of that image on the...

View Article

How do I create dynamic variable names inside a loop?

I'm working on an ajax google maps script and I need to create dynamic variable names in a for loop.for (var i = 0; i < coords.length; ++i) { var marker+i = "some stuff"; } What I want to get is:...

View Article


JS Library for semantic web links

Are there any javascript libraries out there that can cleverly render semantic web links.i.e. If I have the link http://dbpedia.org/resource/Barack_Obama or some other semantic web resource I'd like to...

View Article

getAddress.io API Script

I am trying to get the output of line_1 line_2 and line_3 all on the same field called "address" instead of them all being on there own input field.I am using the API from getAddress.io and the code i...

View Article


Nodejs ffmpeg not outputting to stdout

The Goal: convert a webm/audio stream to a wav stream. The Browser continuously sends the webm/audio stream to backend via websocket where it should be converted to a wav encoded stream for further...

View Article

Not able to resolve Datatable SCRIPT5007: Unable to set property...

I am not be able to resolve following Datatables error:SCRIPT5007: Unable to set property '_DT_CellIndex' of undefined or null referenceI tried to look all over the internet and found this to be the...

View Article

I dont know how use map in this situation

I wrote the contents of this JSON to the array "heroes", but I don't know how to get "damage", "basicAttack.category" and "specialAttack.category" for mapping. I tried to solve this problem but...

View Article
Browsing all 142410 articles
Browse latest View live


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