Tagged Questions
JavaScript (not to be confused with Java) is a dynamically-typed language commonly 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 ...
0
votes
0answers
9 views
how to check and disable a menuitem in xul
The following is the code i'm trying to use to make a menu item checked and disabled.It is just disabled as it is changing the attribute to disabled from checked.But i want the element to be checked ...
0
votes
0answers
4 views
Sails.js filtering records using the route
I am very new to Sails.js and I am trying to understand its magic.
I have three nested models using associations : Series.js -> Season.js -> and Episode.js.
Series.js
module.exports = {
...
0
votes
0answers
1 views
Fire analytics.js when ASPX form submits
I'm not really familiar with the backend of a site i'm working on, or the technology.
All the pages are .aspx and of course there are aspx.cs files as well.
I have a contact page with a button as ...
0
votes
0answers
9 views
Error messages flashing on iOS device browsers
I created a form in bootstrap 3, and I'm showing error messages using the bootstrap validator plugin. This form is framed into another page, which I have no control over. The error display correctly ...
0
votes
0answers
4 views
dygraph rolling average for data with holes
Dygraphs options provide 'rollPeriod' to support rolling averages and 'stepPlot' to support step plots. When set together when some data is missing in between, they give very unexpected results. For ...
0
votes
0answers
6 views
Marquee Recent Posts (Wordpress)
i use the following code to display recent posts in Wordpress with a date and timestamp in and ordered list:
<?php $my_query = new WP_Query('showposts=12');
while ($my_query->have_posts()) : ...
0
votes
0answers
6 views
Can't get external library with browserify and debowerify
I have a headache on my hands. Here's my current setup:
bower to get vendor libraries (angular in this case)
gulp task to run browserify
debowerify to make the bower libraries compatible with ...
0
votes
2answers
51 views
addClass jQuery doesn't work
I'm trying to add a css style to an element, the element css style is in a 'custom.css' file.
This is the code I'm using in my console:
var image=$('.ProductImage').find('img').last();
...
0
votes
0answers
3 views
WebGL/Three.js set mesh offset
I have a question about three.js.
How do I set an offset to a mesh?
The basic code is available at: http://lukas.achatz.ws/tst/webgl_003.html
What I want is to set a position offset and also that ...
-1
votes
0answers
34 views
Javascript variable acts as an array not string
I have a functions as follows
var selectionName = [
"CatOne100", "CatOne200", "CatOne300", "CatOne400", "CatOne500",
"CatTwo100", "CatTwo200", "CatTwo300", "CatTwo400", "CatTwo500",
...
0
votes
0answers
6 views
How to plot all values in google column chart?
I'm trying to plot a Google column chart from the data where there is a huge range between the highest values and the lowest values.The chart is plotting correctly for the large values but when the ...
0
votes
1answer
23 views
Javascript new Date() - Get seconds until end of the day
Working on a javascript-canvas based clock (classic analog clock view), also displaying the current date below the clock.
I already have this code to get the current time in javascript:
// get ...
0
votes
1answer
10 views
javascript code execution sequence for callback and contradictions to normal execution sequence
I can't seem to reconcile the technical flow of javascript execution sequence and the concept of callbacks. I have been using callbacks, but I am uneased of the execution flow because it appears that ...
-1
votes
1answer
13 views
javascript/html5 create custom event
Say I have a variable "stateName," (or rather a className in my exact case) and every time the value of stateName changes, which might be for any of myriad reasons, I want the program to respond in a ...
0
votes
0answers
6 views
Highcharts: change line options mid-way through a line
I'm looking for a way to change the appearance of a segment of a line in Highcharts. I have concrete data and forecast data within the same series. I need to visually differentiate the part of the ...
-4
votes
1answer
29 views
setInterval wont call why function
Hi for some reason i cant get set setInterval() to work with my custom functions but when i use it with build in functions it works fine here's my javascript code:
<script>
function ...
0
votes
0answers
5 views
Add Interactive Map with Highcharts Maps
I am a beginning developer trying to implement interactive maps with JavaScript using Highcharts Maps (http://www.highcharts.com/products/highmaps).
I have managed to produce a basic map of Haiti. ...
0
votes
1answer
11 views
fb share button no of shares not working
I am trying to get the number of shares options near my fb button...
can you guys tell me how to achieve it...
i got the f button but i am not able to achieve the number of shares option..
...
-2
votes
3answers
37 views
I cannot get this very very simple jQuery to run
I want to hide
<div id="correctinterface">
Correct!
</div>
I want to hide the above
but
$("#correctinterface").hide();
does not do the job
...
0
votes
0answers
9 views
Multiple months disable moving to first on select
I am having an issue with this jquery (JSFiddle Link), It allows me to select a range of dates, and when I select a date, it moves the month of the date that I select to the first month. For example I ...
0
votes
1answer
24 views
Javascript login issues
I'm trying to create a login page and having a few issues. Firstly, while the JS alerts on a wrong password, with the correct password it doesn't redirect to the secure page. Second, I feel like ...
0
votes
0answers
7 views
Pre-load a HTML or JSON file before Karma tests
I'm very new in Javascript testing and I'd like to start it by testing my company's player ( using Karma and Mocha. If someone have another suggestion, I'be glad to hear ). Basically it comes in a ...
0
votes
0answers
9 views
How can I implement a search box on Gmaps that only displays the markers from my own database?
How can I implement a search box on Gmaps that only displays the markers (with an info window and image) from my own database in a search result?
Google Places shows Google's input which I don't need.
...
0
votes
1answer
19 views
How to access value of a select in my angularjs controller
I'm using angularjs for an application. I have several html items in an html file. Rather than access the values using the $scope.thisValue in my controller, I'd like to be able to loop through all ...
0
votes
1answer
19 views
best way to structure JS data jQuery multiple classes multi dimensional array
I have two pieces of content: one for employment history, and one for address history.
Given that a person can have multiple forms for employment history (if they have been at more than 1 employer) ...
0
votes
0answers
16 views
Recreating pack()-type function in Node.js?
I'm trying to find a suitable Node.js method of recreating the functionality found here: https://github.com/fastly/token-functions
Specifically, I'm getting hung up on the "pack()" function (I ...
3
votes
1answer
34 views
Possible to Conditionally Parse Javascript Code?
Is it possible to prevent the browser from parsing all javascript code present in a file if that browser is (for example, cough cough) ie8? I am curious if this is possible in a theoretical sense, as ...
0
votes
1answer
12 views
window.onload Uncaught TypeError: undefined is not a function
There are many other questions on this error, and I've read many of them, but I still don't see what I am doing wrong here.
window.onload = function getProgram() {
var prog_name = ...
-3
votes
0answers
12 views
How to build a graphic building application [on hold]
I am planning on building a web graphical design application where a user can select parts of an object(say a car tire, or a car body), then drag and drop them to create an object (the car).
Once the ...
0
votes
1answer
17 views
Populating a Partial View with post data
Main objective:
Be able to click on a day from the calendar plugin then have a popup of a bootsrap modal with events that are listed for that day.
Whats going on:
I'm using a javascript plugin ...
0
votes
0answers
7 views
Timefield combobox issue in grid using extjs4
1) Create a grid and add a coulmn of type 'timefield' in grid with renderer of format ('h:i A').
2) Add a row and mke a selection in 'timefield' column, say 4:00 AM.
3) Add another adjecent row and ...
0
votes
1answer
4 views
Call Cloud Call from one Parse Application in another Parse application
I need to call a cloud call in one parse application from the cloud of another parse application through the Rest API.
For this I have this code now. However, I always get the error: ...
0
votes
1answer
12 views
How to resize facebook stream images with jquery or js
I came up with a problem , that everything that i found here won't help me and i just wanted to ask directly my question.
On the facebook like box , i want to resize the post images shown in the feed ...
1
vote
3answers
24 views
addEventListener Created an Infinite Loop
I added an event listener and it created an infinite loop I really don't get what I did wrong.
What happen is it keeps clicking the images by itself
Here's my code:
function ...
0
votes
1answer
15 views
Ajax: First Post great, Second Post returns Data in URL
This is a follow-up to a previous question I had about getting only a div to refresh (and not the entire page) when submitting a form. I've stripped out all the unnecessary javascript and code to ...
3
votes
3answers
27 views
overflow not hidden but opacity changed
Is it possible to make the overflow not hidden but just change the opacity of the content that is overflowing?
So that the parts of the content that are going outside the parent div has opacity of .5 ...
2
votes
0answers
16 views
Bootstrap dialog confirmation onclick confirmation event
I am trying to write my own method that calls the BootstrapDialog and creates a confirmation popup. If the user selects "confirm" then the method will return true and continue to call the jsf action. ...
0
votes
0answers
7 views
Why content of sendMessage is saved and how to disable it?
I send a message from a ContextMenu within content.js to background.js. When I send a message, I expect to see an alert of just two variables which are sent with the request. When I send multiple ...
0
votes
0answers
18 views
Add simple antispam operation in angularjs form
I have a input field like this :
<div class="form-group form-group-sm">
<label for="antispam" class="col-sm-2 control-label">1+1+5 = ?
<span ...
1
vote
1answer
38 views
In Jquery, need to get number value from CSS instead of fixed number
In the below code, there's the "initialHeight" property which has a fixed value of 222. The problem is, the website is designed responsively, so I need to have different values for "initialHeight" ...
-1
votes
0answers
6 views
Multiple filters with Google maps api
I have multiple checkboxes with diferent names, when i check one, the markers with that property becomes visible, the problem is that some markers have properties of more than one checkbox!, how can i ...
0
votes
1answer
33 views
load javascript files from folder
I am not sure what is the best approach to load all .js files from a folder from within index.html
The number of .js files will change so I cannot define them in the index.html the usual way. I ...
0
votes
0answers
7 views
Setting a variable for a particular room in socket.io
I have a socket.io application. Now, for some needs I want create/set/get variables for a room. Is there any way to do that?
0
votes
2answers
17 views
opening a pop up window from an ahref link and passing data to the child
I have a string, which, if clicked, opens up a pop up window. I am trying to set this up but I cannot seem to figure out what the best way to do this is.
1) I can use window.open after the onClick ...
-1
votes
0answers
12 views
How to call a click function in a slider using jQuery?
Using slick I have made a carousel that shows a 3x3 grid at all times. This carousel is touch-enabled and can be swiped. I want to be able to click an item in order to call a function.
The only ...
0
votes
1answer
19 views
Multiple calculations in jQuery with multiple fields
I am trying to do 2-3 calculations at once with jQuery. I found a link to a fiddle that did one calculation and I edited it to what I thought I needed to make it all work, but I can only get the ...
0
votes
0answers
10 views
Angular.js - Change url from login page causes logged in area glitch
I have a confusing situation somebody probably already had.
I am implementing login / authentication with angular.js.
I've done everything like described in this link
...
0
votes
1answer
22 views
AngularJS full page refresh
I am using Laravel with Angular and need a full page refresh when I switch to a particular route.
When this link is clicked
<a href="admin/pages/{{page.id}}/content">Manage Content</a>
...
0
votes
0answers
14 views
AngularJS directive blocks filter?
I have an element directive that has an attribute directive on it. At first I created the attribute directive separately, and it worked.
However, when I try to embed the attribute within the element ...
-1
votes
0answers
11 views
How can I implement Javascript into a Windows Phone 8.0 HTML5 Application?
I've been developing a Windows Phone 8.0 application using secure bootstrap HTML (In Visual Studio Professional 2013 Update 2.34 build 32-4) and have begun to try implementing JavaScript. However, ...