Questions tagged as 'javascript'

2
answers

Problem with access to undefined properties

I have a variable that looks for input and from this it works by getting information from it. The problem that arises to me is that when the input is not there, the script for saying that it can not access properties of something und...
asked by 28.01.2017 / 15:06
1
answer

I want to count and quantify Array indexes on onclick control

I want to create a simple paging based on elements within an array. When I get to the first and / or last element of the array, I would like to disable its navigation button (eg, changing from disabled=false to disabled=true )...
asked by 25.01.2017 / 07:32
1
answer

How to integrate TinyMCE with ASP.NET MVC

Implementing TinyMCE into ASP.NET MVC encountered a problem uploading images . The form I'm trying to implement is as follows: I have a View with Script that calls a Controller containing a upload metho...
asked by 30.01.2017 / 23:44
2
answers

Do 'submit' button wait for an alert action?

I have an HTML form with a submit button. Valid the fields in the button click, if these are invalid, an alert is displayed, but this disappears quickly and the form already redirects to the action page. It only works when I change the button ty...
asked by 07.11.2015 / 23:44
1
answer

Execute function if the input contains certain text

$(function() { if ($fa.ismod = true) { if (document.getElementById("input#message").value = "/msg") { alert('tudo okay'); } } }); This code should alert if the input # message contains the / msg text but it...
asked by 18.11.2015 / 00:48
1
answer

Expandable Table

In this script down link I have a table that expanded when we clicked the line. as it expands it shows me a second table. the problem is that the script is being repeated in this second table, preventing all lines from showing, in that second...
asked by 13.10.2015 / 03:05
1
answer

Is it possible to call an anonymous function?

I wonder if it's possible to call an anonymous function out of its scope. When I call the function, this error occurs: Uncaught TypeError: consomeCsr is not a function Example: consomeCsr = (function () { alert('Funcção...
asked by 05.10.2015 / 18:28
2
answers

Check data according to the information ready

I would like to make this form check the following data by clicking "Confirm" and if any of them is correct it will go to the next page. MOCK: $scope.cliente = [{ nome: "nomeedit", senha: "senhaedit", email: "nomeedit@senh...
asked by 09.10.2015 / 17:10
1
answer

function document.write does not write two messages [closed]

I started a month and a half of studies and the little code below is not writing the name and the points of the two teams informed, only one. If you remove from the code the writing of the data of the first time it normally displays the result...
asked by 19.10.2015 / 21:29
1
answer

Code to operate at a certain time

I would like to know how I put a code to be active between certain hours, which in this case would be between 7am and 10pm in the Brasilia time zone. I tried to study this one that already contains this function, do not understand:...
asked by 15.10.2015 / 19:07