All Questions
16
questions
0
votes
3
answers
211
views
javascript setTimeout in a while loop [duplicate]
Hello i want to have 4 timeOuts to update balls positions because the balls don't go at the same speed.
here's a part of my code:
var i=1;
while(i<=5)
{
console.log(i);
...
1
vote
1
answer
69
views
Always display update notificaion when using Internet Explorer
I just found this handy site to display notifications to the users to update their browsers if they are obsolete, but on mi site i need to use HTML 5 and Internet Explorer does not support it
Does any ...
0
votes
1
answer
1k
views
JS (template Literal-) generated html, updates the DOM? [duplicate]
When generating HTML with JavaScript, is it better to use the annoyingly verbose
document.createElement("p")...
(as seen here: https://www.w3schools.com/jsref/met_document_createelement.asp )
or is ...
7
votes
2
answers
962
views
D3 V4: Updated data is being seen as new data? (Update function)
Currently, I am building a system, and I am having some trouble with the update function.
Essentially, I am trying to add new nodes to a D3 tree. A new child node can be added when the user clicks ...
1
vote
1
answer
2k
views
Element text not changing when passing selected textContent and new value to an update function
I'm creating a CRUD page where the user can add, delete and edit text, but I have an issue in updating the text after I select it for edit.
In editText function when I click the edit button the text ...
0
votes
3
answers
3k
views
Angular 4 update input text value via Host listener
I have input field in my template and I would like to catch each key press and
update the value in the dom by removinf empty spaces - trim.
I can catch the event and the function I build is working ...
1
vote
1
answer
69
views
Coalescing or Batching HTML Parsing
I am working on a project that requires updates to many html elements. The issue is I find that I am getting slower than desired performance, even on high end machines. Now when I do each update, my ...
0
votes
2
answers
398
views
Why doesn't my web page update the timer with JavaScript?
I am new to JavaScript and am trying to make a timer for a gross words a minute calculator. We have not yet implemented the actual calculator section. The timer is meant to display the time remaining ...
3
votes
1
answer
1k
views
Using mathjax in an updating sequence in javascript
I have four dynamic variables in my program,
xzero, xone, xtwo, xthree
That represent the coefficients of a cubic function. I want to show the actual equation in the HTML, in the following format:
...
0
votes
1
answer
51
views
Dynamic Website Update Script
I have a website with various applets/widgets/RSS feeds. How would I go about creating a cron/script that is able to figure out when the last time one of these applets/RSS feeds was updated and store ...
1
vote
1
answer
2k
views
How to update/reload a particular value in a web page only if it has changed? (using html/javascript)
I have created a web page using HTML and JavaScript (CSS is also used). I have set a refresh interval of 10 seconds. I don't want to refresh the entire page. I need to refresh/reload only those values ...
0
votes
1
answer
322
views
How to update in-app content?
I'm creating an Android application (for now) using Cordova. The app content is mostly a bunch of HTML pages and images, wrapped together by a index.html and some javascript.
I want to update these ...
1
vote
1
answer
2k
views
Javascript setInterval doesn't update timestamp used inside
I am using setInterval in Javascript. For a simple example I tried to update a time displayed.
var tim = new Date();
function loadLog(){
document.getElementById('timebox').innerHTML=tim.getTime();...
0
votes
1
answer
115
views
how to update an element of a specific div?
I am creating a web page where the user can select an item and the information is displayed. I have two buttons (btnBuy0 and btnBuy1). When BtnBuy0 is clicked, the details of the items showing ...
0
votes
1
answer
101
views
how to update contents of a span tag?
I am creating a web page where the user and select an item by clicking on the button. The details of the item selected will be displayed in a dropbox. At the moment I can get it to update the quantity ...