Questions tagged as 'javascript'

1
answer

Uncaught TypeError: Can not read property 'textContent' of null [closed]

I can not understand why this error is occurring. Theoretically the error is due to not having this ID in the html, but it does exist ... I even changed the name to check if something was spelled wrong ... <tr class="paciente">...
asked by 16.05.2016 / 00:48
1
answer

Replace accents and keys

I have a problem in javascript I make a window.open() with a string the problem is that if the string has accents or cedillas gives error, someone knows a way to replace the accents or cedilhas by letter without accent or cedillas?    ...
asked by 16.05.2016 / 18:27
2
answers

How to pass the Syntax or Semantics written in the text field, to a Textarea

Let's face it, this is more of a doubt than a logical reasoning. I have some input in the HTML page, and it even passes its value (s) to textarea , at the click of a button. Great, so far so good! I developed as I described ab...
asked by 14.05.2016 / 21:21
1
answer

How to get data from a MySQL database from id

Good people have this voting system where it saves the votes in the database. Except that it pulls all the data at once using the code below, the file will return ALL the registered names. But I want to display only one at a time: according to t...
asked by 11.04.2016 / 19:25
1
answer

Dropdown already selected

I made a dropdown with AngularJs as follows <ui-select ng-model="SelectedItem.LegalEntity" theme="bootstrap" reset-search-input="false" style="width: 100%" id="legalEntityId" ng-d...
asked by 09.03.2016 / 15:51
1
answer

Virtual keyboard in HTML5 and JS

Hello, I need help with building a virtual numeric keypad in HTML5 and JS , for a mobile site, but the numeric field input when clicked can not trigger the device's default keyboard, as if input was not an editable field f...
asked by 09.03.2016 / 14:53
1
answer

Problem with JavaScript validation

I'd like some help finding out what's wrong with this validation: if(qtdemp=5 && func1.value.length == 0 || cpf1.value.length == 0 || func2.value.length == 0 || cpf2.value.length == 0 || func3.value.length == 0 || cpf3.value.length ==...
asked by 07.03.2016 / 15:36
1
answer

Problem using Bootstrap Tabs

I'm trying to use the tabs component of the bootstrap, but I'm not getting it to work, I've taken several examples, but I could not get it to work. <script type="text/javascript" src="lib/bootstrap/bootstrap.min.js"></script> <s...
asked by 07.03.2016 / 18:52
1
answer

problem with javascript inputs do not call the function?

I have a problem in my code, I needed to do a search field only that I came across a problem the input field ignores the javascript and jquery function and in the case of the inputs submit nor refresh the page my code is as follows: / p> // pa...
asked by 09.03.2016 / 14:02
1
answer

Rest Web Service using Slim Framework, in PHP, always gives error when called by an Ajax method, although it is executed?

I've implemented a WS Rest in PHP, but when I try to consume WS with an Ajax method it always returns me the error function. However the WS is recorded and the data is even recorded in the DB. Has anyone ever had the same problem? PHP WS code...
asked by 19.04.2016 / 13:06