SitePoint Forums
612 FOLLOWERS
A community for web designers and developers to discuss everything from HTML, CSS, JavaScript, PHP to Photoshop, SEO, and more. SitePoint is the largest online community of web professionals with top quality tutorials and our wide range of educational products.
SitePoint Forums
58m ago
I have the following code in JavaScript.
'use strict';
document.body.append(document.createElement('textarea'));
document.body.append(document.createElement('button'));
let btnClick = document.getElementById('button');
function inClick() {
let str = 'abc';
console.log(str);
}
btnClick.addEventListener('click', inClick);
I am getting the following error when execting this script.
Uncaught TypeError: Cannot read properties of null (reading ‘addEventListener’).
I am unable to add an event listener when the button is clicked.
2 posts - 2 participants
Read full topic ..read more
SitePoint Forums
3h ago
I installed new components and vs 2022 community display message that all controls were installed but when I start new windows forms and open the form I dont see the components installed also if I select “show all” I see them as grayed
What is the solution to this problem ?
1 post - 1 participant
Read full topic ..read more
SitePoint Forums
7h ago
Hey everyone!
I’ve been diving into the world of software packaging lately and wanted to share some insights and gather some tips from you all. When it comes to packaging software, it’s not just about bundling up files; it’s about ensuring smooth deployment and compatibility across different systems.
I’ve found that adhering to best practices like version control, clear documentation, and automation tools can really streamline the packaging process. Plus, it helps avoid those dreaded compatibility issues down the line.
What are some of your go-to practices for software packaging? Any tools or ..read more
SitePoint Forums
9h ago
If I unhide: .video-containerB.hide,
The curtain does not go up after clicking the 1st exit button here.
https://jsfiddle.net/6xavobs7/
.outer-containerA.hide,
.video-containerA.hide,
/*.video-containerB.hide,*/
.containerB.hide,
.outer-container.hide,
.containerC.hide {
display: none;
}
At the code here: https://jsfiddle.net/6xavobs7/
The video to the 2nd x button is not visible?
It’s clickable and the video plays though.
Why?
1 post - 1 participant
Read full topic ..read more
SitePoint Forums
16h ago
Hello guyz! We recently launch an android application on Play store for Receive SMS Online. Within few days we got good response. You should checkout also our Temporary Phone Number application. Thank you!!
1 post - 1 participant
Read full topic ..read more
SitePoint Forums
16h ago
The Future of Commerce: Navigating the Realm of E-commerce
In the bustling landscape of modern commerce, the digital realm has emerged as the epicenter of economic activity, revolutionizing the way businesses and consumers interact. At the heart of this revolution lies e-commerce, a dynamic platform that transcends geographical boundaries, time constraints, and traditional business models. From global conglomerates to aspiring entrepreneurs, e-commerce offers an unprecedented avenue for growth, innovation, and connectivity.
The Evolution of E-commerce:
The journey of e-commerce traces back to ..read more
SitePoint Forums
16h ago
I got a new laptop with a stronger GPU (4080). My chatbot runs fine in the old machine (with a 3070), but when I tried running it in the new laptop, I get this error:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (39, 2) + inhomogeneous part.
This is my Chatbot code, that contains the training and main program:
#Philip's Bot
#References:
#https://projectgurukul.org/deep-learning-python-chatbot/
#https://www.tutorialspoint.com/python_data_science/python_word_tokeniz#ation.htm
#https://stackover ..read more
SitePoint Forums
18h ago
We are working on IoT device, each device will stores about 20 mb of data each month and we have 20K and more IoT devices in the filed. we need storage for 7 years. So which is best way of creating database for each device or one database with one table or one database with multiple tables ?
1 post - 1 participant
Read full topic ..read more
SitePoint Forums
20h ago
Hi,
Does anyone know how to bypass the iPhone Safari 5MB Web cache limit?
Game tested on iPad (9th gen) and works without issues.
You can play the current stable build below:
https://jesseleepalser.itch.io/t-crisis-v
You can view/download the entire source code project below:
https://bitbucket.org/jesseleepalser/t-crisis_v_firefox_110percent_ai/src/main/
Any help would be greatly appreciated, thanks!
Jesse
1 post - 1 participant
Read full topic ..read more
SitePoint Forums
20h ago
I happened to stumble upon the list of service workers registered in my system. My default browser is Edge and the list of service workers is in edge://serviceworker-internals. For Chrome it is in chrome://serviceworker-internals. I was surprised by all the websites with service workers in my system. I do not recognize very many of the websites and many are suspicious. At the top are service workers for extensions; I left them but I unregistered any others that I did not recognize or really do not need.
Does anyone know how much of a threat they can be? I found the article The Service Worker H ..read more