JavaScript right click context menus for different objects on a single canvas

Javascript
I am looking for a context menu library. I have drawn some 2d objects on a canvas: objects ctx.save(); ctx.fillStyle = "#00ff00"; ctx.fill...
3 years ago

How Render one page to another page in ruby on rails in jquery(Not a Partial View)

Javascript
How to Redirect One Page to another in Ruby on Rails Using Jquery Event, it is not a partial view it is Another controller view please help to solve ...
3 years ago

Results Preview in Multiple Input or Textarea Not Running

Javascript
I have the code to display a preview of the code tag on a form. If you only use one input, this can be. But if you add one more input, then it is not...
3 years ago

Datatables page loading issue

Javascript
I am using datatables v1.10.11 and Jquery v 2.2.0 One of the features of datatables allows for the 'hiding' of columns using the following columns.vi...
3 years ago

global variable is not set in jquery

Javascript
$(function(){ var bwr_w = null; //global variable //below function gets the dynamic data function myfunc() { var val = '2011' ...
3 years ago

Can someone please explain the following code in javascript; it is used to read a text file, but I don't know about the XML and AJAX stuff?

Javascript
I'm trying to read a text file, and the code that I have completely works. The problem is that I don't understand the code, especially all the onready...
3 years ago

Avoid looping over array multiple times to rearrange elements

Javascript
I have a situation where I have to rearrange an array of objects based on certain property values, but I'm struggling with how to avoid looping over t...
3 years ago

full calendar, events holidays and own events

Javascript
I want to mix my own events and retrieve from google calendars the holidays for a given country. I have my API key etc.. I get my data from ajax calls...
3 years ago

How to print all keystrokes on screen with JS?

Javascript
I am working on a hangman type of game and I got the keystrokes to display on screen, but they seem to overwrite each other each time I hit a key. Ho...
3 years ago

Replace class between elements isn't working on first element

Javascript
When i switch to any card i can't select back default card, why? HTML <div class="profiles_container"> <div class="profile_card_selecte...
3 years ago

javascript slow in IE but fast in Firefox

Javascript
It is very slow to access this page using IE, but much faster using Firefox. Especially when I increase the number of nodes of people. Any ideas what ...
3 years ago

Unexpected token u when trying to parse a JSON array from AJAX

Javascript
I have a PHP script which is used for a POST request which returns (echos) the array: array(3) { ["message"]=> string(32) "The item was succes...
3 years ago

Dynamically add item to jQuery Select2 control that uses AJAX

Javascript
I have a jQuery Select2 control that uses AJAX to populate: <input type="text" name="select2" id="select2" style='width:400px' value="999"> va...
3 years ago

Google Maps Static API net::ERR_CONNECTION_CLOSED

Javascript
I need to get a static image of a map with a large number of polygons on it . Reference is generated from the array which can be more than two thousa...
3 years ago

How download a file from Amazon S3 with express.js and request.js?

Javascript
I am try download a file from Amazon S3 with express.js and request.js using the pipe method. But when I go to: localhost:3000/download the browser d...
3 years ago

Using Javascript and PHP to delete an item out of database

Javascript
I am using an anchor tag to run the JS function confirm(), and if the user clicks okay it adds "deltopic=id", and use the $_GET method to get 'deltopi...
3 years ago

Setting JSON node name to variable value

Javascript
I've spent most of my time in languages like Java and C++ but I'm trying to pick up JavaScript. What I'm attempting to accomplish is a way to set the ...
3 years ago

Regular Expression confused by use of double and single quotes

Javascript
I have this JavaScript (running in Chrome 48.0.2564.103 m): var s1 = 'label1="abc" label2=\'def\' '; var s2 = 'label1="abc" label2=\'def\' label3="gh...
3 years ago

Javascript, the call to a nested function

Javascript
I'm just come to javascript. I come across a code like this. function makeAdder(a) { return function(b) { return a + b; }; } x = makeAdd...
3 years ago

JavaScript: Writing multiple functions with Array method

Javascript
I need help with writing multiple, repetitive functions into a one function that passes in variables instead of having to write it over and over again...
3 years ago