Posts by Felipe Duarte • 6,284 points
276 posts
-
1
votes1
answer144
viewsA: Upload files and inputs of any type submitted with ajax
Just take the Ubmit event from the form and send it through the 'serialize()' method, example... <script> $(document).ready(function(){ $( "#form-add-post" ).submit(function( event ) {…
-
0
votes2
answers947
viewsA: How to manipulate Divs with different CSS rules?
depends a lot on the properties of the CSS applied in the project, it may be that they do not fit in a new structure, but to try to accommodate it in a fixed container with flex-box, example...…
htmlanswered Felipe Duarte 6,284 -
5
votes2
answers760
viewsA: How to hide half a piece of content
One can do this with same css, an example is to use normal formatting with overflow:Hidden for horizontal and a flex-box to do this vertically, example... .container{ border: 1px black solid; width:…
-
1
votes1
answer475
viewsA: Div breaking when label content is too big
In html adds an auxiliary div to the container of the blocks and uses flex-box as Avia said, follows below the result <div class="divRelato" style="background-color: #eee"> <div…
-
3
votes1
answer50
viewsQ: Open new screen with clicked user options
I have a listview and in it I put all the users of the bank, I use a adapterView to get the position and the id, but I do not know how I will open a new screen for the advanced options for each…
-
2
votes1
answer35
viewsQ: Is it possible to store the tmp_name of a file in cookies?
I have the following code $allowed = array('png', 'jpg', 'gif','zip'); if(isset($_FILES['upl']) && $_FILES['upl']['error'] == 0){ $extension = pathinfo($_FILES['upl']['name'],…
-
3
votes1
answer116
viewsQ: Mainactivity does not find activity_main
I try to call the components of my activity_main and he does not think, what can be wrong?…
androidasked Felipe Duarte 6,284 -
2
votes1
answer1902
viewsA: how to pass an input value with ajax and receive in php with the post method?
You must take the field and send it to the page, but you can send it dynamically or with a ready form Let’s say you have a form ready just store it in a variable and launch the request with the…
-
6
votes2
answers635
viewsQ: How to know the key of the 3 greatest results array?
have this array $qtd = array( 'acao' => $acao, 'aventura' => $aventura, 'comedia' => $comedia, 'drama' => $drama, 'faroeste' => $faroeste, 'ficcao' => $ficcao, 'suspense' =>…
-
0
votes1
answer70
viewsQ: Ajax returning repeated data
Whenever I use Ajax to return a database result it stores this result by making a sort of queue in the next requests, returning in other queries old data next to the current ones, example...…
-
0
votes1
answer424
viewsQ: Tag Form closes alone
When I send this html code via ajax it displays correctly, but closes the Form tag right after opening it, is there another way to do this? or there is some syntax error. $FormUserCad = '<div…
-
0
votes2
answers72
viewsA: Because this HTML tag does not show the link, only when I shoot the style="display: None;"
display: None; is the css concealer the style property is only to add the style directly into the element
htmlanswered Felipe Duarte 6,284 -
0
votes1
answer27
viewsQ: Error returning data from JS array
I need to assign the attributes to the object relatively, without knowing how many parameters will come, so it is not returning results, there is another method? var menu =…
-
0
votes2
answers630
viewsA: Allow multiple requests from the same PHP user
I would not decide to put some action while loading the requests? $.ajax({ type : 'POST', url : 'suaPagina.php', data : data, dataType: 'json', beforeSend: function() { $(".item").html(''); //<--…
-
1
votes1
answer46
viewsA: Upload data from a query to a lightbox
You will need to use ajax with the creation of interactive forms for the query for example in the column where you generate the name, you also generate the id, or other identifier attribute within…
-
4
votes1
answer151
viewsQ: Problems to display cookies
I have a Cookie set with the name 68 and value 68, it appears in the settings of cookies in the browser, but in pages it works and in others it simply does not exist $id_imovel =…
-
0
votes3
answers355
viewsA: Adjustable div with css
Try using measures relative to float: left; to get a sense of the fit, for example. on a 100% Row there are 6 div s 50%; they received float: left soon fit but one remained with the right float to…
cssanswered Felipe Duarte 6,284 -
1
votes1
answer66
viewsA: Code or script "Loading..."
can be done with ajax when loading requests $('document').ready(function(){ $("#btn-login").click(function(){ var data = $("#login-form").serialize(); $.ajax({ type : 'POST', url :…
scriptanswered Felipe Duarte 6,284 -
0
votes2
answers39
viewsA: Filter result by date
WHERE `Id_produto` = 3418 AND (`data_venda` BETWEEN 2015-02-23 AND 2015-02-26); would not solve?
mysqlanswered Felipe Duarte 6,284 -
2
votes2
answers600
viewsA: click on a button and appear the time within a div
The action can only be done with Javascript the code is like this <div id="recebeHora"> Hora da Entrada </div><br> <button onclick="pegaData()" >Entrar</button>…
html5answered Felipe Duarte 6,284 -
2
votes1
answer1136
viewsA: How to adjust the entire screen according to the resolution of the monitor?
Comparing the images just need to set the height of the main Row in each table of image B row { height: numero+vw; } "vw" is a relative property of CSS that fits with height so the layout will…
-
1
votes1
answer86
viewsA: PHP + HTML form with select Restrictive
You will need to use javascript or Jquery to make it easier, with PHP you would have to switch pages for each select. First you must create the 3 select`s on the page After this hide the 2 hours…
-
1
votes1
answer58
viewsA: Error redirecting to another page while doing Submit
Check that the variable was created before setting the variable for example. session_start(); $vlremp=(isset($_POST['selemp'])) ? $_POST['selemp'] : ''; $_SESSION['selemp'] =…
phpanswered Felipe Duarte 6,284 -
0
votes2
answers617
viewsA: I have the status and city ID, and now what?
Confusing question, the ideal SELECT for this would be: "SELECT tb_estado.uf, tb_cidade.cidade from tb_estado, tb_cidade where tb_cidade.id_estado_fk = tb_estado.id"; then you add whatever you want.…
-
0
votes1
answer350
viewsA: PDO PHP: How to make a logged-in user delete their account?
<?php session_start(); if(isset($_POST["button"])){ $hostname='localhost'; $username='root'; $password=''; $user = $_SESSION['id']; try { …
-
-3
votes1
answer129
viewsQ: syntax error, Unexpected 'if' (T_IF)
What’s the mistake? $sql = "SELECT item1, item2, item3 FROM tab_exemplo WHERE" if (isset($item3)) {echo 'quartos LIKE :A';} if (isset($item2) || isset($item1) || isset($item4)){echo 'AND'} if…