256 Kilobytes

All Content > JavaScript

Type All Category All Tag JavaScript

Profile Photo - Huevos Rancheros

JavaScript is gay

Articles in Computer Programming | By Huevos Rancheros

Published | Last Update

Profile Photo - Hash Brown

Last ReplyIf you like Javascript, you are wrong. Hash Brown,

If you like Javascript, y...

Thu, 03 Sep 2020 03:35:33 -07002 weeks ago1
🗨 2
🐏 1
👁 94
Profile Photo - Some Guy
Profile Photo - Default

Last ReplyThe $(…).modal is not a function is usually caused because scripts are loaded in the wrong order . The browser will execute the scripts in the... walemark,

The $(…).modal is...

Mon, 24 Aug 2020 04:07:56 -07003 weeks ago1
🗨 1
🐏 0
👁 307
Profile Photo - Some Guy

What is the difference between Java and Javascript?

Answers in Client-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySee also: https://www.256kilobytes.com/content/show/1916/javascript-vs-ecmascript-vs-typescript-vs-coffeescript-differences-what-to-use-and-when... August R. Garcia,

See also:

Tue, 31 Dec 2019 22:42:18 -08008 months ago1
🗨 4
🐏 0
👁 721
Profile Photo - August R. Garcia

5 Tasks You Didn't Know Could be Done from the Developer Console

Articles in Web Development | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyQuality trick to easily disable console.log() messages on a live/production site: <?php // Function stolen from some Stack Overflow thread... August R. Garcia,

Quality trick to easily d...

Thu, 19 Dec 2019 01:46:19 -08008 months ago1
🗨 4
🐏 2
👁 13,611
Profile Photo - August R. Garcia

[Solved] Implementing an "Estimated Time to Crack" Notification for Registration Forms

Answers in Client-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Probably edit slightly for a cleaner UI<...

MoreProbably edit slightly for a cleaner UI Code and demo: Message Here  <form> <input id="test" type="text" /> <span i...
🗨 0
🐏 0
👁 167
Profile Photo - August R. Garcia

[Solved] Enabling Shades/Tints of All Colors in CKEditor

Answers in Client-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

There is a CKEditor plugin called Color...

MoreThere is a CKEditor plugin called Color Button that can be used to add buttons to CKEditor instances to change font colors and background colors....
🗨 0
🐏 0
👁 199
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Code:

MoreCode: <form> <button class="btn" onclick="doubleclick_confirm_submit(event, this);" type="button">Ban/Unban</button> <...
🗨 0
🐏 1
👁 168
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Easiest solution I found was to add a cu...

MoreEasiest solution I found was to add a custom attribute based on ondrag[something] events and to then use a CSS attribute selector: <script>...
🗨 0
🐏 1
👁 175
Profile Photo - August R. Garcia

[Solved] CKEditor Autosave Draft Functionality - 1.4KB, No Plugin

Articles in Client-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyPS: If you're wondering, this code is not yet live on 256 Kilobytes; will be in the next patch. Edit: There's a bug in the original code relat... August R. Garcia,

PS: If you're wondering,...

Sat, 23 Nov 2019 10:27:41 -08009 months ago1
🗨 1
🐏 1
👁 452
Profile Photo - August R. Garcia

[Solved] Automatically apply color scale to HTML table with JavaScript

Answers in Client-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

*Basically solved

MoreHere's some code. However, this code is fairly slow on large tables (adds roughly 50-150 milliseconds for 190 rows of four columns). Probably usu...
🗨 0
🐏 0
👁 236
Profile Photo - August R. Garcia

How to Make a Simple, Automatically-Updating Dashboard for Python Scripts Using HTML, JavaScript, and JSONP

Articles in Scripting and Automation | By August R. Garcia

Published | Last Update

Profile Photo - Default

Last ReplyThank you for the post. Blogger at Radio Box https://www.youtube.com/watch?v=Jfh_qbzhUKI RadioBox,

Thank you for the post.

Sat, 21 Sep 2019 04:07:21 -070011 months ago1
🗨 2
🐏 1
👁 922
Profile Photo - August R. Garcia

[Solved] How to automatically replace newlines with commas when data is pasted into an HTML

Answers in Client-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyCan add a few more regex lines to trim empty commas: el.value = el.value.replace(/\n/g, ', '); el.value = el.value.replace(/\t/g, '... August R. Garcia,

Can add a few more regex...

Fri, 09 Aug 2019 19:44:27 -07001 year ago1
🗨 1
🐏 0
👁 321
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Title.

MoreTitle. <!DOCTYPE html> <html> <head> <title>Test Table Download</title> </head> <body> <h1&g...
🗨 0
🐏 0
👁 281
Profile Photo - Some Guy

NodeJS error "Can't set headers after they are sent"?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - Default

Last Reply<p>Hi Everyone,<br /> &nbsp;</p> <p>What is meant by <a href="https://softwaretestingboard.com/q2a/3379/">softwa... Ellen Dares,

<p>Hi Everyone,<...

Tue, 09 Jul 2019 03:55:40 -07001 year ago1
🗨 2
🐏 0
👁 1,012
Profile Photo - August R. Garcia

How to Animate ASCII Art

Articles in Web Development | By August R. Garcia

Published

Profile Photo - August R. Garcia

Last Reply. ___|_____ / | /| /________/ | |.........| |... August R. Garcia,

Wed, 12 Jun 2019 22:28:02 -07001 year ago1
🗨 2
🐏 2
👁 998
Profile Photo - Some Guy

[JavaScript] QuerySelector not working for multiple attributes?

Answers in Client-Side | By Some Guy

Published

Profile Photo - Default

Last ReplyYou should show some code. But this error generally is thrown when you use space between attributes. document.querySelector("[data-id='1'] [data-... Ali,

You should show some code...

Wed, 29 May 2019 05:23:00 -07001 year ago1
🗨 1
🐏 0
👁 444
Profile Photo - Some Guy

How to remove duplicates from sorted array?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - Default

Last ReplyYou can use Set. var arr = [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 10, 10, 11, 12, 13, 13, 13, 14, 15, 15, 16, 17, 18] arr = [...new Set(...[arr])]... Ali,

You can use Set.

Tue, 28 May 2019 23:48:26 -07001 year ago1
🗨 2
🐏 0
👁 417
Profile Photo - Some Guy

JavaScript - How to hide a dialogue on click?

Answers in Client-Side | By Some Guy

Published | Last Update

Profile Photo - Default

Last ReplyDid you mean "<dialog>" tag? If so, you can use JS API like that; HTML5 Content <dialog open> <p>Greetings, one and al... Ali,

Did you mean "<dialog&...

Tue, 28 May 2019 23:24:45 -07001 year ago1
🗨 2
🐏 0
👁 436
Profile Photo - Some Guy
Profile Photo - Univa

Last ReplyIn case you get this error it might also be related to how you included the javascript file into your html page. When loading modules you have to expl... Univa,

In case you get this erro...

Sun, 26 May 2019 10:46:17 -07001 year ago1
🗨 1
🐏 0
👁 482
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

What a nice trick.

MoreWhat a nice trick. How to Extract Emails from HTML with Google Sheets Code function get_raw_html(url) { // The code below logs the H...
🗨 0
🐏 0
👁 632
Profile Photo - Some Guy
Profile Photo - Univa

Last ReplyThe reason for the above is referred to as CORS (Cross-Origin Resource Sharing) The easy way is to just add the extension in google chrome... Univa,

The reason for the above...

Thu, 16 May 2019 08:18:38 -07001 year ago1
🗨 1
🐏 0
👁 471
Profile Photo - Some Guy

[JavaScript] Can JS check if keydown/keyup is a comma, but not the less than symbol ( < )?

Answers in Client-Side | By Some Guy

Published | Last Update

Profile Photo - Univa

Last ReplyHere's a simple solution that will catch all characters, backspace, and delete.  $("input").keydown(function(event) {     var isW... Univa,

Here's a simple solution...

Sun, 05 May 2019 03:01:05 -07001 year ago1
🗨 1
🐏 0
👁 409
Profile Photo - Some Guy
Profile Photo - Univa

Last ReplyThis is a simple solution as you only need to add an enclosing parent element to all components inside the render function. Check out the code below f... Univa,

This is a simple solution...

Sun, 28 Apr 2019 05:23:59 -07001 year ago1
🗨 1
🐏 0
👁 411
Profile Photo - pls_stop_this

In JavaScript, what is the QuerySelector method?

Answers in Computer Programming | By pls_stop_this

Published

Profile Photo - Graln_of_Truth

Last ReplyThere are multiple articles online giving information about Java Script and its functions. Checkout the provided link for some general information. Al... Graln_of_Truth,

There are multiple articl...

Sat, 30 Mar 2019 15:54:03 -07001 year ago1
🗨 1
🐏 0
👁 323
Profile Photo - Some Guy

Thinking between Angular 7 vs Angular 2, suggestions?

Forum in Software Development | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplyIf you are curious as to which Angulars to use and the difference between them, check out this site here for a more detailed explanation, https://www.... Zhaybib,

If you are curious as to...

Sat, 30 Mar 2019 15:16:22 -07001 year ago1
🗨 1
🐏 0
👁 536
Profile Photo - Some Guy

Finding the last updated date of a page with JS?

Answers in Client-Side | By Some Guy

Published

Profile Photo - WTCMolybdenam4753

Last ReplyThere is a simple solution to finding the last update of a page in JS! Simply enter "javascript:alert(document.lastModified)" -without the quotes, int... WTCMolybdenam4753,

There is a simple solutio...

Sat, 30 Mar 2019 14:45:42 -07001 year ago1
🗨 1
🐏 0
👁 383
Profile Photo - Some Guy

Re-enabling right click on sites that have it disabled?

Answers in Client-Side | By Some Guy

Published

Profile Photo - Graln_of_Truth

Last ReplyYou can try disabling Javacript and then reloading the page; this seems to be the most common issue however there are several other things you can try... Graln_of_Truth,

You can try disabling Jav...

Sat, 30 Mar 2019 13:56:19 -07001 year ago1
🗨 1
🐏 0
👁 358
Profile Photo - Some Guy

Latest application development trends in 2019?

Answers in Software Development | By Some Guy

Published

Profile Photo - KacssPL

Last ReplyAnything can start 'trending', it really just depends on what people find appealing. The first thing you should know is what type of app you are tryin... KacssPL,

Anything can start 'trend...

Sat, 30 Mar 2019 13:55:23 -07001 year ago1
🗨 1
🐏 0
👁 412
Profile Photo - Some Guy

What do you think of AMD vs CommonJS?

Forum in Web Development | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplyThere are many different reasons why someone would use AMD instead of CommonJS. This website right here offers a more detailed explanation of the matt... Zhaybib,

There are many different...

Sat, 30 Mar 2019 13:53:25 -07001 year ago1
🗨 1
🐏 0
👁 303
Profile Photo - Some Guy
Profile Photo - -alxl_

Last ReplyHaving these error messages come up can be frustrating to work with. Without seeing specifics/knowing more of the spreadsheet you deal with it can be... -alxl_,

Having these error messag...

Sat, 30 Mar 2019 13:46:47 -07001 year ago1
🗨 1
🐏 0
👁 818