Questions tagged as 'javascript'

1
answer

Unread array with index defined in input

see below the following code: <input type="text" id="task" name="task[]" value="100" /> <input type="text" id="task" name="task[]" value="110" /> <input type="text" id="task" name="task[]" value="120" /> And in jquery, I r...
asked by 19.09.2016 / 16:15
1
answer

How to load a url inside the modal bootstrap?

Hello everyone, I would like to address a bit of how to load content (html) from a url into a modal bootstrap.     
asked by 20.09.2016 / 00:25
1
answer

Logging into a Web site using WebRequest

I need to log into a site using asp.net web forms. I'm doing it this way. How could I redirect to the page after logging in? protected void Button1_Click(object sender, EventArgs e) { var loginAddress = "http://spor...
asked by 19.09.2016 / 20:00
1
answer

Problem with line break JS

The problem is this, when breaking the line in textarea in div .result where it is supposed to appear the result of what is typed in textarea , it only gives a space and does not break the line. How do I break the line w...
asked by 06.08.2016 / 06:03
1
answer

Change js variable value when clicking button and click again to return to initial value

I have the js code $size = 50; And I want you to click this button <label for="post-1" class="read-more-trigger" onclick="$size = 500"></label> it changes the value to 500. My only difficulty is to make when clicking the bu...
asked by 19.09.2016 / 21:14
1
answer

capture value of another input with jQuery

Galera I put up a system that when entering the user name in an input, jQuery captures the name and calls a php file. Which in turn makes a query in the DB and populates a select list. Well, the structure looks like this: function busca...
asked by 18.10.2016 / 13:29
1
answer

Hide button (p: commandbutton), Primefaces, with api PF

I'm trying to accomplish something seemingly simple, but I'm taking a damn spanking ... Studying, I read that Primefaces has a javascript / javascript api, so I decided to take a look. It turns out that I can not hide a button in any way, tried...
asked by 17.10.2016 / 19:48
1
answer

I want to use ajax to simply update a table that reflects the database, without refreshing the page

I have the index.php, which has side by side an insert form and a table that reflects the bank, does not need to have timeout, just want it when I make a new record in the table, it will appear in the table next, without doing refresh in the pag...
asked by 14.07.2016 / 22:05
1
answer

Update table html after registering user using ajax

Hello, I have a following js code to register a user. $(function() { $('#cadastrar_usuario').submit(function(event) { event.preventDefault(); var formDados = new FormData($(this)[0]); $.ajax({ url: 'fu...
asked by 15.07.2016 / 21:48
1
answer

Problems with calculations with jquery.maskMoney

I have a javascript that makes the perfect calculation between 3 inputs. Being them. 1- COST, you get the cost of a product 2- SALE, receive the sales price, and automatically calculate the profit margin 3% PROFIT, receive the profit and auto...
asked by 15.07.2016 / 22:00