Questions tagged as 'javascript'

3
answers

How to know which select option was selected

I have a <select> and I need to know which <option> was selected. <select class="formacao"> <option>Ensino fundamental incompleto</option> <option>Ensino fundamental completo<...
asked by 15.12.2015 / 19:27
1
answer

How to get the full size of the screen even though the browser window is resized?

I can get the size of the browser window through the following code: $(window).height(); However, this method takes the current size. I would like to know if I can get the full size of my screen even if I resize it.     
asked by 17.12.2015 / 20:44
3
answers

I wanted to know how to do for each page refresh .class to be moved

Example: Normal Order class 1<br> class 2<br> class 3<br> .<br> .<br> .<br> class10<br> I want to put in order to each refresh Example: class 3<br> class 5<br> class 1<br> .&l...
asked by 14.01.2016 / 14:47
1
answer

How to send all form fields with $ .post?

I have a form with 2 fields, User and Password. $.post('recebe.php',{ 'Nome:'Meu Nome'' 'Senha:'Minha Senha'' },function(data){ alert(data); }); Is there a way to get the name and value of the inputs and do POST without typing e...
asked by 23.06.2014 / 05:36
1
answer

Change of Tabs

I have a tab menu that as you select the tabs will change the content. Change tabs: <script language="JavaScript"> function stAba(menu,conteudo) { this.menu = menu; this.conteudo = conteudo; } var arAbas = new Array(); arAbas[0]...
asked by 25.06.2014 / 16:48
2
answers

Tables with Bootstrap

I started yesterday with Bootstrap and I'm still on the learning curve. My need is a table with two columns, a form of a grid. In this table I have only two columns: CNPJ and Social Reason. And I make a query in the DB and I bring CNPJ and Reaso...
asked by 25.06.2014 / 21:33
2
answers

Ajax does not return text in utf-8

By ajax, I am querying the Database, but if the field has special characters, they appear wrong. I'm making the request in the following JS function, the result is shown in a div with the id="txtHint" <script charset="UTF-8"> functio...
asked by 16.06.2014 / 13:52
2
answers

Call Java method in Javascript

I have a problem, and I needed to call a Java method inside a Javascript file. Java example: public void Inserir(User user) { //insere usuario } I need, via a .js file, to send the object to the Java class responsible for the Insert...
asked by 25.06.2014 / 16:50
2
answers

How to clear screen data?

I would like to know how to call the same screen only with the empty fields! That is, the same screen only from the beginning, without the information that the user informed! Example fields: Fields     
asked by 27.06.2014 / 15:48
1
answer

Convert Html to Canvas

Is it possible to convert an html page to canvas? For example, do I have a page built in html5 and I wanted this page to be "minified" for just one tag? I do not want the html page to be rendered image. Ps .: Question at the level of knowledg...
asked by 06.04.2016 / 00:43