Posts by Igor Mello • 1,066 points
33 posts
-
1
votes2
answers1453
viewsQ: How to detect scroll at the beginning and end of a div with jQuery
I need to detect when the scroll page (whether it is the mouse scroll or the browser sidebar) go through a certain div, and identify the beginning and the end of it, because I need to apply an…
-
3
votes1
answer269
viewsA: HTML with Laravel 5.2
Correct is to use the structure of MVC going by Controller In his View: <a href="pagina">Ir</a> ... In the archive Routes.php: Route::get('pagina', 'SeuController@redireciona'); And in…
-
1
votes1
answer402
viewsA: Request application/x-www-form-urlencoded using Volley
The JsonObjectRequest does not invoke the method getParams! I advise you to use the StringRequest in his place staying like this: StringRequest jReq = new StringRequest(Request.Method.POST, url, new…
-
0
votes2
answers53
viewsA: Error in Debugresources process
The following tags <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> of…
-
3
votes1
answer119
viewsA: Error: in Builder cannot be Applied
Just change the following line: AlertDialog.Builder dlg = new AlertDialog.Builder(this); for: AlertDialog.Builder dlg = new AlertDialog.Builder(NomeDaClasse.this); for only this is not mentioning…
-
1
votes2
answers283
viewsA: How to launch/stop via jquery a css animation (which is being triggered by css Hover)
Example here on Jsfiddle. In the css I modified this: .hvr-ripple-out:hover:before, .hvr-ripple-out:focus:before, .hvr-ripple-out:active:before { -webkit-animation-name: hvr-ripple-out;…
-
2
votes4
answers437
viewsA: Error checking IF with array in PHP
The problem is in logic. You are "printing" the two results by the fact of your array be multidimensional, then for each array intern he tests the if/else even though the value has already been…
-
4
votes2
answers4889
viewsA: Laravel - How to recover the values of a form and redirect using the Route class?
Recovers the data on Controller! In his View on the form would look like this: <form action="/action_page" method="post"> ... In the archive Routes.php: Route::post('/action_page',…
-
7
votes1
answer903
viewsA: Android studio generating two apps the same way
Change your Manifest <activity android:name=".Splash" android:label="Splash"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category…
-
1
votes1
answer370
viewsA: Background function - Android
Possible solution would be to use the Package Class java.util: Timer. With this class it is possible to schedule tasks or for a given task to be executed in certain time intervals or until schedule…
-
0
votes2
answers35
viewsA: List the answers according to the number of questions
You need 2 fors what you already have to iterate the question and another internally to iterate the answer options! $array = array("A","B","C","D","E"); for($contar = 1; $contar <= 10;…
phpanswered Igor Mello 1,066 -
0
votes1
answer480
viewsA: View Page Android - grab list of images within the App and set on the View page.
Possible solution would be to use the objeto BitmapDrawable and instill him with his array of String of filepath. This objeto creates a drawable from a path and decodes the Bitmap. BitmapDrawable bd…
-
1
votes1
answer2484
viewsA: Print data from a PHP object array
What’s missing for you is to iterate your array $retornoEvento. For this use a foreach which provides an easy way to do this: foreach ($retornoEvento as $obj) { echo $obj->getId(); echo…
-
2
votes2
answers2379
viewsA: Fixed side vertical menu with limited scrolling
Possible solution! I added an element nav and in it I applied some css directives float: left; // Float element on the left height: 100vh; // vh is a unit of measure! In it you take 100% of the…
-
0
votes2
answers81
viewsA: View data from a database in modals
Why always be the first line, simple yours buttom does not create a reference for each modal. Solution? Create a variable to iterate to each occurrence of while. In the attribute data-target of your…
-
1
votes2
answers369
viewsA: Background-color does not track content
Your "background" of div father does not accompany the div's daughters by the fact that you have a fixed height on her, in case the height:240px; take it and accompany. And to align horizontally the…
-
0
votes1
answer44
viewsA: How do I add article block to my Section tag?
Just give a float: right; in the internal elements of div #bloco-coloridos, still added a width: 33.33% that divides exactly the same space into three parts! .bloco-coloridos > div{ width:…
-
1
votes3
answers47
viewsA: Second button replacing contents of the first
Just add inside the function of done in ajax before assigning the return in the method .html(...); add the following line: In the ajax of click sp: $("#matriz").empty(); //remove todos os nós filhos…
-
4
votes2
answers1136
viewsA: Update echo on a page every minute
If you want to do with Jquery do so: $(function() { var data_hora = document.getElementById("data_hora"); window.setInterval(function(){ var now = new Date data_hora.innerHTML = "BR, " +…
-
0
votes2
answers42
viewsA: Reset disturbing to center
A possible solution is to take the margin: 0 auto; of the element .menuNav and in its ul .menuUlTopo add margin: 0 auto; and width: 1030px;…
css3answered Igor Mello 1,066 -
4
votes1
answer397
viewsA: Global variable data getting lost Android
Suggestion to use instead of Singleton use the class SharedPreferences android. Example of use: 1. Name of your preferences public static final String PREFS_NAME = "YourPreferences"; 2. Restores the…
-
3
votes2
answers139
viewsA: Jquery Show does not work in td
Your mistake is here: $("#show").chick(function(){ "chick" the correct is click. $(".item2").hide(); $("#show").click(function(){ $(".item2").show(); }); <script…
-
3
votes1
answer271
viewsA: Menu effect inside the table
I did it this way: I just changed your dial that was taking the document for $("tr") which takes any row from the table and added a ternary operator to test which button of mouse was clicked and…
-
4
votes2
answers3920
viewsA: Website is not getting responsive with Bootstrap
Missing you add in the head of the site the following line: <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
1
votes2
answers3878
viewsA: Catching first and last date of the previous month
You don’t need any external library! Here’s a possible solution public static voi main(String[] args){ Calendar c = Calendar.getInstance(); Date d = new Date(); SimpleDateFormat sdf = new…
-
0
votes2
answers820
viewsA: How to select items from a list and fill another div with selected items using Jquery?
I did as follows, I added a click event to the list elements $(".ui-widget-content") and added a <ol class="grupo-alunos"></ol> in the div of class="lista-grupo". Jquery $(function() {…
-
1
votes1
answer249
viewsA: Problem when clicking the button, call ajax
You have to click 2 times to appear because when the page is loaded the condition if($("#clickvent").is(":visible")) already gives true then it executes the hide() for only the next click appear.…
-
2
votes1
answer71
viewsA: Adding Fields in the Body of a PHP Email
Only concatene as Strings: $message .= $nome . "\n"; $message .= $empresa . "\n"; $message .= $telefone;
phpanswered Igor Mello 1,066 -
3
votes2
answers1618
viewsA: How to use sharedpreferences as a class
My solution proposal for your class UnidadePreferida is: import android.content.SharedPreferences; puclic class UnidadePreferida { private SharedPreferences preferences; private…
-
2
votes2
answers526
viewsA: Contact Form Does Not Work PHP
To run the PHP mail function the minimum information for its operation is $to (to whom to send), $Subject (email subject) and $message (the message). In your example in HTML you do not have the…
-
1
votes3
answers3498
viewsA: I wish I had more than one bootstrap modal on the same page
To have more than one modal on the same page just have one ID for each! And so respectively call for them in each buttom in the attribute data-target="#myModal" and data-target="#myModal2".…
-
1
votes3
answers63
viewsA: Javascript send an account to an element
I recommend the function onkeyup which is executed after you release the top button of the input. On the line var x = Document.getElementById('cycle') you do not take the value of the input but the…
javascriptanswered Igor Mello 1,066 -
4
votes2
answers456
viewsA: Read an excerpt from a String
public static void main(String []args) throws ParseException { String preco = "R$ 20,00"; //função substring retorna uma nova string apartir do índice passado para ela. //a função trim retira…