Questions tagged as 'javascript'

1
answer

Best way to add a lot of HTML to the page via JS?

Well, I'm creating a small social network (one page) and I wanted to know how to add a lot of html to the page. I'll explain better: I have a div called timeline that serves as a container and within it in thesis is to be added another...
asked by 14.01.2016 / 17:17
1
answer

JqGrid, shows success in loading, but does not mount to Grid

I have grid on my site that I use JqGrid . What is happening is that when the data comes back from the request, they are formatted correctly because the JqGrid itself enters the loadComplete method, however, it does no...
asked by 21.01.2016 / 22:43
1
answer

How to pass list of a picklist (bootstrap) via POST (ajax)

Good morning, I do not know how to pass data from this component to my controller java. See picture: Forexample,IhavethesefieldsthatIpassbyrequestPOSTtomycontrollerandtheyworkOK,itarrivesatcontrollerjava:BoxApp.controller("Cadastro...
asked by 14.01.2016 / 12:16
1
answer

Show data from my site on other sites

I have a website where I want to make a widget available (or something). I want to do more or less how some sites do: They give a JS + div link to the user. It simply puts it on the site and the data appears. My site is PHP, I already managed...
asked by 19.01.2016 / 16:43
1
answer

Display message for validation of a form instead of alert

I am making a form that if the user leave the field name blank, display the message in the field, rather than an alert. document.write does not work with function through an event. I'm using innerHTML and textContent . Howev...
asked by 04.12.2015 / 13:19
1
answer

Show div with enlarged image when passing mouse on thumbnail

I have a div where the thumbnails of the images are shown and another div above with the text, eg: HowcanIdothatbyhoveringthemouseinthethumbnail(normalhovereffect)alargerdivappearsthatoverlapsthetextandshowstheimageofthelargerthumbnail(which...
asked by 04.12.2015 / 19:50
1
answer

Scroll is always at the base of a div

I'm automatically fetching information from a database, from which you create a scroll in a div. The problem is that I have to scroll down to follow the information that appears on the screen. How would I have the scroll scroll down automaticall...
asked by 04.12.2015 / 15:21
1
answer

Autocomplete of jQuery UI only works once

I'm working on a feature of a Rails application where we use a gem called Best in Place , which provides the possibility of inline editing attributes of a model. But there arose the need to use autocomplete of jQuery UI when the user is editing...
asked by 04.12.2015 / 13:03
1
answer

Change JSON file on the server

I have the following form: <form method="POST"> Title <input type="text" onchange="Function()"> X <input type="text" onchange="Function()"> Y <input type="text" onchange="Function()"> /* others fields */ &...
asked by 05.12.2015 / 00:39
1
answer

send the variable from javascript to php [duplicate]

I have this sum1 variable in javascript and would like to send it to php how can I do this? JS var sum1 = 0.0; $('.class_nao_pago').each(function() { sum1 += parseFloat($(this).text()); PHP echo $sum1     
asked by 28.01.2016 / 13:30