JavaScript is a dynamically-typed language commonly used for client-side scripting. It is NOT the same as Java, and has hardly anything to do with it. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). If a framework or library, such as jQuery, ...

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

0
votes
2answers
14 views

What is this kind of variable $variable

I found an JavaScript file in a website using a variable like this: var $variable What kind is it? Thanks, DGM
0
votes
0answers
6 views

Load Galleria plugin in Ajax website

I'm currently developing a website that loads it's content with ajax. So if I click for instance on the tab photo, then it should only load the content in the photo page. I'm using this code to load ...
0
votes
0answers
12 views

Debugging Javascript with IE8

I'm attempting to use the developer tools javascript debugger in IE8 to try & work out how it is unchecking a checkbox that is checked when a javascript function is run (no issues in any other ...
3
votes
5answers
40 views

“if (fn) fn()” or “fn && fn()”

I've seen many times that fn && fn() is an optimization of if (fn) fn(). My question are: why? and, what is the generated code for both solutions?
-6
votes
2answers
22 views

Create Moving Div

I am trying to create a moving div. Basically I have a absolute positioned div on a webpage that is 200px by 300px, that has has some text and a close button in the top right corner. Whenever the user ...
0
votes
0answers
15 views

lightbox with javascript and css

I was trying to create a lightbox, so that a form that I have to open in a lightbox. Bellow there is my javascript, html and css code. Everything is working fine. My only problem is that if I start ...
0
votes
0answers
13 views

Text code verification while sigup plugin in jquery

I am working on ASP.NET MVC application and using knockout.js, jquery at client side.I am searching for any good plugin for text code verification for my sigup form. Can anybody please suggest me a ...
1
vote
1answer
11 views

Backbone: How To Bind A Model To A View

So I have some objects extended from Backbone.js: var MyModel = Backbone.Model.extend({}); var modelInstance = new MyModel(); var MyModelView = Backbone.View.extend({}); And I'm trying to figure ...
-1
votes
0answers
16 views

Javascript to block script running on a live domain

I have a script which is only running when I directly double click HTMLm file and I am sure there is programmed in javascript file that it is not working when I try to access the same page using ...
0
votes
1answer
9 views

AlphaMaskFilter is not a constructor

I believe I made a quite simple mistake but I stuck and couldn't solve it. When I try to create and apply a filter with the following code, I am getting TypeError: createjs.AlphaMaskFilter is not a ...
0
votes
0answers
7 views

image execCommand after ajax

I'm working on a WYSIWYG editor and experiencing a problem with the image handling using execCommand, the following is a simplified example of my page structue: <div ...
0
votes
0answers
21 views

Hover on load doesn't work

Demo: http://jsbin.com/afixay/3/edit 1) place cursor over red box 2) don't move cursor, just hit ctrl+r (page should be reloaded) 3) you'll get no alert. Well, you will get an alert once you ...
0
votes
0answers
6 views

Event Handling in Backbone.Js with $.chosen() select plugin

I am replacing select boxes in my application with the jquery $.chosen plugin: initialize: function(){ $("select").chosen(); } Now, I am attempting to detect changes to the select boxes ...
0
votes
0answers
8 views

Modernizr - How do I load in parallel vs. sequentially?

I am attempting to integrate the Modernizr browser test library into my website to test for what settings a browser supports. I would also like to use the integrated yepnope resource loader. I have ...
0
votes
2answers
14 views

Why does this Angular controller throw “Error: Unknown provider: nProvider <- n”?

jsFiddle of the code: <div ng-app=""> <div ng-controller="FirstCtrl"> <input type="text" ng-model="data.message" /> {{data.message + " world"}} </div> ...

1 2 3 4 5 23452
15 30 50 per page