Tagged Questions
JavaScript is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.
0
votes
0answers
20 views
JavaScript setInterval only runs once
I am attempting to have an HTML page update a textarea with content from a text file every second, using JavaScript's setInterval function. However, the function inside the setInterval call only seems ...
0
votes
0answers
15 views
Get max and min keys from a collection with Underscore
How can I get max and min keys from this kind of a collection with Underscore? Seems to be an easy task but I didn't find a quick solution.
{
"2013-06-26":839,
"2013-06-25":50,
...
0
votes
0answers
2 views
Oracle Error code will not display in an ASP-Classic web app
I'm making a web app using ASP-classic, and I'm trying to update some values in an Oracle database. Here is what I have so far.
<%
'If update selected, then update information
If ...
0
votes
1answer
14 views
How can get a scroll event work in Chrome and Firefox?
I currently have this piece of code:
canvas.onmousewheel = scroll;
function scroll(event) {
event.preventDefault();
var mousex = event.clientX - canvas.offsetLeft;
var mousey = ...
0
votes
0answers
6 views
Recommended Intern directory structure for multiple package testing
I have gone thru the intern-tutorial which is a very simple unit test case. However, it's not clear to me if the directory structure can be different and how flexible intern's configuration can be to ...
0
votes
0answers
15 views
Calling certain values in an array
I am working on a script to use in InDesign where I have a tab delimited file with values that correspond with file names in another directory. I need to place each file on a new page, and only the ...
0
votes
1answer
42 views
Stop the condition once it executes
Problem
I am using below mentioned JS code in my PHP try catch. Basically I am making facebook app. In that when users session gets timed out it shows an error message which doesn't look good but ...
0
votes
0answers
3 views
jMeter - XPath Extractor does not let BSF Post Processor (with javascript code) to access multiple extracted matches
I have an XML response from server (SOAP) and I'm getting multiple values in it. XPath extracts all the values and stores them internally like Match_1, Match_2, Match_3, etc.
But I can't access them ...
1
vote
1answer
11 views
Google maps remove default man icon
i am using google maps with my project as you can see here ( Demo )
in left top you can see man icon and zoom
i want to remove man icon and set zoom left-top
what should i do? i am using this ...
0
votes
0answers
45 views
How to get the result of the inner function in javascript?
Hi in below code i need to get the result of the fun1.How to get that result of that function.
var s=function() {
var val = 1;
return {
fun1:function(){
return val;
}
}
...
0
votes
0answers
4 views
Knockout Validation with Durandal JS firing on pageload regardless of messagesOnModified value
I'm working on a Durandal JS SPA application, and I wish to use Knockout Validation.
The problem is that validation is being triggered on page load, which is not what I want - I'd like to trigger the ...
-4
votes
0answers
25 views
Another Image and Image size when hover on the original image
I am making a site and I'm inspired to make this kind of design that is seen in this site. I inspected the way they construct it. They have used a lot of javascript and css. I was able to do it by ...
0
votes
0answers
7 views
I'm trying to do is draw some lines and when they collide with some object, a warning is displayed
Basically what I'm trying to do is draw some lines and when they collide with some object, a warning is displayed. The functions with which I am basing are the oncollisionenter to detect collisions, ...
0
votes
2answers
36 views
Undoing javascript replace function
The goal of this function is to toggle a text input from allowing between numbers(and /) only and allowing default characters depending on if the "Query" option is selected in a select tag.
I'm doing ...
0
votes
1answer
8 views
Prestashop block cart and cart controller
We have followed this guys tutorial on changing the prestashop add to cart animation
http://nemops.com/better-prestashop-add-to-cart/
However, now the problem we face is if someone adds a quantity ...