Tagged Questions
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, ...
0
votes
0answers
8 views
Get parent - javascript
my question is simple.
I have many divs with classname "post".
In each of them, there is a button and an other div.
With a js function I assign to each of the buttons a onclick function, let's call ...
0
votes
0answers
10 views
when the page was loaded any times
I want when the page was loaded 10 times
alert ('hello !!');
how to get it ?
Here is my code :
<html>
<head>
<title>my problem !!</title>
<script ...
-5
votes
1answer
37 views
jquery not working :(
my jquery validation does not seem to be working i cant see why can anyone out there help me?
function Sessions(){
$(document).ready(function(){
if ($("input:checked").size() > 0){
...
2
votes
0answers
8 views
Are class declarations subject to scope in JavaScript?
Thinking about how JavaScript uses functions for scoping of variables, I started to think about what would happen in case of the following example:
var OuterClass = function () {
var InnerClass ...
0
votes
0answers
4 views
woocommerce javascript not working anymore
S, I just updated a theme on my WP site. I used to have some javascript on one of the plugins that adds items to a cart, puts a tick mark next to the item, etc. etc.
This has just stopped working.
I ...
0
votes
0answers
12 views
Skip Select fields on a condition
I have a form with select tags in it which get updates the next field with ajax each time when you choose an option.
But on a certain part I need it to skip some fields when an option in the db is ...
1
vote
0answers
12 views
How should i handle scope within many nested anonymous functions?
I have a Collection in mongodb, which contains embedded referenced documents, which forces me to run thought multiple anon functions.
First i initialize this array
var player = {
name : '',
...
0
votes
0answers
5 views
JQuery PostMessage document.location.hash in IE9
I'm using the jQuery postmessage plugin for iframe communication (for auto-resizing the parent iframe)
I have the following code:
$(function () {
var parentUrl = ...
0
votes
0answers
5 views
How to get the blackberry uuid using javascript and web works
I am trying to find the device UUID using javascript with web works for devices with OS 7 and less.
The code I am using:
function getIdentityData(){
$.ajax({
type: ...
3
votes
1answer
19 views
brackets and semicolon after function definition
I am new at learning javascript. Recently I saw a function in someone else's code which looked like below:
function xyz(){ //function code here ;
} ();
I dont understand the (); after the function ...
0
votes
2answers
10 views
javascript array and mysql
var day = new Array();
$(':checkbox:checked').each(function(i){
day.push($(this).val());
});
alert(day);
which return this:
but I would like to get this:
...
0
votes
0answers
12 views
KnockoutJS: How to run script after inserting data in observable array
I have a gallery list:
<div class="gallery">
<a href="#" class="next">next</a>
<a href="#" class="prev">prev</a>
<div ...
0
votes
1answer
10 views
Technique for debugging Three.js
I have a Three.js page that I'd like to update from r42 to r55. A fair amount of the API has changed in that time.
Some of these changes were straightforward, but now I'm stuck on some gnarly details ...
0
votes
0answers
26 views
Real-time Programming in ASP.net [closed]
recently I have watched some impresive videos about meteor : http://meteor.com/ , and decided to create Real-time app.
Now i'm learning Node.js and i want to know if it's possible to combine between ...
0
votes
1answer
4 views
OBJLoader doesnt work anymore after revision 55
Im working with the objloader from the three.js library to render a cube in the browser. I had it working fine but after loading a new revision from git (revision 55) i cant get it right. The cube ...