Use MySQL query to autocomplete search
I'm trying to autocomplete from a list of user that I have in my database, I get the query but then how do I pass it to my client side JavaScript to execute it and complete the jQuery autocomplete? I'm...
View ArticleWon't print out names help please
let people = ['John','Sally','Jake','Chris']; const logPerson = (person, index) => { console.log('${index} - Hello ${person}'); }; people.forEach(logPerson); it keeps printing out like this...
View ArticleMake the button active if the data is changed
How to track changes if the value of the input field is already there. Probably it will be necessary to make the button activeclass NameForm extends React.Component { constructor(props) { super(props);...
View Articleonselect function is not working on my date picker
Onselect is not working on my date picker. Thus it gives me NaN as a return value in other function. Does anybody have an idea or a solution for this? I have no clue. $(document).ready(function(){ var...
View ArticleConvert SVG to image (JPEG, PNG, etc.) in the browser
I want to convert SVG into bitmap images (like JPEG, PNG, etc.) through JavaScript.
View ArticleConvert seconds to HH-MM-SS with JavaScript?
How can I convert seconds to an HH-MM-SS string using JavaScript?
View ArticleI have the problem with the mix of z-index and position on CSS
I cannot fix the down directed in the main page although I set it with position and z-index properties. Does anyone know how to fix it in the first view ?...
View ArticlePrevent opening new tabs from a frame
I implemented the logic of work as follows. My js:function openUrl(evt, Name) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i <...
View ArticleBabel (gulp-babel) Uncaught ReferenceError: require is not defined
I hope you can help meI've been using gulp, gulp-babel. That's why, I got this error. So, I don't know what i can make to use module (ES6) because, I'm trying to import another file into this and It...
View ArticleCSP defined in apache conf not working when serving php files
I am configuring apache csp lockdown of a site, and experienced a strange behavior when i open the same file as a php script compared to open it as a html file.The html file is:<html>...
View ArticleWhat is the JavaScript version of sleep()?
Is there a better way to engineer a sleep in JavaScript than the following pausecomp function (taken from here)?function pausecomp(millis) { var date = new Date(); var curDate = null; do { curDate =...
View ArticleThe ::after selector not working with certain classes in the element
I have a SPAN element ::after which I want to display a collapse state indicator - closed=">" or open="V".I am toggling the SPAN's classes "catopac-open" and "catopac-closed" (using JQuery) when the...
View ArticleHow to toggle Vuetify Carousel component right/left arrows on and off
I want to dynamically control the visibility of (<) and (>) arrows in the Vuetify carousel component. For example so that the final right arrow on the last item disappears, or so that I can use...
View ArticleExiting Node Child Process After Processing Data Output
I'm using Node.js to spawn puppeteer in a separate process.Here's that child process (it writes the websocket to the standard output stream):// path: cp/index.js (async () => { const browser = await...
View ArticleJest virtual mock: how do I troubleshoot this failure?
So I have this import statement for a module that is only available when running on the jvm's nashorn runtime in the module i'm trying to test using jest 25.1 running on node 11.1.0:import...
View ArticleJavascript: How to get a unique list of values assigned to the same property...
I'm trying to make a unique list of all the values assigned to the city property, which is buried in an object within an object, and I have an array of such objectsbuildings = [ { name: 'Victoria Bell...
View Articleditching server side languages and going for javascript for both client and...
So we are at this point in time where we need to start working on a new web app with typical browser side and server side parts.Our team is kinda split on the server side tech stack selection,...
View ArticlePass Javascript array with Jquery and JSON from client-side to server side in...
I am attempting to pass a Javascript Array from the client side to the server side (Flask). My code seems to work for both integers and strings. When I try to send an array with the exact same code, I...
View ArticleCode snippet in Chrome to repeatedly fetch URL doesn't work
I can use this code in the Chrome console to make a post request to a URL on my localhost:fetch("http://localhost:50014/api/myapi/",...
View ArticleIgnore return outside of function with babel 7
I recently updated to babel 7 and webpack 4 and am receiving this error when running our gulp build task:gulp build [00:26:04] Requiring external module @babel/register [91m[BABEL] Note: The code...
View Article