Javascript prototype

Javascript
Using a constructor function and a prototype, I want the Grade function to output a number grade into a letter grade. function Grade(name, grade) ...
1 year ago

Javascript matrix

Javascript
I am trying to make a matrix which has an X of X's. The following code produces a diagonal of X's from the top left to the bottom right but not from t...
1 year ago

javascript selectors

Javascript
How does one select DOM elements in javascript? Like for example: <div class="des"> <h1>Test</h1> <div class="deslef...
1 year ago

Javascript - ERR_CONTENT_LENGTH_MISMATCH

Javascript
I'm making a basic jquery playground site. I am getting Error: net::ERR_CONTENT_LENGTH_MISMATCH is happening on page load and the background images ar...
1 year ago

javascript inheritance

Javascript
I know there is a lot of similar questions are tons of great answers to this. I tried to look at the classical inheritance methods, or those closure m...
1 year ago

JavaScript question

Javascript
It is possible not to show html page in user browser until some JavaScript(built-in or in separate file) will be loaded and executed(for page DOM mani...
1 year ago

Javascript recursive

Javascript
i have this problem i want to create a recursive function for calculate all possibilities to have a number (k>0), with the addition of number 1 or 2. ...
1 year ago

javascript domready?

Javascript
I know I can use different frameworks like prototype or jquery to attach a function to the window.onload, but's not what I'm looking for. I need some...
1 year ago

JavaScript quicksort

Javascript
I have been looking around the web for a while and I am wondering if there is a 'stable' defacto implementation of quicksort that is generally used? ...
1 year ago

JavaScript - assert?

Javascript
What does assert mean in javascript? I've seen something like: assert(function1() && function2() && function3(), "some text"); And...
11 months ago

Javascript Objects?

Javascript
I have two Question which I am uncertain of. What happens and what are the rules when using this piece of coding: var c = "Test"; ...
11 months ago

Javascript Recursion?

Javascript
I am practicing recursion. Conceptually I understand how this should work, (see below) but my code isn't working. Please tell me what I am doing wro...
11 months ago

Javascript push

JSON
I'm trying to push multiple values into an array. When I use: csvData.push('data[0][index],data[1][index],data[2][index],data[3][index]'); it form...
10 months ago

Javascript Loadingbar

HTML
I am attempting to create a loading bar in javascript here is my code: function load(barsize){ parseInt(barsize); var loadingbar = ''; ...
10 months ago

JavaScript: getElementsByTagName()

HTML
i need to select all items with <a></a> tag in my page and add them a class with classList i've tried with getElementsByTagName('A')and th...
11 months ago

Javascript isnull

jQuery
This is a really great function written in jQuery to determine the value of a url field: $.urlParam = function(name){ var results = new RegExp('[...
10 months ago

weird javascript

Javascript
weird
9 months ago

JavaScript counter

jQuery
Everytime a specific action is made in JavaScript for example this: <script type="text/javascript"> $(function() { $('#typing').keyup(funct...
9 months ago

Javascript Optimization

HTML
I can't seem to figure out how to get this JS to work. The scroll function works but not the hide. Also is there anyway to do this with less lines of ...
8 months ago

JavaScript exponents

Javascript
How do you do exponents in JavaScript? Like how would you do 12^2?
8 months ago