How to use a npm package [closed] - javascript

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have installed this package: https://www.npmjs.com/package/selection-popup
I was wondering how do I use it?

Getting your site viewable by remote users (people on the internet) isn't as simple as setting up an apache server. You'll also need a domain name (in your example, mydigitalplanner.net) from a domain registrar like GoDaddy. Once you have that, you'll need to add an A-record and point it to the external IP address for your server.
So far so good. You'll also want to make sure your computer has a static IP address (one that doesn't change every so often). Finally, you'll want to make sure that port 80 is open on your server box (and in your router's configuration, you'll need to forward port 80 to your server's IP).

Related

Multiple websocket server? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I make a webapp in javascript and java. Run localhost:8080 in NetBeans with GlassFish Server 5. I need make in a HTML page a chatroom and a poker tables with 6 clients. Chatroom is fine, used java websocket ServerEndpoint and JS client. But I want another channel for the game of poker. I tried to make another websocket ServerEndpoint but it doesn't work if i create it on port 8080. How can i solve it? It is important that I can only use java and javascript.
Maybe you can create a request type in your server code ,and when client connect to that server for different purposes sends relevant type of requests. E.g. chatroom client sends request with a parameter like {requestType:"chat"} and other one sends {requestType:"game"} among other parameters neccessary for your application.

Does a javaScript file always have to be named main.js when using it for website? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am making a website for a school project. I am currently linking my sign up page to send information to my firebase database (it works so far). But I was wondering if I could have multiple .js files for the same website in the same folder. I started out with a "main.js" file, linked it to my signUp.html. Then, I thought it would be good to maybe have at least 2 different .js files for this webiste. So I changed the name from main.js to signUp.js (I also made the ref change in the signUp.html), but my page stopped working until I changed everything back to main.js.
The browser sometimes stores your files in a cache in order to load the files quickly.
Try this:
CTRL + F5
to refresh invalidating the cache.
The fix is called "hard refresh". this works in most Windows and Linux browsers. In your case, it may be different. Find the right shortcut depending on your environment.

can't configure socket.io with Google Firebase [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am trying to make a simple chat app in which people will just send the message to everyone.
but I am not able to make it
These pictures will say you everything that I am doing.
Please correct me where I am wrong.
From node.js back-end code, start listening to the requests by -
server.listen(...);
And make sure that the server and the client ports are same(or port forwarding is there if different.).
And if using TCP protocol then that port should be open.

How can I host a create a simple login portal that can be accessed by different users over a same local network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm planning to make an Instagram for web for my school project, but i don't know how to give access to a page from the server to multiple users. Make note that all these things are happening offline and the webpage will be accessed to all those users who are connected to my local hotspot (or the computer hotspot on which I'm going to host the server).I don't know a thing about how to connect two users. please help.
Thanks
this steps are for XAMPP over the same local network:
Get your internal IP or static ip (ipv4, example: 192.168.1.106).
Open XAMPP>apache>conf>httpd.conf file
Find the line #Listen 12.34.56.78:80 or #Listen 0.0.0.0:80
Change the IP address in that line and replace it with the static IP (192.168.1.106)
Save the httpd.conf file ensuring that the server is pointed to #Listen
192.168.1.106:80
to connect from another pc just write http://192.168.1.106/myapp
hope it helps.

What can cause "No Data Recieved ERR_EMPTY_RESPONSE"? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
My website does this a lot, usually when I have a thread open. I think it might be because I am constantly (every 10 seconds or so) looking for new posts and notifications and loading them in through Ajax, but this shouldn't cause this error, right?
I use GoDaddy as a host, but in my previous tries of contacting them and asking for help they've not been useful. I am not sure if it's my code or their servers that cause this.
Any help would be greatly appreciated. It's been a while since I've been working on the site, since I kind of abandoned it after the error constantly happened and I couldn't find any answers as to why.
Are you using shared hosting with GoDaddy? GoDaddy shared hosting throttles the number of requests a hosted application can receive. If you have AJAX requests sending requests every 10 seconds, it will ignore a good proportion of those requests.
I recommend setting up a test server on the AWS cloud and porting the app over there. You'll get your own virtual server and the first year of hosting is free if you choose the smallest server size.

Categories

Resources