Questions tagged as 'javascript'

2
answers

How to create a sequence of messages in Javascript?

I have an application made in Node, Express and Socket.oi in which alerts are sent to a certain screen that receives the message through socket.io, in this screen I receive the message, format it in a dialog and screen display which is hidden af...
asked by 17.12.2018 / 20:51
1
answer

Boot / add-in function dynamically deleting previously added input values

I made a form where a button calls the function "addproduct ()" In this function I create 1 div and 2 textbox that are placed in the same div, and then add the div to a span at the bottom of the page. The function works perfectly when it come...
asked by 12.12.2014 / 01:05
1
answer

Calculate time online with JavaScript / jQuery

I need to develop a code where I do not have access to back-end languages, I need to do a function that calculates how long a user is online on the page and save this time in localStorage in>, I thought I'd use a setInterval every 1 s...
asked by 05.04.2014 / 04:29
2
answers

TinyMCE pick up and set value

How do I get and set the value of the TinyMCE plugin ? tinymce is a textarea plugin with several options is a text box format, when I say take the value I mean what was formatted by the user eg a bold text with size 16 and etc.     
asked by 14.02.2014 / 17:25
1
answer

How to remove a field already added to a 'FormData'?

The following code inserts files from a file field, into a FormData : var filedata = event.target; // FileList object var i = 0, len = filedata.files.length, file; for (; i < len; i++) { file = filedata.files[i]; //...
asked by 05.01.2014 / 00:29
1
answer

CSS - Leave a minimum distance between two elements 'fixed'

I need to leave a minimum distance between two fixed position elements (the top and the bottom). The problem occurs when you apply zoom-in to the page, the two elements are virtually in place, and the purpose is to make the central conten...
asked by 27.12.2014 / 00:24
1
answer

Add tag in all repetitions of a given word

See the code below: <style type="text/css"> .format{ color: red; font-style: italic; } </style> <div> <p>texto texto texto 'palavra-chave'. texto 'palavra-chave', texto texto.<p> <...
asked by 23.12.2014 / 19:34
3
answers

Force popup on a website, after the onclick, in javascript

As everyone knows, there are pop-up blockers that will not let you pop popups automatically or the browser itself without doing anything. In this way, I need to create a code in JAVASCRIPT, which opens my desired popup as soon as the user cli...
asked by 30.12.2014 / 22:13
1
answer

How to update indexes of a listing dynamically

I have a table where I can select the number of items in an order. And in each row I have a number of 01 to 15 sequential where it identifies the quantity of items. The problem is that when I delete an item, the interesting thin...
asked by 31.12.2014 / 12:08
1
answer

Is it possible to create a map to position elements?

I would like to know if it is possible to "pre-define" the position of an element when using append , for example: <div id="mainDiv"> <div class="child" data-position="2"></div> <div class="child" data-position...
asked by 17.07.2018 / 18:05