Tagged Questions
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, ...
0
votes
0answers
3 views
Nothing seems to happen after building Dart application
I built a web app with the Dart Editor and everything was working great when testing in Dartium. I wanted to test it out on a hosting site, so I ran Pub Build from the tools menu. It looks like it ...
0
votes
0answers
9 views
Pop-up window when clicking on an image in my HTML page
I know this question has been asked before, but mine is a little different.
I know tthat to do a popup of a thumbnail i have to use Javascript and give te image location. however, what i want to do ...
0
votes
0answers
6 views
template contents do not bind
I am trying to repeat a template based on the 'experience' categories, and later list the sessions inside as well. I cant seem to even show the experience class. Any ideas?
...
0
votes
0answers
2 views
Deploying heroku issue
Pushing my app to heroku. I can't seem to figure it out. Getting error code h10.
Does it have to do with bcrypt library not being compatible with node 0.12.0?
2015-04-01T02:27:39.716767+00:00 ...
0
votes
0answers
6 views
scaling large image to fit screen width using angular
Using angularjs i would like to scale a large image's height/width so that it fits the screen on multiple devices (responsive). This website is an example of what i am trying to accomplish. Does ...
-2
votes
1answer
15 views
HttpOnly cookie - unable to set
I am trying to make the client receive a page that will set the required cookies after authentication, and then go to another page after setting the cookies.
Client => Server: credentials
Server => ...
0
votes
0answers
5 views
How to pass variable into the Data.php in Magento?
So I am working on \app\code\core\Mage\Checkout\Helper\Data.php at the moment. And I am trying to call a variable but it doesn't seem It's working.
For example, I try to call the original price but ...
0
votes
0answers
17 views
How serialize objects with angularjs
How can I serialize an object without using the "$ .param" jquery?
I want the object below:
var user = { username: 'ronald.araujo', password: '123456', };
Has the following output:
...
0
votes
0answers
7 views
Mobile website does not always get location via JavaScript geolocation
I have a mobile version of a web app and on some of the pages I call a JavaScript function like so:
<script>
$(document).ready(function()
{
getLocation();
...
-1
votes
0answers
5 views
Cursor move Jquery
I would like the play button (red) to move with Jquery or Javascript, when I scroll over the video.
https://www.dropbox.com/s/em7qu2oss146ozk/Screenshot%202015-03-31%2022.38.16.png?dl=0
I am ...
0
votes
0answers
5 views
How can I get Jasmine to wait for a Meteor method call to complete without resorting to setTimeout?
I'm writing a client integration test to verify a particular user can change roles on other users via the front-end.
it('should be able to change user roles', function(done) {
var newUser = ...
1
vote
0answers
4 views
HTML/Canvas Recording not working on Firefox 36.0.4
I'm getting the following error when I'm running the RecordRTC Canvas/HTML Recorder demo.
On Firefox Error Console:
Error: TypeError: document.getElementById(...) is null
Source File: chrome:// ...
0
votes
0answers
4 views
How to plot points on a map projection in D3.js and filter the data using range sliders?
Here is the current status of the code I'm trying to work with.
http://jaskirat.me/uploads/DataVis/map_projection/
The points are mapped to the earthquakes which occurred in past month.
I want the ...
0
votes
0answers
5 views
requirejs define: nested dependency
I'd like to define A, but A should require B and B require C (for the sake of r.js)
Any of the these two are correct?
define([
'module'
], function(module) {
require(['C'], function() {
...
0
votes
0answers
4 views
How can I make multiple checkbox values persist using angularJS local storage?
I'm currently designing a PhoneGap app with HTML5 and angularJS. The application needs to act like an attendance register, where multiple checkbox values need to persist - corresponding to current ...
2
votes
1answer
12 views
in javascript, create Array from an iterator
given an iterator, what's the best way to create an Array?
for example,
let map = new Map();
map.set( 'key1', 'data' );
map.set( 'key2', 'more data' );
...
// now, wish to have an array of keys
let ...
-1
votes
3answers
28 views
How to extend an HTML element with Javascript?
I have a div that is 50X100 pxs and I want to extend the height to 125 pxs when my mouse enters it. The div's class name is Home. Here's what I have so far:
$(document).ready(function(){
...
0
votes
1answer
17 views
How can i use javascript to sort the tables by column? Can not use jquery here. I'm using javascript to load a table from an xml file
<div id="banner1"; class="float1">
<form>
<select id="mySelect" onchange="myFunction()">
<option value="noOption">Select a table to view</option>
<option ...
0
votes
1answer
12 views
Passing array via ReactiveVar in Meteor
I have a Meteor method that returns all user accounts on my application
returnUsers: function(){
return Meteor.users.find().fetch();
}
I'm using new ReactiveVar to pass the return value of the ...
0
votes
2answers
15 views
How to apply javascript on asp.net button click?
I'm using bootstrap alert autocloseable msg. Code as follow
<div id="alertdiv" class="alert">
<a class="close" data-dismiss="alert">×</a><span>' + message + ...
0
votes
0answers
14 views
How to populate unordered list from array with javascript?
I'm currently creating an app with Phonegap. I want to loop through a form of array to create an unordered list with this format where url and title are the stored values:
<li><a ...
0
votes
0answers
6 views
Has anyone tried to test SCORM in Moodle with Selenium?
I want to test SCORM package in Moodle using Selenium Webdriver with Java. I want to test basic functions - just navigating inside SCORM, like clicking next/previous buttons, ticking radio ...
1
vote
1answer
11 views
Javascript comparing line ending values
I am trying to compare the line ending values that are saved in a DB, with '\r\n', '\r' and '\n'. Is this possible? Or is there another way. This is doesn't work...
if (value === "\r\n") {
...
-3
votes
2answers
24 views
How can I hide an HTML table that shares a class element with a table I want to keep visible?
I have a table that I am trying to hide. It is generated by from automatic HTML that I cannot edit. I know I can hide the class table however there are other tables on the page and throughout the site ...
0
votes
3answers
8 views
JavaScript-Dot navigation
How can i code the javascript or jqueary so that when i click on a dot the dot gets an active class but the previous dots class is removed
Html-
<div class="dotnav">
<div ...
0
votes
0answers
9 views
Intern - window is undefined
I have a loop of tests running in intern-geezer, with about twenty out of a hundred very similar tests running successfully. Then suddenly:
FATAL ERROR
ReferenceError: window is not defined
and the ...
0
votes
0answers
8 views
Send email when cell content is changed due to forumula compiling data from another sheet
I need Google Spreadsheet to send an email when there's changes to a cell.
Problem is, what appears in this cell is determined by values of another sheet (I used if and filter functions for this).
...
0
votes
0answers
4 views
Get value for associated cell onchange
I have an .hta with a set of drop down boxes that are created dynamically inside of a table. The table generates from a json file. The table looks like (there is obviously more to the table but this ...
0
votes
1answer
8 views
Parse Cloud Code access Objects
In my query, how can I access an object in the Parse class?
Like set the object awayTeam to equal the newAwayTeam object?
Something like
CloseGameTime.set("awayTeam", "the newAwayTeam object");
...
-1
votes
1answer
34 views
jQuery: object is not a function
I've been trying to get this to toggle two .pngs on button click. When I run the code, console throws an error: Uncaught TypeError: object is not a function. Here is my code:
<body>
...
0
votes
4answers
20 views
How to extract content from list box in javascript?
I'm using a function like this to extract a few data from a form:
$(document).ready(function() {
$('#btnEnviar').click(function() {
var email = $('#email').val();
It's working, ...
0
votes
0answers
6 views
Events calling JSON feed not working in Fullcalendar 2.3.1
UPDATE - I changed my controller parameters from double to string and now the method gets called.
public JsonResult GetDiaryEvents(string startdate, string enddate)
Why was the type changed ...
-1
votes
4answers
32 views
String trimming in Javascript
I have a API that returns a JSON string. I only want part of the string it returns.
it returns a car style
"S 4dr Sedan (1.8L 4cyl 4A)"
"CE 4dr Sedan (1.8L 4cyl 4A)"
"LE 4dr Sedan (1.8L 4cyl 5M)"
...
0
votes
1answer
34 views
show results of JavaScript after function complete
Situation
With the script below, the table is reformat (changed). However, due to the large amount of data values, there is a few seconds where I can see a squashed table.
Question
I am trying find ...
0
votes
0answers
16 views
Increament multidimentional field name
What is the best way to rename multidimensional HTML fields that increment the index by 1 using jQuery and regex? Below is the sample HTML structure.
<div id="parent">
<div ...
-1
votes
1answer
17 views
Can't figure out JavaScript Undefined is not a function error
The following code is throwing an "Undefined is not a function" error at the point indicated.
beforeSubmit: function(data, formid) {
data.classid = data.classname; // Copy classname value ...
0
votes
0answers
36 views
detect collision JavaScript
I have 2 boxes, 1 is the player and the other one is the wall. I would like the player to stop moving if there is a wall in the direction that the player is moving on.
a plunker link is provided at ...
1
vote
1answer
18 views
Get value from txt file and turn it into javascript variable
I have a txt file that I will add value to later on by a .php script, but for now I am looking for a way to get the latest value from a txt file by using javascript, so lets say the lates value has ...
-7
votes
0answers
19 views
Is it possible get computer name to visitor by php Code? [on hold]
Is it possible get computer name to visitor by php Code or javascript?
if yes How ??
thank you..
0
votes
1answer
11 views
Javascript Advanced Unicode Encode/Decode
So I was looking around in my spam folder and found this message:
Dеаг Vаluеd ΜеmЬег,
Wе аѕκ fοг уοuг tіmе tο сагеfullу геаd thіѕ nοtіfісаtіοn ѕеnt Ьу οuг
Αссοunt Rеνіеw Τеаm.
Оuг ...
1
vote
2answers
27 views
Unexpected token else, not a semicolon after if statement
Trying to write a rock paper scissors game, using codecademy to learn. I've seen a lot of people talking about this error and it being related to using a semicolon after an if statement but I don't ...
0
votes
0answers
8 views
When reloading an editor template, javascript of said template does not execute
I'm trying to update an editor template on a button click. Basically what should happen is that there is a textbox that accepts a number that gets added to a displayfor on update (and also has a ...
0
votes
0answers
5 views
Geolocation variables scope outside of watchPosition/getCurrentPosition functions
I am trying to get the speed value from within watchPosition to use within my own function as I would like it to help with a calculation.
I have tried outputting the value retrieved within ...
0
votes
2answers
9 views
Jquery Or operator not working on mouseleave?
$('.submenu' || '#categorymenu_100000') only seems to work on .submenu:
$(document).ready(function () {
$('li a').on("mouseenter",
function () {
if ($(this).attr('href') == ...
0
votes
1answer
10 views
Display a generated gif;base64 image using C# code behind in img using JavaScript
i have the following C# code behind (it is a code that generate dynamically an Bmp image and than convert it to gif and returns it to be displayed):
[WebMethod]
public static HtmlImage ProcessIT()
{
...
0
votes
2answers
17 views
How do you get the state of a youtube video on youtube.com?
I'm trying to make a chrome extension that needs the state of the youtube video player, and I'm aware of the existence of the API but my attempts to actually use it have been fruitless. Can someone ...
0
votes
1answer
13 views
Remove Fixed Marker From Google Maps
How can I remove fixed marker, which is added to the div element containing google maps. The below line of code adds it using the class 'centerMarker', ...
2
votes
1answer
19 views
Hide show in JavaScript using classes instead of ids
I have seen previous questions about trying to use classes instead of ids for hide show in JavaScript. However, I haven't really found any definitive answers. I need to use a class because I have an ...
1
vote
0answers
16 views
Run function after download begins Javascript
Is it possible to detect download in the browser, and run a function when the download starts?
0
votes
1answer
19 views
Javascript - deepEqual Comparison and Recursion
I'm teaching myself JavaScript, and I'm stuck on the following problem from Eloquent JavaScript:
Write a function, deepEqual, that takes two values and returns true
only if they are the same ...