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.

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

0
votes
0answers
5 views

Return a function with jQuery

how to do something like this: return a function sorry about my english, im portuguese =p $.fn.extend({ put: function (g) { setInterval(function(){ return g(); }, 1); ...
0
votes
0answers
7 views

how to call jquery plugin function with different parameters

I have jquery plugin function which needs to be called multiple times depending on the number of selectbox element. Idea is to call my function each time for one selectbox with their parameters. For ...
0
votes
0answers
16 views

How to call two divs at a same time

I have a html page in which i have two divs one is page-role and other is with css aligment. Now i have a button onclick of tis button i want to open these divs at the same time. Because i want to ...
0
votes
0answers
15 views

Add Javascript Code shorted URL Syntax

I want to short the URL from Social Share Buttons which are written in Javascript. The Code of Social Share Script var methods = { init : function(options) { ...
0
votes
0answers
10 views

How do I get the first Image off of [insertblog].tumblr.com/random?

I'm trying to grab the first image from a tumblr post that is selected by using [blog].tumblr.com/random which redirects to a random post. Here's what I have so far: <script ...
-1
votes
2answers
30 views

Understanding undefined as argument

I see javascript libraries set up like this: (function (global, undefined) { //.. })(this) What is the meaning of undefined in this context?
0
votes
5answers
35 views

make variables available inside function/class

var g = $('#go'); var z = $('#are'); I have variables i want to make available inside the y class to alertData and hideData. What is the easiest way to do this? var y = { alertData: ...
0
votes
1answer
13 views

Call this.instanceMethod inside another instance method event handler

I am trying to call instance method inside event handler of another instance method but I am getting function undefined, I assume this is because in the event handler "this" refers to DOM element ...
0
votes
0answers
8 views

Button to mark as complete, then add to a completed list

Rails newbie, so excuse basic question. I'm looking to create a button (e.g. "Do this") that when clicked by a user marks that action as completed. The action is then added to a list in the user's ...
0
votes
0answers
8 views

Why doesnt my javascript trigger the different css3 animation delays Internet Explorer 10?

document.addEventListener("DOMContentLoaded",function(){var e,t=document.querySelectorAll("div.bounceInDown");for(var ...
0
votes
3answers
30 views

Assigning dynamic <div> unique ID when they are created

This is related to dynamic div creation. I wanted to create an animation in which an object(bird) fly from ground to the sky (the background image-wrapper div). The bird is used as the child div of ...
0
votes
1answer
29 views

extending function in jquery

I have tried to extend my jquery the following way, it isn't working. var y = { alertData: function () { alert('z'); }, hideData: function () { $(this).hide(); } }; ...
-2
votes
1answer
12 views

how can i get the real code of this hex code

how can i get the real code of this hex code var ...
0
votes
2answers
19 views

JQuery Remove last element, multi calls

Hello i have the following JQuery code that will remove the last element in a container. THe problem is that my remove is animated, and this method will for example be called 10 times in a row, then ...
-2
votes
4answers
27 views

how to call function form javascript inside php?

hi im new to php and im wonder if there any way to use javascript inside php code then i want to know how to call that function in javascript inside php code , really im sorry for my bad english and i ...

1 2 3 4 5 26147
15 30 50 per page