Pass Javascript Array -> PHP?

Let's say I have a javascript array with a bunch of elements (anywhere from 50-200). I want to send that to PHP (pr...

Draw arrow on canvas tag?

I want to draw an arrow using the canvas tag, javascript. I've made it using the quadratic function, but I'm having ...

jquery window.open in ajax success being blocked?

Trying to open a new browser window in my ajax success call, however, it is blocked as a popup. I did some searchin...

Is there some innerHTML replacement in SVG/XML??

In HTML I can build a simple templating system by providing a template in form of a string, replace some parts of it...

How can I select all options of multi-select select box on click??

This is my HTML <select name="countries" id="countries" MULTIPLE size="8"> <option value="UK">UK<...

Get element by id - Angular2?

I have a code: document.getElementById('loginInput').value = '123'; But while compiling the code I receive follow...

jquery to validate phone number?

I want to validate phone numbers like (123) 456-7890 or 1234567890 How should be the 'matches' condition be written...

jQuery .append() not appending to textarea after text edited?

Take the following page: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery...

JavaScript Newline Character?

From this question, this ... lines = foo.value.split(/\r\n|\r|\n/); is one way to split a string, but how do I jo...

Global state in React Native?

I am developing a React Native application. I want to save the user id of the person who is logged in and then chec...

Transposing a 2D-array in JavaScript?

I've got an array of arrays, something like: [ [1,2,3], [1,2,3], [1,2,3], ] I would like to transpose...

extracting data from json string?

I am new to using javascript as well as json. I need to extract certain sections from json for processing the data. ...

What does `precision mediump float` mean??

In the learningwebgl tutorial1 I've found an interesting line in the fragment shader. precision mediump float; I'...

javascript string replace &lt; into <?

Hey all, I basically output content into a div like this using jquery: var text = $("#edit").val(); $("#output").te...

Remove all special characters with RegExp?

I would like a RegExp that will remove all special characters from a string. I am trying something like this but it ...