JavaScript (not to be confused with Java) is a dynamic, weakly-typed 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, a pure ...

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

0
votes
0answers
5 views

Main page in standard mode and iframe in comaptibility mode(Quirks)

We have legacy application developed in classic asp and must be rendered in compatibility mode (Quirks) to work But we have implemented other application with latest technology stack which must be ...
0
votes
0answers
10 views

custom selectbox, slideup if not the custom selectbox and its children is click

I'm in the middle of creating a custom select box. What I want is when not the custom select box (the element that has a class of selectbox_ui) and its children is clicked then slideUp else if custom ...
0
votes
0answers
8 views

Ontimeupdate not working properly in angulat js

I have declared a function test in controller and called the function inside video ontimeupdate. <video id="video_play" width="900" ontimeupdate="test($event)" ...
0
votes
0answers
4 views

How to pass row-by-row in nodejs?

This is the code $('.Text').each(function() { var data = $(this); temp = data.text(); fs.appendFile('output.csv', temp , function(err) { ...
0
votes
0answers
13 views

Unable to send email through PHP with alert message as notification linked with jQuery

I am trying to set an alert message if the message has been sent successfully or if an error occurs. This is the error when I run and click the "Send Mail" button in my html page. Error: Microsoft ...
2
votes
3answers
25 views

Find max width from all span

Problem statement : Actually I have table as you can see in image I want apply width to span dynamically. because as you can see in image Action label and dimension label are uneven I want ...
0
votes
0answers
6 views

How to pass timezone name from JS to Rails?

With the JS script I get the timezone name(for example: Asia/Baku). Now I want to add to the database table(created_at) time with this timezone. How can I do it? Can I pass my JS variable to my Rails ...
0
votes
0answers
4 views

Protractor Test Result variations

I am working with protractor in some projects and when i run projects there are some differences in the messages at the end of the successful test run. In one test i have written the tests normally ...
0
votes
0answers
4 views

Writing Text from Windows Phone 8.1 Store App toAndroid using NFC Error

(function () { var proximityDevice = null; var publishedMessageId = -1; var subscribedMessageId = -1; var keepReceiving = false; var nfc = new NFC.NFCPlugin(); function ...
0
votes
0answers
8 views

babylon skybox from hell

I'm going through the tutorials for babylonjs and I've been pulling my hair out over many things. I'm at the first environment tutorial and I'm trying to get my skybox to render. assuming the file ...
0
votes
1answer
7 views

Express sometimes picking wrong route

I am having a NodeJS based REST service exposed using Express(~4.0.0) where I have two different routes like this: router.get('/buckets/:bucketId/entities/bulk', getEntitiesInBulk); ...
0
votes
0answers
23 views

Reloading JavaScript engine without page refresh

I am developing an application which gets script from server using ajax and execute it, I got success to execute that script. But my problem is I need to restart JavaScript engine to clear running ...
-1
votes
0answers
3 views

How shopify creates facebook tabs for vendors programmatically?

As per my research to create a tab on a page we need an app for that and there is no way to create apps programmatically. I have same kind of requirement with me. Please guide me in this direction
4
votes
1answer
29 views

Angular-ui: Is any modal opened?

I'm want to launch a code if any modal opens. Commonly I'm want something like: $scope.$watch(function () { return $modal.isOpenState; }, function (val) { //my ...
1
vote
3answers
22 views

npm install: install Couldn't read dependencies

I have started to learn Angular JS. I am going through this, that is building simple phonecat app I am following the steps. Node.js downloaded. Trying to execute this command: npm install Error ...
3
votes
3answers
47 views

How to target a single element with jQuery

I'm trying to set up an unordered list of ingredients. On click, an ingredient (<li>) should have its background-color made yellow. With the below code, I am able to click on ingredients and ...
0
votes
1answer
25 views

Checkboxes will only work on current pagination page in jQuery datatables

I am using jquery data table for listing my content which have checkbox selection and selected content post the data but in submitted form only current page data sent. My Data table code is: ...
1
vote
0answers
16 views

How to pass dynamic param in angular $resource

I want to pass dynamic value of default param in $resource. Please look into the Plunker. Here when I had passed default param in factory as app.factory('myFactory', ["$resource", function($resource) ...
-1
votes
2answers
43 views

how to remove an event handler in jquery?

I have to display a qtip while click the div.But,that qtip is displayed when the mouse enter the div. I did not add any event except click. In the first time itself mouse enter is not working.the ...
1
vote
0answers
14 views

Unable to play video in angular js

I am trying to create a video player using angular js. I am not able to play the video. Below is what i tried. videoPlayer.factory('controloptions',function() { var controloptions={}; ...
0
votes
0answers
24 views

how can i use require(“”); in javascript

i want to use a plugin in Firefox that it is in this. in this plugin tutorial use require function, and it is: require("sdk/preferences/service"); but i get error that require is not defined. so i ...
2
votes
0answers
12 views

Iterate over multiple Meteor Collections

I would like to iterate over multiple Mongo collections in meteor (server side). First I would like to check if a collections has any documents. My code so far: var isEmptyCollection = ...
1
vote
0answers
11 views

Uncaught RangeError: Maximum call stack size exceeded in meteor autoform

This is a very simple application. I do not know why I am getting "Uncaught RangeError: Maximum call stack size exceeded". In folder called 'both', I have a JS file with schema defined as follows ...
4
votes
1answer
42 views

Auto refresh of online users table without refreshing whole page

I have a table displaying the list of online and offline users in my dashboard page. I'm trying to automatically refresh the entire table every 5 seconds to show if there are other users who just ...
3
votes
10answers
55 views

Java Script - Adding null value to array, if the element is not present at particular index

Array length is 7 Original array var arr = [2, 4, 6]; Needed array arr = [null,null,2,null,4,null,6]; 0 is not present in array so need to replace with null, 1 is not available replace with ...
2
votes
1answer
27 views

angularjs default select always changes

with angularjs select tab and ng-options,I cannot get the right default selecedValue after I selected one . html <select ng-model="selectedStyle" ng-options="style as style.name for style in ...
1
vote
0answers
11 views

HTML,BEEGO: Add image option or Upload image in HTML using BEEGO

I am creating an beego web application . I have two html views by now, One is login and other is landing page. I want to give an add image option for the logged user i.e in landing page. Can any one ...
1
vote
1answer
15 views

Prevent click action when dragging a D3 Node

I'm able to click on a D3 node to get an alert(); message. I'm able to drag the D3 node too, but dragging also triggers the click behavior when the mouse is released. Is there a way to prevent the ...
3
votes
2answers
31 views

jQuery validation not working - jqueryvalidation.org

I'm using http://jqueryvalidation.org This works perfectly http://jsfiddle.net/xs5vrrso/ jQuery $(document).ready(function () { $('#myform').validate({ // initialize the plugin rules: ...
1
vote
0answers
15 views

Read multiple barcode from a single image using php or javascript

Is there any way to scan multiple bar-codes from a single image at a time using PHP or JavaScript. I have googled, but can scan only single barcode from an image. I have tried this code : ...
2
votes
0answers
11 views

d3.js Line Chart Custom x-axis

I have drawn a line chart with d3.js but the problem is that, for x-axis, the months are appearing multiple times. I just need the month once in my chart. [{ "container": ...
3
votes
1answer
45 views

Java script isn't executing in my application

Below is my Html Code: <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="BranchRegistration.aspx.cs" Inherits="BloodBank.BranchRegistration" %> ...
0
votes
0answers
28 views

How to make unordered lists selectable in javascript?

I have got List of Unordered lists from server.How to make each unordered list selectable injavasript here am getting list of of ip addresses in my server. I need to make each list item clicable ...
-3
votes
0answers
30 views

How to calculate real time interest on typing in textbox

I have three textboxes. On focus of third textbox, i have to check the required validation of first and second textbox and when they get validated then when i am going to type on third textbox, i have ...
1
vote
0answers
30 views

Use Node.js to Edit HTML Files

I have searched around quiet a bit but failed to find a solution to my specific scenario. I have used Cheerio module to parse a bunch of html pages, ut what i couldnt do is edit or add HTML code to ...
1
vote
3answers
31 views

How can I get outer div target with event.target?

I'm making web service with javascript (and jQuery), and I'm trying to make custom menu. But the main point is "Widget's ID which is clicked by user". I want to return widget's id (like widget1 or ...
1
vote
0answers
39 views

Need to return true to function from ajax [duplicate]

function check() { $.ajax({ type: 'GET', url: '<?php echo base_url();?>index.php/info_controller/check_login', success: function (msg) { if (msg == 'yes') ...
-1
votes
1answer
28 views

$.each loop is not appending information possibly because it doesn't exist on the DOM yet

$.getJSON('fresh_posts.php',function(data){ //posts $.each(data.freshposts, function(id, post) { // set variables and append divs to document var id = post.id; ... ...
0
votes
0answers
8 views

How to minify the files in angular-ui-load using gulp?

I am using angular-ui-router and resolving using the uiLoad directive. Everything goes into my states.js file like this, .state("type", { url: "/type", ...
3
votes
3answers
30 views

most efficient regex for checking that a string contains at least 3 alphanumeric characters

I have this RegEx: (?:.*[a-zA-Z0-9].*){3} I use it to see if a string has at least 3 alphanumeric characters in it. It seems to work. Examples of strings it should match: 'a3c' '_0_c_8_' ' 9 9d ...
0
votes
0answers
8 views

Different z-index for thumb and track in html5 range slider in firefox

For the "range" input element in HTML5, there is a nice way to style the thumb and track separately. The only problem being it works differently on different browsers. Daniel Stern has done some great ...
-3
votes
0answers
9 views

I want to retrieve products using Ajaxon my View FilterByPara i Can get products here using partial view but it gives compilation error

[HttpPost] public ActionResult FilterByPara(Guid SubCategoryId, string BrandId , decimal Price1 = 0, decimal Price2 = 0, string SelPara = "") { try { if ...
1
vote
3answers
32 views

setting html <select> option to be the default value based on current time

I have made a basic punchclock webpage & MySQL database, only problem is when people accidently clock in instead of out at end of day or vice versa it leaves alot of gaps. I need some sort of ...
1
vote
0answers
10 views

jQuery UI tooltip not hiding in iOS device

I have developed a web project using HTML + jQuery and now i am facing some issues in my application accessing from iOS device. In my project i have used tooltip for textbox controls . Tooltip works ...
0
votes
1answer
38 views

Difference between value.x and value[x] (getting property from array) in Javascript? [duplicate]

I'm reading this part of Eloquent Javascript, and got stuck with the properties. It said that Both value.x and value[x] access a property on value—but not necessarily the same property. ...
0
votes
1answer
13 views

copy file from network shared drive to desktop using DOS copy command in Javascript

I am looking for the code, where i need to copy file from network shared drive to desktop using DOS copy command in javascript. As sample code below: Sample Code: oShell = new ...
0
votes
0answers
6 views

Polymer change notification and two-way binding syntax

I'm trying to figure out how to use the 2-way notifications in polymer described here But while this explains that there is some mechanism for notifying if an object on a child element has changed: ...
2
votes
4answers
53 views

if and else part not working in query

i tried the if else statement in jquery but it is not working.here is my code. jQuery(document).ready(function () { jQuery(".checkboxes").hide(); //toggle the componenet with class ...
0
votes
0answers
10 views

Generate thumbnail from an STL file using thingiview

I am working on a project to list all STL files of a project like this website : http://www.thingiverse.com/thing:854906 But let the script to generate thumbnail pictures of a STL file . I am ...
0
votes
3answers
36 views

I'm trying to form validate a phone number with a javascript

I'm trying to validate a phone number. This doesn't seem to work though. Why doesn't this work? <html> <head> <script> function validateForm() { var phone1 = ...