256 Kilobytes

Answers > JavaScript

Type AnswersAsk and answer questions, if that is something that you want to do. Category All Tag JavaScript

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 2 days agoFri, 06 Dec 2019 15:14:05 -0800 | Last update 2 days agoFri, 06 Dec 2019 15:15:37 -0800

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
👁
14
Profile Photo - August R. Garcia

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

Answers in Client-Side | By August R. Garcia

Published 1 week agoMon, 02 Dec 2019 01:27:11 -0800 | Last update 5 days agoTue, 03 Dec 2019 12:53:14 -0800

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
👁
18
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
👁
31
Profile Photo - August R. Garcia

[Solved] CSS Effect for Custom File Input on Dragover/DragEnter

Answers in Client-Side | By August R. Garcia

Published 1 week agoTue, 26 Nov 2019 11:27:39 -0800

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
👁
23
Profile Photo - August R. Garcia

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

Answers in Client-Side | By August R. Garcia

Published 2 months agoTue, 08 Oct 2019 18:56:14 -0700 | Last update 2 months agoTue, 08 Oct 2019 19:08:22 -0700

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
👁
79
Profile Photo - August R. Garcia

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

Answers in Client-Side | By August R. Garcia

Published 3 months agoFri, 09 Aug 2019 19:14:14 -0700 | Last update 3 months agoFri, 09 Aug 2019 19:18:12 -0700

Profile Photo - August R. Garcia

Last Reply Can 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 -0700 3 months ago
🗨
1
🐏
0
👁
153
Profile Photo - August R. Garcia

[Solved] Downloading arbitrary tables as TSV using JavaScript

Answers in Client-Side | By August R. Garcia

Published 4 months agoSun, 04 Aug 2019 05:42:57 -0700

Profile Photo - August R. Garcia

Title.

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

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

Answers in Computer Programming | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:33:01 -0800

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 -0700 5 months ago
🗨
2
🐏
0
👁
624
Profile Photo - Some Guy

[JavaScript] QuerySelector not working for multiple attributes?

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:36:26 -0800

Profile Photo - Default

Last Reply You 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 -0700 6 months ago
🗨
1
🐏
0
👁
277
Profile Photo - Some Guy

What is the difference between Java and Javascript?

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:35:56 -0800

Profile Photo - Default

Last Reply There is much difference between them. Java completely Object Oriented language. JavaScript prototype-based programming language. Even if Jav... Ali,

There is much difference...

Wed, 29 May 2019 05:15:03 -0700 6 months ago
🗨
2
🐏
0
👁
273
Profile Photo - Some Guy

How to remove duplicates from sorted array?

Answers in Computer Programming | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:30:26 -0800

Profile Photo - Default

Last Reply You 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 -0700 6 months ago
🗨
2
🐏
0
👁
217
Profile Photo - Some Guy

JavaScript - How to hide a dialogue on click?

Answers in Client-Side | By Some Guy

Published 1 year agoSun, 02 Dec 2018 03:44:25 -0800 | Last update 1 year agoSun, 02 Dec 2018 13:02:25 -0800

Profile Photo - Default

Last Reply Did 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 -0700 6 months ago
🗨
2
🐏
0
👁
277
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply In 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 -0700 6 months ago
🗨
1
🐏
0
👁
256
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply The 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 -0700 6 months ago
🗨
1
🐏
0
👁
309
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 1 year agoSun, 02 Dec 2018 03:42:50 -0800 | Last update 1 year agoMon, 03 Dec 2018 06:48:22 -0800

Profile Photo - Univa

Last Reply Here'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 -0700 7 months ago
🗨
1
🐏
0
👁
250
Profile Photo - Some Guy

"Adjacent JSX elements must be wrapped in an enclosing tag"?

Answers in Computer Programming | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:32:31 -0800

Profile Photo - Univa

Last Reply This 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 -0700 7 months ago
🗨
1
🐏
0
👁
250
Profile Photo - pls_stop_this

In JavaScript, what is the QuerySelector method?

Answers in Computer Programming | By pls_stop_this

Published 8 months agoTue, 19 Mar 2019 08:29:43 -0700

Profile Photo - Graln_of_Truth

Last Reply There 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 -0700 8 months ago
🗨
1
🐏
0
👁
178
Profile Photo - Some Guy

Finding the last updated date of a page with JS?

Answers in Client-Side | By Some Guy

Published 10 months agoWed, 06 Feb 2019 13:43:58 -0800

Profile Photo - WTCMolybdenam4753

Last Reply There 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 -0700 8 months ago
🗨
1
🐏
0
👁
251
Profile Photo - Some Guy

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

Answers in Client-Side | By Some Guy

Published 10 months agoWed, 06 Feb 2019 13:44:08 -0800

Profile Photo - Graln_of_Truth

Last Reply You 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 -0700 8 months ago
🗨
1
🐏
0
👁
216
Profile Photo - Some Guy

Latest application development trends in 2019?

Answers in Software Development | By Some Guy

Published 10 months agoWed, 06 Feb 2019 14:14:11 -0800

Profile Photo - KacssPL

Last Reply Anything 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 -0700 8 months ago
🗨
1
🐏
0
👁
250
Profile Photo - Some Guy
Profile Photo - -alxl_

Last Reply Having 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 -0700 8 months ago
🗨
1
🐏
0
👁
433
Profile Photo - PPSH1111

How to disable JavaScript in tor?

Answers in Computer Software | By PPSH1111

Published 8 months agoWed, 20 Mar 2019 00:59:24 -0700

Profile Photo - STubix

Last Reply You can disable JavaScript in the Tor browser with these 3 steps: 1. Launch Tor Browser, and click the Tor Browser button > Options 2. Next, go to the... STubix,

You can disable JavaScrip...

Wed, 20 Mar 2019 16:57:17 -0700 8 months ago
🗨
1
🐏
0
👁
222
Profile Photo - Your Dad

What are some JavaScript interview questions And Answers?

Answers in Local and Offline Businesses | By Your Dad

Published 8 months agoTue, 19 Mar 2019 20:51:17 -0700

Profile Photo - Zhaybib

Last Reply Such JavaScript is such a popular scripting language for many people to use, there are many interview questions on the subject that one can find on th... Zhaybib,

Such JavaScript is such a...

Wed, 20 Mar 2019 08:12:54 -0700 8 months ago
🗨
1
🐏
0
👁
146
Profile Photo - Some Guy

How to convert double to int in Java?

Answers in Computer Programming | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:43:37 -0800

Profile Photo - Univa

Last Reply 1. double to int in Java - Typecasting This is one of the easiest ways to convert a double to int in Java.  Syntax: double data = 3452.3... Univa,

1. double to int in Java...

Thu, 14 Mar 2019 12:26:12 -0700 8 months ago
🗨
1
🐏
0
👁
209
Profile Photo - Some Guy
Profile Photo - Default

Last Reply This error TypeError: document.getelementbyid(...) is null would seem to indicate that there is no such element with an ID passed to getElementById()... jacobhalls,

This error TypeError: doc...

Sun, 24 Feb 2019 21:30:19 -0800 9 months ago
🗨
1
🐏
0
👁
313
Profile Photo - Some Guy

[JavaScript] Decode all HTML entities?

Answers in Style and Layout | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:29:46 -0800

Profile Photo - roxblade

Last Reply There are many ways of doing it, through jQuery as well as JavaScript. One way that I'm fond of that preserves the tags while doesn't have the jQuery... roxblade,

There are many ways of do...

Fri, 01 Feb 2019 03:05:55 -0800 10 months ago
🗨
1
🐏
0
👁
246
Profile Photo - Some Guy

How to make an SVG graph (HTML)?

Answers in Web Development | By Some Guy

Published 1 year agoSun, 02 Dec 2018 03:43:14 -0800

Profile Photo - roxblade

Last Reply There are many amazing tutorials for SVG graph generation. I like to believe that the CSS-Tricks page is one of the most helpful resources. Daniel Pat... roxblade,

There are many amazing tu...

Wed, 23 Jan 2019 08:23:35 -0800 10 months ago
🗨
1
🐏
0
👁
204
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI recently just started to get the hang of javascript and I was doing fine up until I got a weird error message that said "Unhandled rejection (S...
🗨
0
🐏
0
👁
146
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI am pretty fluent in JavaScript, however I've run into a problem that I haven't seen before and I don't know how to fix it. I get an e...
🗨
0
🐏
0
👁
324
Profile Photo - Some Guy

[JavaScript] Fix for "Uncaught TypeError: illegal invocation?"

Answers in Scripting and Automation | By Some Guy

Published 10 months agoSun, 13 Jan 2019 06:02:53 -0800

Profile Photo - Some Guy

MoreI am using JavaScript for my upcoming project. When I got started on it, I kept getting this message, "Uncaught TypeError: illegal invocation.&qu...
🗨
0
🐏
0
👁
274