Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
JavaScript is a versatile, high-level programming language. It is the programming language in all browsers.and can be used for back-end programming with node.js. Use this tag for questions regarding vanilla JavaScript; optionally tagged with an ECMAScript version. If you are using a preprocessor such as TypeScript please tag with that too.
4
votes
1
answer
6k
views
JavaScript Code for image rotation on a web page
jpg' id='rotateImg4' style='display:none;' alt='image rotation' />
<img src='images/rotation/dsc_0043.jpg' id='rotateImg5' style='display:none;' alt='image rotation' />
</p>
<script type='text/javascript …
5
votes
1
answer
10k
views
Code to Parse dollars and cents?
I've written code to parse dollars and cents entered by the user. The value returned is the total number of cents.
For example:
f('$1.50') = 150
f('1.5') = 150
f('0') = 0
f('1000') = 1000
f('$1 …
3
votes
1
answer
715
views
How can I improve performance for my JavaScript table class?
I've written a JavaScript table class to make it easy to display tabular data and allow the user to sort the data by clicking on the table headers. … var columnDataFields = p_columnDataFields;
// This is expected to be the HTML ID of the table in which the data will be displayed.
// Note that this JavaScript will only affect the TBODY …
3
votes
4
answers
601
views
Simple Javascript Widget without cluttering global namespace?
I've written some Javascript code with jQuery to display a dialog box on a web page that "floats" in the corder of the page. … I know that I tend to intuitively treat Javascript as if it were C code because it looks like C code and this is a habit I've been working to break. …
1
vote
2
answers
3k
views
HTML5 File API Demo
I recently wrote a small demo that allows users to send and receive files from an HTML5 Javascript application. It's all client-side. … --
FileSaver.js is an open-source Javascript project that provides support for the HTML5 FileSaver API
on browsers that do not natively support it.
-->
<script src='Scripts/FileSaver.js …
1
vote
2
answers
148
views
Can I adjust this code which displays a table to run faster?
this.displayData = function () {
var i;
var $thead = $(thead);
var $tbody = $(tbody);
var numberOfFields = columnDataFields.length;
var numberOfRows = data.length;
// Variable …