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

Why does Safari allow a scroll-based video to work as expected, while other...

I am trying to replicate this functionality whereby it is possible to control the video's progression with the mouse scroll. Unusually, the functionality is working flawlessly on Safari yet on Firefox,...

View Article


How to include ruby code in a Javascript String

I am making a function that on click it will append more date fields. Although the 'form' tag keeps getting outputted by the file and failing. $('.add-date-btn').click(function(e) { e.preventDefault()...

View Article


Submitting table's data with Javascript with HTML Datatables

I have a simple datatable that shows some JSON data received from an API. I edited my table so that, for each row, there is a button that, when hit, will send an Ajax request to a URL containing the...

View Article

Safari dynamically loaded loaded by infinityScroll doesn't have controls, nor...

As the title says after InfinityScroll loads a new pack of video tags, they lose their control feature and playability. I tried after appending to replace controls attribute with controls instead of...

View Article

Cannot post back calculation to server

The problem showing up when I click the button submit.The error coming out 404 not found and "Cannot POST/Index" in the website. Am I have logical problems on the code or problem that occur on the...

View Article


how to get the ip address of the client's local network if google masks the...

Regards! I want to obtain the IP address of the local network of my web visitor, the next code shows as output <html><head></head><body><!-- <button...

View Article

When do I use attrs vs passing props directly with styled-components?

I am a bit confused as to when I should use the attrs constructor to pass props in styled-components:const Example = styled.div.attrs(props => ({ style: { color: props.color } }))``; and when I...

View Article

How to open numeric keypad for html password field in IOS/ANDROID

I want to open numeric keyboard for android/ios hybrid app. I have tried below code but it isn't working -<input type="password" pattern="[0-9]*" inputMode="numeric" />

View Article


Read More Functionality

I am trying to come up with a solution for adding read more functionality to a bunch of boxes on a page.the simplest solution I saw was this: https://www.w3schools.com/howto/howto_js_read_more.asp but...

View Article


Need explanation for this particular quirky asynchronous behavior

I have e2e tests for a javascript library, which works with the canvas element. It's organized this way: there is an html page with a list of links, the canvas, and an image element. When I click on a...

View Article

How do I get a count of this API data?

I'm making a tags component that takes a count from data that's received from an API. the data looks like something like this:// Listing.js const apiData = [ { id: 1, billing_status:...

View Article

Moving div Up and Down Changing ID Num using Javascript/Jquery

I want to be able to change ID when moving the div up and down so then I can submit them numbers to MySQLi...So basically from<div id="1" class='col1'>1</div> <div id="2"...

View Article

Is there a way to ping a server via client machine in PHP?

I'm currently creating a tool to help our customers to choose their cloud region (to choose their datacenter) according to their current location (via ping). I just used this part in php:{ $tB =...

View Article


Image may be NSFW.
Clik here to view.

JQuery does not work correctly everywhere

I am developing a small project on Asp.Net Core I have a piece of HTML code that is automatically generated:@foreach(var item in list) { <div class="some-code" id="@string.Concat(\"_col_\",...

View Article

Spin a slot machine in specific range (max range)?

I'm newbie and try to imitate this slot machine work, example 1: https://github.com/momokang/slotmachineBefore starting to spin, I set the max value of the slot machine (ex: 500) and then I press Spin...

View Article


how to can we save same web-page to different location?

i am using asp.net with c#.please, tell me how to save current web-page to another location in project directory on button click?.i do not want to use file upload control,as i am not uploading any file...

View Article

I need this script to output the circumference of a circle with a changing...

So far this is what I've set up and it's not throwing up any sort of console errors in Repl so I'm not sure what it could be. I'm not sure if there's another way of outputting a result or what but I'd...

View Article


What effect does luminary.com use on their background landingpage [closed]

Does anybody know the library / method used for the background effect of https://www.luminary.com/ ?Thanks :)

View Article

ThreeJS | Detect when object leaves another object

I'm making a ThreeJS project in which I have planes (Object3D) flying inside a sphere (Mesh).I'm trying to detect the collision between a plane and the border of the sphere so I can delete the plane...

View Article

PhantomJS website requires keypresses for authentication

A website I use PhantomJS to log into and scrape a table out of was recently updated and the new version seems to require key presses to actually occur on the username and password fields to login...

View Article
Browsing all 142188 articles
Browse latest View live


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