Why is my countdown timer too fast and negative in Code.org?
currently I'm working on an app lab project in code.org as required by my instructor, and I'm trying to make a timer that will count down to zero at the click of a button. The format is supposed to be...
View ArticleApi call to load blog posts saying blocked by orb
I have a blog application in which the home page shows the blog posts of all authors with the images of the blog post and their profile pic...but the images are not being displayed and when I check the...
View ArticlePopup Window in ASP.Net
im very new to C# and ASP.Net. Does anybody know how to create a popup in Asp?My scenario:When I click on a button, it checks some states. If a condition is being fulfilled a popup shall be thrown due...
View ArticleHow to make it so several buttons change each others' image results in...
I'm having trouble finding examples of how to do the following on Javascript:I've got 2 sets of 4 buttons, and 4 images. The buttons of the first set should changes 2 images. The buttons on the second...
View ArticleWhat is the javascript equivalent to jquery closest()?
I have the following code, which is written in DOM API instead of jquery. I'm not sure why. It's inside the submit function for jquery form validation. I need to change the "parentNode" part so that...
View ArticleValidate that a string is a positive integer
I would like the simplest fail-safe test to check that a string in JavaScript is a positive integer.isNaN(str) returns true for all sorts of non-integer values and parseInt(str) is returning integers...
View ArticleHow to run Puppeteer code in any web browser?
I'm trying to do some web scraping with Puppeteer and I need to retrieve the value into a Website I'm building.I have tried to load the Puppeteer file in the html file as if it was a JavaScript file...
View ArticleHow to create fallback for CDN libraries without using document.write()
I want to include 3rd party libraries, such as jQuery, from CDN. I also want to create a fallback so if the CDN fails, I include my own local copy. I have followed the suggestion here:This is how I...
View ArticleA plugin to create html calendars tables easily
One way to create calendars in HTML pages is to create monthly HTML tables and fill them manually. But, is there a plugin that would fill them automatically, by providing the month value for example?I...
View Articlewindow.close() =>"Scripts may close only the windows that were opened by...
I have a link in my webpage to close window in javascript :<a href="#" onclick="window.close()">Close the window</a>But when I click it, I have this error in console :Scripts may close only...
View ArticleError: Could not complete the operation due to error 8150002e
I am working on a Outlook VSTO add-in, in which I am using 'System.Windows.Forms.WebBrowser' to display the add-in functionality.One functional requirement is to have oauth connection to cloud accounts...
View ArticleHow to trigger the keyboard event (enter key)?
In my application I have a global search field which is used to filter data in a list. The list will have multiple columns. From other components setting the filter value (setting to input value) it's...
View ArticleGroup this JSON job listing by Team
I have this JSON and I'd like to group the listings by team, like on this page:Team NameJob TitleJob TitleJob TitleTeam NameJob TitleTeam NameJob TitleThe following is from their...
View ArticleHow should I identify anonymous browser installations for a server-side...
I am building a small daily browser game with TypeScript. A player can start and finish a challenge without creating an account or signing in. The current version stores the journal and statistics in...
View ArticleAdvice on how to approach small-scale restaurant reservation system [closed]
First Year CS Student hereI work for a small seafood restaurant business while learning CS on the side and I was thinking about developing a reservation system for them instead of getting them to...
View ArticleZebra_DatePicker popup position breaks when input is inside `position:...
QuestionI am using Zebra_DatePicker (v2.2.0) with an input field that is placed inside a container using position: sticky.The sticky container itself works correctly and stays fixed relative to the...
View ArticleHow do I create clickable areas on an image within a webpage with javascript?...
I want to create a webpage displaying an image that has areas on it that can be clicked to do various things like playing sound, displaying text, linking to other pages. The only problem is I have no...
View ArticleKeeping footer and bottom of page
I have a web page https://jiwidi.me/home/ where I have a footer that I want to stay at the bottom of the page even if I inject html code with js code. The footer works at the main page...
View ArticleHow do I cancel the refresh switch button after a page refresh?
I would need advice on how to cancel the refresh position of the switch button when I switch to another chapter.Code for js theme switch:document.addEventListener('DOMContentLoaded', () =>...
View ArticleWhy won't my web site's logo resize appropriately?
My desktop version of my web site is perfect, and runs exactly how it should, however, on mobile. I've been having issues:Issue 1When I uploaded the files to the hosting server, the logo was enormous,...
View Article