Questions tagged as 'javascript'

4
answers

Subsequent Calls in Ajax

I wrote a system on Web2py to a client, and he wanted me to automate a procedure. I thought about using Ajax. The idea is as follows: I have a list of companies. Let's say, 50. I want the screen to open with the list of companies and, on top...
asked by 16.12.2014 / 21:15
3
answers

Multiple lines of text or code with the ".html ()" method

When using the jQuery .html () method to apply multiple lines of text or HTML code to an element, it fails with error: Example in JSFiddle $(function(){ $( '.qualquerClasse' ).html( ' conteúdo de 3 linhas de código: uma...
asked by 04.02.2014 / 03:27
7
answers

How to check if there are numbers inside an input with JavaScript?

Form validation with JavaScript is routine in web development, but it always causes a headache! My situation is this: I can not allow numbers to enter a field of type 'name', but how can I do this?     
asked by 13.03.2014 / 12:42
3
answers

Why is it necessary to create a function to execute certain methods?

.onclick = function() {myFunction()}; Why does not the example below work? .onclick = myFunction() It runs without me clicking! <script> document.getElementById("demo").onclick = function() {myFunction()}; function myFunction() {...
asked by 13.11.2017 / 15:58
4
answers

How not to lose the "this" of the current object

I've already done a similar question , however this time I have a somewhat more complex problem: / p> ObjectTest1 = (function(){ var init = function(){ this.callback = null; } init.prototype = { setCallback :...
asked by 05.09.2016 / 21:11
2
answers

Convert string to date [duplicate]

I need to make a function increment X days to a date. The problem is that the date is coming as string in this format: dd/mm/yyyy and at the time of assigning the X days to that date, says that it does not recognize the var that...
asked by 26.11.2015 / 18:18
3
answers

Do you have any problems while playing the function for variable

Can anyone explain to me if I have a problem while playing a function for the variable, for example, in this case I'm talking about var marcar . This code is working, I do not know if it causes a performance loss or something else. Will...
asked by 11.03.2014 / 21:39
4
answers

"Date.now ()" equivalent of Javascript in C #?

Here talks about getting milliseconds using Date.now(); , which returns something like 1533144170651 . Follow his documentation:    The now () method returns the milliseconds since 1 January   1970 as of 00:00:00 UTC so far...
asked by 01.08.2018 / 19:38
3
answers

Is an TR anchoring possible?

Is it possible for outside of a tr element to link any address as below? <a href="www.enderecodesejado.com.br"></a> If it is not possible, would JavaScript solve this or is it better to forget? I have the following tab...
asked by 11.01.2014 / 21:13
3
answers

Executing external application with JavaScript

What code should I use to start an external application from a computer from an HTML page? One more time I was told that this code would be in JavaScript: var shwll = new ShellObject(); var hproc="C:\Windows\notepad.exe"; shwll.exec(hproc);...
asked by 17.08.2014 / 04:31