Questions tagged as 'javascript'

1
answer

JSF + Primefaces update component when exchanging pagination

<p:dataList paginator="true" value="{bean.lista}" var="lista"> </:dataList> <h:outputText value="qualquerCoisa" id="teste"/> How do I update the outputText 'test' every time the dataList page...
asked by 13.07.2016 / 00:39
1
answer

Click and change texts within the element

Given a search I found contenteditable , but I wanted to know if there is any other way to do this, by looking at some website builders who use this type of thing, I do not think any used contenteditable , since they do not I saw the...
asked by 07.06.2016 / 00:13
1
answer

How to get errors in AJAX requests?

I need to get errors in sending the request and treat them in the application, briefly the function works this way. link I have not put the same one that is in my application to simplify the resolution of the problem, the difference is t...
asked by 12.07.2016 / 02:01
1
answer

How do I get each value of a jquery object? [closed]

My result array: { "status": "accept", "info": "", "message": { "row": { "1": { "id": "1677", "state": "AC", "stateid": null, "address": "RUA MARIA LUCIOLA DA SILVA", "addres...
asked by 18.07.2016 / 23:09
2
answers

Return Multiple values with PHP jQuery

I have a function that returns me the values of a Grid in a Modal I call the function it does a Select in PHP and it returns me the data inside a Modal. But in addition to bringing this data I need to bring image names that are in another table...
asked by 18.07.2016 / 20:45
2
answers

Regex to get a parenthesis and the string inside

I need to remove a parenthesis with what's inside, example I'm trying to extract this parenthesis: "Director position." Reason: I have an old project that has an ajax function that loads a button, which has a js function inside called "def...
asked by 19.07.2016 / 16:09
1
answer

Re-char the php function, but it is returning null on the second call

What is happening I have this function in pgp that verifies if the url already exists in the database if it already exists it simply adds a number in the front, for this I call the function until it finds one that does not exist example if my-na...
asked by 19.07.2016 / 16:19
2
answers

How to detect a bot

I'm helping a friend develop a system of visits, such as Grana Network , eg Grana Social. It turns out that we will make payments for actual visits on the page, and as we know there are malicious people who will try to circumvent the system to...
asked by 30.05.2016 / 21:29
1
answer

Show items according to click

In my view I have 5 partials that must be rendered. I needed that clicking one is shown and the others are hidden ... It's in this structure: <ul class="nav nav-tabs"> <li class="active"><a href="#cliente">Clie...
asked by 30.05.2016 / 04:28
2
answers

get the values of the combo fields before recording

I have an html table with N values and I would like to get the values of the fields (combo), property name = 'caption []' before writing, just to display to the user the fields that it filled in.     
asked by 30.05.2016 / 14:31