Posts by Alisson Hoepers • 387 points
31 posts
-
0
votes1
answer34
viewsA: Problems with php variables in HTML <span>
If you put it like that maybe it’s a solution(I’m not sure) print "<div style='position:absolute;top:3.66in;left:1.73in;width:5.58in;line-height:0.20in;'></span><span…
-
0
votes2
answers38
viewsA: How to add an iframe via JS?
<div id="conteudo"></div> <script type="text/javascript"> document.getElementById("conteudo").innerHTML = '<iframe…
-
-1
votes1
answer527
viewsQ: How to popular a list to DTO more simply
To show the list of a register in my system, I populate the query in a DTO as below. My question is: There is a simpler way to popular the query in the DTO list? public List<ObjetoDTO>…
-
0
votes0
answers152
viewsQ: @Stateless on CDI project
Person, I have the following structure in my project (CDI): BEAN: @Named @SessionScoped public class ClienteMB extends BaseAbstractMB<Cliente, ClienteDTO> implements Serializable { @Inject…
-
2
votes1
answer111
viewsQ: Difference of Session in Java
What’s the difference of javax.enterprise.context.SessionScoped and javax.faces.bean.SessionScoped? Can anyone explain?
-
1
votes1
answer184
viewsQ: Sending e-mail with mail function
I have a site on the localweb, and the first question is: can I send email without authentication? Good by the way I think not, because despite appearing written "Your email was sent successfully!"…
-
2
votes1
answer459
viewsA: Field read HTML tags in JSF
I managed to solve using the escape in a field h:outputText. Ex: <h:outputText value="#{beanMB.cliente.descricao}" escape="false"/> It also works with the p:outpuLabel Ex: <p:outputLabel…
-
1
votes1
answer459
viewsQ: Field read HTML tags in JSF
I would like in my field that I will add the text and send to the database, add for example an ex link: <a href="http://www.globo.com/" ></a>, however, when printing on the screen,…
-
1
votes1
answer3471
viewsQ: Javascript POST Request
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.post demo</title> <script…
-
0
votes1
answer105
viewsQ: I can’t get the phone number out of a phone book
I’m not getting the phone number to add to my list, someone knows? public void pegarContatos() { Uri agenda = ContactsContract.Contacts.CONTENT_URI; Cursor cursor =…
-
1
votes2
answers1650
viewsQ: Bootstrap menu does not open submenu
Why don’t you open the submenu in this menu I implemented, I can’t find the error. Anyone knows? Bootstrap v3.3.7 jQuery v3.1.1 <!DOCTYPE html> <html> <head>…
bootstrap-3asked Alisson Hoepers 387 -
1
votes1
answer363
viewsQ: Force error return in ajax
For example when entering the client (in PHP) validate if age is above 18, before inserting, validate with a condition, and if you enter return an error, which in ajax, could be type: success:…
-
0
votes2
answers1304
viewsQ: Alert bootstrap in ajax call
I have an ajax that deletes an image, after the deletion, I would like the page to give a Reload and show a message of "Deleted Successfully!" with Alert boostratp. I’ve searched the forums and…
-
1
votes1
answer1263
viewsQ: Bootstrap File Input Plugin
Has anyone ever used this Bootstrap File Input Plugin with PHP? That is, making image insert in the database? I’m having difficulty taking the files from the "plugin" and not from the input file, to…
-
-1
votes1
answer36
viewsQ: Collapse menu on desktop
I followed as in this example http://www.bootply.com/122826 But on the page my result was:…
-
3
votes1
answer430
viewsQ: Bootstrap libs declaration
I have declared bootstrap libs in the code so: My error is on the page, that when you click on the menu icon, it does not expand Behold: Any suggestions? <!DOCTYPE html> <html>…
-
3
votes2
answers2076
viewsQ: Curl - Consuming webservice with PHP
I have the following code: $url_data = "http://localhost:8080/sistema/webservice/agenda/consultarHorariosDisponiveis"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:…
-
0
votes1
answer43
viewsQ: Receive notification from google drive
Is it possible to set up google drive for my client to receive an email when the drive goes one day without sharing any files? And I’m looking for how to integrate the drive in my system with PHP,…
-
0
votes1
answer955
viewsQ: Nav-tabs bootstrap by setting active in the URL
I can activate Nav-tab through the url, the #Value activates Nav-tab Value. Example: Or when I click on a tab, the url is filled with #listReserva. Any suggestions?…
-
0
votes2
answers270
viewsQ: Convert bank date to AJAX
I would like to convert the bank coming date (2012-02-10) to Brazilian standard (10/02/2012) in AJAX Success, example: $.ajax({ type: 'POST', dataType: 'json', url: "crud/consulta.php", data: dados,…
-
2
votes2
answers405
viewsQ: NOT EXISTS in update?
I have the following SQL: insert into teste (id,nome) select 2,'João' from dual where not exists(select * from teste where nome = 'João') Would you like to do the same with update? Is there any way?…
-
0
votes1
answer1786
viewsQ: Return PHP array in JSON in AJAX
I have the following code: function atualizaPainelQtdeReservas(){ var dataFiltro = $(".dataFiltro").val(); $.ajax({ url: "crud/painelQuantidadeReservas.php", dataType: 'html', data:…
-
-4
votes1
answer52
viewsQ: Call PHP function when entering the page
Calling a PHP function when user enters the page, some example?
phpasked Alisson Hoepers 387 -
0
votes1
answer608
viewsQ: No way to keep input data after Ubmit?
I wanted to keep the form data, after giving a Submit on the page. There is no way even?
-
3
votes2
answers1288
viewsA: Go back to page and update data
I entered the solution in another forum, follow the link Solution <script type='text/javascript'> (function() { if( window.localStorage ) { if( !localStorage.getItem( 'firstLoad' ) ) {…
-
1
votes2
answers1288
viewsQ: Go back to page and update data
I have a screen that lists my products. To register a new product, open another screen to enter the data and so register, on this same screen I have a back button, in it I have the code…
-
-2
votes1
answer187
viewsQ: Sortby in JSF, brief explanation of what he does?
Could someone give an explanation as to the function of sortBy in the JSF?
-
1
votes1
answer10981
viewsQ: Return the day of the week in Javascript
I have two codes to return the day of the week, but the first returns undefined, and the second returns the wrong day, for example on 22/05/2016 returns Wednesday, and the correct would be Sunday.…
-
1
votes1
answer1079
viewsQ: Problem in modal bootstrap form
Is there a restriction to bootstrap modal form? When I put the form inside the modal, I do not receive the Ajax Alert, however, if I take the form from inside the modal, the data passes and I…
-
0
votes3
answers555
viewsQ: No Return Json to Ajax
I don’t get Json feedback in Ajax. Any idea what it might be? Ajax.js $.ajax({ type: 'POST', dataType: 'json', url: "crud/insere.php", data: dados, success: function(data) { var objeto =…
-
0
votes1
answer76
viewsQ: I don’t get Json return in Ajax with PHP
can’t get out of place, what’s wrong? I don’t get the feedback from Json in Ajax. register Customer.php Ajax.js $.ajax({ type: 'POST', dataType: 'json', url: "crud/insere.php", data: dados, success:…