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.
2
votes
1answer
17 views
Assigning an executable function to a property of a Javascript object
** JS Snippet **
$.getJSON('json/json.getJob.php', {job_id: job_id}, function(jsonJobData)
{
job.data = jsonJobData;
$.each(job.data, function(k, v)
{
...
-1
votes
0answers
14 views
Creating/Finding a pure AngularJS lightbox
I am looking for a pure AngularJS lightbox clone. What are the recommendations? Googling doesn't bring up anything for me. I'd rather not create one from scratch. Also open to those that are not ...
-3
votes
1answer
28 views
What are the main cross browser challenges still facing javascript in 2013
So I'm wondering what the main crossbrowser issues are now that most of us can safely disregard ie 6-7. I understand that the event model is different up until ie9 (for .attachEventListener() etc.) ...
-1
votes
0answers
40 views
How to use json url? [on hold]
I have created page same demo:http://jsfiddle.net/hoahoang/J7B3S/ It use json, javascript and jquery. Now, I want to click each products, it linking to detail each products. Can you help me? Tks in ...
0
votes
1answer
11 views
how do I use browser detection code to run certain HTML depending on detection result?
I found this code snippet when I followed a link here on Stackoverflow. It is exactly what I need, but I'm not sure how to implement it. I'd like to use it to run specific code depending on browser. ...
1
vote
1answer
37 views
Need help editing JavaScript - Trying to make a link “active” when another link is clicked
I need help help editing the following JavaScript.
<script>
$('.nav li a').on('click', function() {
$(this).parent().parent().find('.active').removeClass('active');
...
0
votes
1answer
11 views
WebKit animation on click function bug
I have the below code set up to move certain objects upon clicking an object, but you'll see in Safari and Chrome that the animation for the boxes is a bit off, whereas Firefox shows it correclty.
Is ...
0
votes
0answers
11 views
Multimedia keys on firefox with javascript
Im trying to use multimedia keys on firefox with javascript.
function returnKey(evt)
{
console.log((evt.charCode || evt.keyCode) + ", " + evt.metaKey);
switch(evt.keyCode)
{
case ...
2
votes
0answers
26 views
HTML5 Canvas fillRect slow
I'm trying to write a simple raycaster using an HTML5 canvas and I'm getting abysmal framerates. Firefox's profiler reports 80% of my runtime is spent in context2d.fillRect(), which I'm using per ...
0
votes
2answers
33 views
css add class to selected element
I'm using twitter bootstrap and to compose the header I have an like this one
<ul class="nav navbar-nav">
<li><a href="#" class="active" ...
3
votes
1answer
38 views
Why does the Math.random() keep updating onClick?
So upon learning a few JavaScript functions, I wanted to make a guessing game, this is my code: (EDITED)
<body>
<script>
var a;
function rand(){
var a = ...
0
votes
0answers
13 views
Get Raw Gist File
What I want is simple. Is there any way (including a work around) to make this work?
function loadXMLDoc() {
var request = new XMLHttpRequest();
var gistRawFileUrl = ...
-4
votes
0answers
21 views
Dynamically Filter Spans in Twitter Bootstrap
I've learned the basics of HTML, CSS, Javascript, and JQuery, so I wanted to make my first website using Twitter Bootstrap as a framework.
I want users to be able to filter results dynamically by ...
0
votes
0answers
9 views
greasmonkey changing original website function?
I'm writing a Greasemonkey script that needs to add functionality to a corporate website. So after countless hours of research, try and error I decided to bother you, smart people with my question.
...
1
vote
0answers
14 views
Assigning a value for view asynchronously
I'm just firing up node and trying to get used to the asynchronous behavior, but I'm having an issue assigning a value when it comes to rendering the view. The code base is very simple:
in a custom ...