JavaScript (not to be confused with Java) is a dynamic weakly typed interpreted language typically used for client-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, ...

learn more… | top users | synonyms (8) | javascript jobs

0
votes
0answers
9 views

How to give h1div+1 after give correct answer?

I make a quiz with javascript and HTML. Now I want when you give a correct answer the h1divcirckel give plus 1. In my jsfiddle is the HTML and Javascript. The quiz doens't work in jsfiddle but it work ...
0
votes
1answer
9 views

Regular Expression that contains 1 to 3 members of a set but one of those members cannot be by itself

Here's my current regular expression: ([\d\*]{1,3}[A-Z\*]{0,3}) My problem is with the first portion [\d\*]{1,3} I need this to match at most 3 numbers and at least one number and I need to accept ...
0
votes
1answer
3 views

Express router.use not working

I used express-generator to generate the basic structure of an express app. I have this in routes/my.js: router.use('/update', function(req, res, next) { req.headers['content-type'] = ...
0
votes
0answers
7 views

Couldn't Download Links That Contain Files in WebView Android

I have a code snippet that could download a text file. The problem is that whenever I try to load it in a WebView and click the Download link after creating the text file. It does nothing. I tried to ...
0
votes
0answers
17 views

Open 'Choose file' window onclick on anchor link (Skip the click on 'Choose file' button)

I have an anchor a.add_input link which is responsable of adding (via jQuery) a file input field to the current document. The input is appended to a list of other file input fields (Multiple file ...
0
votes
0answers
3 views

Meteor.js application does not show data with Kimono scrapper in iOS?

My meteor application hosted on http://diaspora.meteor.com is using a kimono api. and is working nicely in web browser. The problem is when i try to build an iOS application for that, running the ...
0
votes
0answers
16 views

What (jQuery) means in the end of function?

I have a function: var waitingDialog = (function($){ ..... return{ } })(jQuery); Also could you explain what $ means in the function? Is it going to work without that?
0
votes
0answers
6 views

Getting factory service data to controller for use in view with promises

I am trying to use the Forecast.io weather API to build a weather application with Ionic. I am having a hell of a time getting the AJAX response data delivered to my controller for use in my view. ...
0
votes
0answers
14 views

Spliting each value in Javascript array and then group them based on certain criteria

I have a Javascript array. I want to split each value in the array based on certain value & then group them. Here are the conditions/values in order on priority based on which I want to split the ...
0
votes
1answer
23 views

Fill Arrays with random values

I have two 1D arrays and I want to fill them with 10 unique random x,y values in Processing. For example: x y - - 3, 9 2, 4 6, 2 7, 5 My arrays are: Table1 for the X values and Table2 for the ...
0
votes
0answers
3 views

Integrate Datatables plugin with the help of D3.js

I've been on this for hours - I can't figure out which part of my code that is wrong.I managed to make and display a proper table when I run my code but I want to be able to make my table like this - ...
0
votes
0answers
2 views

Lookup contacts instead of accounts on emails in MS Dynamics CRM 2013

I planning change default view for to attribute on email entity, so instead of account entity it will suggest user to choose recipients among contacts. However this functionality in MS Dynamics CRM ...
0
votes
0answers
7 views

calendar plugin sample doen't work on .net

this code works in expamle html but when I tried to use it in aspx page doesn't work. also I didn't udnerstand the code well. for example <%= month %> used but there is no month also first time ...
0
votes
0answers
8 views

onReadyStateChange not firing in IE for XHR Request

I have this code that I am using and it works fine in chrome, but in IE, it looks like that onreadystatechenge is not firing. How do I get this to work cross browser. I read that in IE you have to ...
0
votes
0answers
2 views

Sails.js group routes in v1, v2, etc

I have API with Sails.js and I want to wrap all my routes in v1. Is it possible? Here is what I tried, but it doesn't work. routes.js 'use strict'; module.exports.routes = { 'get /v1': { ...
0
votes
0answers
41 views

Calculating TOTAL in added input fields

I have this small problem. I have been checking out the net to find an answer, but it is mostly for input fields which aren't generated / added. <script> $(document).ready(function(){ /* --- ...
0
votes
0answers
6 views

React Router not working - being called from CDN

I trying to use React Router to render pages. Right now everything is in a single page so i am not using any AMD or CommonJS components, if i try to load the pages individually by changing them to the ...
0
votes
0answers
4 views

Socket.io Timer that displays in minutes, seconds

Here i am trying to create a timer that counts down from a specified value in m:s format, when the timer reaches 0 i want to emit to the clients using a function called selectUser. My HTML and ...
0
votes
0answers
6 views

How to add a read/write customRestService to support editing in Dojo DataGrid?

I am trying to develop a Dojo DataGrid that returns a user's documents from the categorized BidsByDriver view and allows them to edit the Priority field in the grid. After getting past the hurdle of ...
0
votes
0answers
5 views

adjustValue overide jquery for timepicker(spinner)

1)In jquery how to overide an predefined function of jquery Ex:_adjustValue. 2)_adjustValue will adjust a value to nearest value within min and max. 3) I am using timepicker (Internally uses ...
0
votes
0answers
7 views

angular google maps double windows

I have an issue from angular google maps windows. I don't know why the windows label come double on the maps. I made in plnkr. I wan't to show all windows label, but it come it in double windows ...
0
votes
1answer
11 views

What event does angularjs use to get a value from text input?

What event does angularjs use to get a value from text input? I thought it's oninput or onchange.
0
votes
1answer
24 views

onclick for table TD

Trying to do an onClick a JS function for a <td>. <td id="Td10" runat="server" onclick="doPostBack('<%#Eval("ID")%>')"> </td> is ...
0
votes
0answers
6 views

Google Maps API - Update style of just 1 item after display

I'm trying to alter just one component of a previously styled map after it has been displayed, but it resets all of the other components unless they are re-defined again in the new style. Is there a ...
-2
votes
2answers
27 views

jQuery ~ Function not working

Im trying to call my javascript function on click: <div id='alert'><button onclick='alertClose()' class='alert'>Close</button></div> Here is the function: function ...
-1
votes
2answers
15 views

folder structure for angularjs for rest api

**I want to build an angular Js Application in which I want to use Angular Js for front end and REST API for back-end data please give me suggestions for directory structure **
0
votes
0answers
4 views

Make Hierarchical Bar Chart Vertical

I'm trying to create a vertical hierarchial bar chart based on this example http://bl.ocks.org/mbostock/1283663 . I was able to position the axes but I can't seem to move the bars to start from the ...
-1
votes
0answers
5 views

How to introduce scroll in svg

The SVG elements like rect,img are placed inside svg tag. Dynamically i am placing foreign object inside svg tag. The size of foreign object is greater then the svg element size. how can i introduce a ...
1
vote
0answers
13 views

German characters in angularJS live search

German characters in angularJS live search First off, sorry for my bad English, I'm from Austria... I have problem with angularJS live search from MySQL, everything works perfectly except German ...
0
votes
2answers
11 views

add id and class attributes to ajaxDisplay appendChild

i have this code which works correctly and is giving me the name and price of a product. now i want to add a class and id attribute to each of the entries. tab.innerHTML += ...
1
vote
0answers
17 views

Using shared module (between separate modules)

So I have a module I have created that does a kind of "state" routing for me. I made my own little version to get my exact intended effect, and it seems to be working great until I plug it into ...
0
votes
0answers
4 views

remove exif in AngularJS at upload

I have a web application(using AngularJS) in which users can upload a profile picture and before saving the image they can adjust they photo with some cropping tool. The issue is that when I'm ...
0
votes
2answers
9 views

Splitting out xml result into dropdownlist

Hope someone can help - I'm new to js/jQuery so I'm hoping it's something really simple I'm missing here. I'm trying to populate a dropdownlist with the xml result from below. The parseXML function ...
0
votes
1answer
12 views

Ajax Call not returning Partial View

I am making an AJAX call, and then returning PartialView from Controller to populate it in a div. The following is my code :- var file = document.getElementById("file").files[0]; jq.ajax({ ...
-1
votes
1answer
19 views

Get query strings and append to link

JavaScript novice, thanks in advance. I'd like to get the the full string of query parameters and append them all to a link in the body. The link in the body will send the user to a registration ...
1
vote
0answers
32 views

Printing PHP string using JQuery

I got a script which uses an array that was created in PHP and was encoded to JSON. It then take the string and use it to set a value for an element I created: var val =""; if(arr != null) { ...
0
votes
0answers
10 views

codeigniter and jquery autocomplete

i have some problem with the basicly function of jquery autocomplete in codeigniter but i think that the error isnt jquery the code: the view: <link rel="stylesheet" href="<?php echo ...
-1
votes
4answers
30 views

How to display element from an array with loop

I have an array that contains 7 objects which are questions as follows: var questions = [ {question: 'Which turkish club did former Leeds player Harry Kewell join in 2008, which caused an uproar ...
-1
votes
1answer
6 views

How to make a multiplication program for the number 14*2 in LMC?

Here is some code in JavaScript: <!DOCTYPE html> <html> <body> <script> var temp = 14; var y = 2; temp <<= y; document.write(temp); </script> </body> ...
0
votes
0answers
10 views

How access $resource Keys in AngularJS Service

I created an angularjs service which provides access to the $resource object containing the request to our RestFulService. angular.module('app').factory("myService", ['$resource', function ...
0
votes
0answers
6 views

Highstock charts give “Uncaught TypeError: Cannot read property 'addPoint' of undefined” error

I am using the highstock charts library for a set of 4 charts. I used the options object and literal notation as described HERE. The 4 charts have the same set of options by default (the ...
0
votes
0answers
8 views

Sequelize create include

I have the following models and assosiations: var AcademyModule = sequelize.define('academy_module', { academy_id: { type: DataTypes.INTEGER, primaryKey: ...
-2
votes
0answers
6 views

Registration On POP-UP window

I'm trying to build a page that give users details of the web site and at some point I want to tell them something like "click here" to Register. The functionality for "click here" link that i'm ...
0
votes
0answers
33 views

How to trigger ready event on JQuery chosen plugin?

I am trying to bind an liszt:ready event of my list, to be invoked once that the list has been initialized by chosen. I follow the steps that here are describing without any success. This is my code: ...
0
votes
1answer
21 views

AJAX PHP comment box userid=0? reply=“”?

when I entered the text in the textarea, it come up nothing. It showed cveUser name :jason123User id :1 forum_insert.js?t=1427284551:44 ...
0
votes
0answers
4 views

Ember-cli require(“my_app/app”)[“default”].create is not a function

I'm migrating my project from a situation where it was a nested asset in a Rails app to separate frontend with Ember-Cli. And I've been stuck with the following problem for quite some time now: When ...
1
vote
0answers
9 views

Show jAlert message triggerd in iframe a in iframe b

I do use iframes to show two pages in one: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> ...
1
vote
2answers
14 views

Angularjs - url params: When clicked returns to angular vars in the url

<tbody> <tr ng-repeat="message in messages" ng-click="go('pair/{{message.currencyFrom}}/{{message.currencyTo}}')"> <td>{{ message.currencyFrom }}/{{ message.currencyTo ...
0
votes
2answers
35 views

Fixed header while scrolling down the website

I am designing a website, i am trying to have a fixed header and the header shrinking a bit while someone scroll down the website. HTML: <div id="headerwrapper"> <div id="header"> Call ...
1
vote
0answers
5 views

How to add on “blur” event listeners to a website built by PSD2HTML?

Our website has been built by PSD2HTML. Now we want to add some logic to a form that fires on "blur": we want to pre-populate another form field based on the field that the user has just populated. ...