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:
[Solved] Implementing an "Estimated Time to Crack" Notification for Registration Forms
Answers in Client-Side | By August R. Garcia
Published | Last Update
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...Client-side input validation question -- is it possible to make a CKEditor editor's input required?
Answers in Client-Side | By Some Guy
Published
Last ReplyTo make CKEditor required on the client side, adding a "required" attribute to the initial textarea will not work. Instead, some JavaScript is require... August R. Garcia,
To make CKEditor required...
[Solved] Enabling Shades/Tints of All Colors in CKEditor
Answers in Client-Side | By August R. Garcia
Published | Last Update
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....[Solved] Onclick Delay to Confirm Form Submission when Button is Clicked
Answers in Client-Side | By August R. Garcia
Published
Code:
MoreCode: <form> <button class="btn" onclick="doubleclick_confirm_submit(event, this);" type="button">Ban/Unban</button> <...[Solved] CSS Effect for Custom File Input on Dragover/DragEnter
Answers in Client-Side | By August R. Garcia
Published
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>...[Solved] Automatically apply color scale to HTML table with JavaScript
Answers in Client-Side | By August R. Garcia
Published | Last Update
*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...[Solved] Adding an "active" class to
Answers in Client-Side | By August R. Garcia
Published | Last Update
Basically the same with PHP in general;...
MoreBasically the same with PHP in general; only real difference is the use of Route::currentRouteName(). Code: <nav> <?php $...[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
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...
[Solved] Downloading arbitrary tables as TSV using JavaScript
Answers in Client-Side | By August R. Garcia
Published
Title.
MoreTitle. <!DOCTYPE html> <html> <head> <title>Test Table Download</title> </head> <body> <h1&g...[Solved] Uncaught TypeError: $(...).autocomplete is not a function
Answers in Client-Side | By August R. Garcia
Published
Include the jQuery UI library in additio...
MoreUse this: <!DOCTYPE html> <html> <head> <link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" r...[JavaScript] QuerySelector not working for multiple attributes?
Answers in Client-Side | By Some Guy
Published

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...
How to use DOMDocument::getElementsByTagName for multiple tags/types of tag?
Answers in Client-Side | By Some Guy
Published

Last ReplyAnother approach is a prototype based solution. Node.prototype.getElementsByTagNames = function (tags) { var elements = []; for (... Ali,
Another approach is a pro...
JavaScript - How to hide a dialogue on click?
Answers in Client-Side | By Some Guy
Published | Last Update

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&...
[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
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...
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...
Re-enabling right click on sites that have it disabled?
Answers in Client-Side | By Some Guy
Published
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...
Last ReplyThe function document.getElementByClass() does not exist. The correct function is document.getElementsByClassName(). Documentation: h... August R. Garcia,
The function documen...
Anyone know how to solve the error "no 'access-control-allow-origin' header is present on the requested resource"?
Answers in Client-Side | By Some Guy
Published
[JavaScript] Why does this code not work correctly? Code: function multiply(a, b){ a * b }
Answers in Client-Side | By Some Guy
Published | Last Update
Last ReplyThe function should state "return a * b;" instead of "a * b;" // Define the function function multiply(a, b){ return a * b;... August R. Garcia,
The function should state...
I am currently learning JavaScript and h...
MoreI am currently learning JavaScript and had a question about strings and charArray. Is there a way to convert a string inti a charArray?In JavaScript, how do you get the character pressed from a keydown function?
Answers in Client-Side | By Some Guy
Published
Last ReplySuper simple! In pure Javascript: <script type="text/javascript"> function theKeyPress(e){ var keynum; if(window.event) {... Hash Brown,
Super simple!
Last ReplyYes, it can be done. Something along these lines works. Can remove the try/catch statement at your discretion. try { // Intialize CKEditor Ins... August R. Garcia,
Yes, it can be done. Some...
Is there a way to create a CSS color scale based on a div's value/innerHTML content (or vanilla JS)?
Answers in Client-Side | By Some Guy
Published | Last Update
Last ReplyAm fairly sure there is no built-in way to do this with pure CSS, but definitely doable with JS/jQuery. August R. Garcia,
Am fairly sure there is n...
Laravel Validation - What is the best way to create a whitelist to allow only certain HTML tags?
Answers in Client-Side | By Some Guy
Published
Last ReplyHave seen a number of people recommend HTML Purifier:http://htmlpurifier.org/You might also look into PHP's strip_tags() function:http://php.net/... August R. Garcia,
Have seen a number of peo...
Last Replyvar c_menus = document.getElementsByClassName("c_menu");for (var iii = 0; iii < c_menu.length; ++iii) { c_menu[iii].addEventListe... August R. Garcia,
var c_menus = document.ge...
Last ReplyInput validation through CKEditor is limited to the client-side, which means that the actual validation would occur on the server-side through PHP/Lar... August R. Garcia,
Input validation through...
[JavaScript] addEventListener to all in array?
Answers in Client-Side | By Some Guy
Published | Last Update
Last ReplyUse this instead of a static variable. for (iii = 0; iii < arr.length; ++iii) arr[iii].addEventListener("click", function(e) { this.... August R. Garcia,
Use this instead of...
Last ReplyThe function that you're looking for is .toFixed(2):https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFix... August R. Garcia,
The function that you...
[JavaScript] HTML document.createElement input with a "value='something'" attribute?
Answers in Client-Side | By Some Guy
Published
Last ReplySomething like this should work:// Add a hidden input to store the IDsvar hidden_input = document.createElement("INPUT");hidden_input.setAtt... August R. Garcia,
Something like this shoul...