Tag: html

49 votes
5 answers
1.5K views
Sending message to a specific connected users using webSocket?

I wrote a code for broadcasting a message to all users: // websocket and http servers var webSocketServer = re

avatar
Xavier
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
2.3K views
Closing WebSocket correctly (HTML5, Javascript)

I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, wh

avatar
Frederick
0 1 0 9
asked 07 September, 2021
59 votes
5 answers
2.4K views
Do HTML WebSockets maintain an open connection for each client? Does this scale?

I am curious if anyone has any information about the scalability of HTML WebSockets. For everything I've

avatar
Frederick
0 1 0 9
asked 07 September, 2021
62 votes
4 answers
2.4K views
In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

I am building a small chat application for friends, but unsure about how to get information in a timely manner

avatar
Georgie
0 1 0 9
asked 07 September, 2021
51 votes
6 answers
1.7K views
WebSockets vs. Server-Sent events/EventSource

Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competin

avatar
Nereida
0 1 0 9
asked 07 September, 2021
52 votes
8 answers
621 views
HTML encoding issues - "Â" character showing up instead of " "

I've got a legacy app just starting to misbehave, for whatever reason I'm not sure. It generates a

avatar
Sydney
0 1 0 9
asked 07 September, 2021
57 votes
27 answers
1.5K views
Way to ng-repeat defined number of times instead of repeating over array?

Is there a way to ng-repeat a defined number of times instead of always having to iterate over an array? For

avatar
Keila
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
902 views
Working with select using AngularJS's ng-options

I have read about it in other posts, but I couldn't figure it out. I have an array, $scope.items = [

avatar
Corrin
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
1.8K views
AngularJS ngClass conditional

Is there any way to make an expression for something like ng-class to be a conditional? For example, I have t

avatar
Keith
0 1 0 9
asked 07 September, 2021
59 votes
14 answers
3K views
Can one AngularJS controller call another?

Is it possible to have one controller use another? For example: This HTML document simply prints a message d

avatar
Hallie
0 1 0 9
asked 07 September, 2021
59 votes
15 answers
1.5K views
How do search engines deal with AngularJS applications?

I see two issues with AngularJS application regarding search engines and SEO: 1) What happens with custom tag

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
56 votes
17 answers
707 views
Insert HTML into view from AngularJS controller

Is it possible to create an HTML fragment in an AngularJS controller and have this HTML shown in the view? Th

avatar
Keith
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
534 views
Strange iframe added into body tags called `rufous-sandbox`

I'm working on a local WordPress site, and for some reason there is an iframe added just after the openin

avatar
Rudy
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
826 views
Best place to insert the Google Analytics code

Where’s the best place to insert the Google Analytics code in WordPress, header or footer? I prefer

avatar
Arline
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
435 views
Render basic HTML view?

I have a basic node.js app that I am trying to get off the ground using Express framework. I have a views fol

avatar
Clarice
0 1 0 9
asked 07 September, 2021
50 votes
9 answers
1.1K views
What is the motivation behind the introduction of preflight CORS requests?

Cross-origin resource sharing is a mechanism that allows a web page to make XMLHttpRequests to another domain

avatar
Yolando
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
349 views
Scroll to bottom of div?

I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom witho

avatar
Fabian
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.3K views
How to overlay one div over another div

I need assistance with overlaying one individual div over another individual div. My code looks like this: &

avatar
Dusty
0 1 0 9
asked 07 September, 2021
55 votes
20 answers
415 views
Can I hide the HTML5 number input’s spin box?

Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) rende

avatar
Tana
0 1 0 9
asked 07 September, 2021