Posts by Renan Rodrigues • 3,709 points
283 posts
-
2
votes3
answers5297
viewsA: JDBC connection to Mysql
I was able to identify the problem, I was actually trying to connect to a server on my machine, in my question I used as a parameter the PHP, however the PHP it worked because the main is in the…
-
2
votes3
answers5297
viewsQ: JDBC connection to Mysql
I’m learning how to develop java and I’m trying to advance my studies to understand how to make a database connection, but there’s some problem that I’m not able to identify. Below the error written…
-
1
votes1
answer72
viewsQ: Problems with array.Sort()
I’m trying to sort an array but I’m having trouble, it’s only returning 0. I’m doing the following: Here I draw my array: arrayVelho.sort(compare); After I call the compare function which compares…
javascriptasked Renan Rodrigues 3,709 -
1
votes3
answers315
viewsQ: Syntaxerror: unterminated string literal JAVASCRIPT
I’m having trouble with this line from javascript, mount her dynamically taking data from PHP. fnc_eglise_ajaxGet('ajax/deletaPessoaVinculo.php?d=<?php echo…
-
5
votes1
answer188
viewsQ: Send date by $_GET
I need to send a date by $_GET but I am not succeeding, what is the method to make this passage ? The shipment is like this:…
-
3
votes1
answer177
viewsQ: Disabled field does not pass to $_POST
I have problems with the field that I disable if one of the options is checked, but when the field is as desabled it does not pass values to PHP. I would like to know how to check whether the value…
-
1
votes1
answer128
viewsQ: Pass GET parameter through AJAX to activate page
I need to make the redirect after doing some commands in php need to load an ajax. The link that sends to PHP page:…
-
0
votes0
answers54
viewsQ: Mysql conect error
I am trying to connect mysql but is giving error while connecting. Follow the error log: 22:40:11 [mysql] Error: MySQL shutdown unexpectedly. 22:40:11 [mysql] This may be due to a blocked port,…
mysqlasked Renan Rodrigues 3,709 -
1
votes1
answer708
viewsA: Problems with SCROLLTOP
To solve this problem we have to understand the principle of objects: the command $(this).offset() takes the position related to the field where the focus. If we just take him and then run the…
-
1
votes1
answer708
viewsQ: Problems with SCROLLTOP
I’m in trouble with scroll-top. The implemented function should take the input that I’ve been with focus is take you to the top with scroll-top, but works satisfactorily only for the first few…
-
0
votes2
answers52
viewsA: Classifying li in a div
In fact I had some questions of logic along with the response of our friend @Otto came to this resolution. Just min, reset variable value valor, Because when he walked by for the first time and…
-
3
votes2
answers52
viewsQ: Classifying li in a div
Folks I’m needing to alphabetically classify a div, use the following strategy, put in a div with display: none I have read them all, so after inserting all the html, I do the while for as long as…
-
9
votes3
answers61753
viewsQ: Remove a specific element from the javascript array
Well I’m needing to remove an element from the array by index, for example: arr = [1,2,3,4,5,6] When removing index element 3: arr = [1,2,3] It is necessary that he remove everything after the…
javascriptasked Renan Rodrigues 3,709 -
1
votes0
answers69
viewsQ: How to populate history in the Ionic framework
Well I need to know how to populate the history of ionic framework, of own window I know it’s like this: window.history.pushState({upage:sel}, sel, document.location.origin +…
-
0
votes0
answers58
viewsQ: Side-bar menu problems
I’m having trouble in my side-bar menu, because it is not allowing scrolling down the menu when the app installed on mobile. In the emulator it just allows me to scroll with the mouse ball (scroll).…
-
1
votes1
answer279
viewsQ: window.history.pushState
I’m using the function pushState to populate the history, until then all right, but he at the time to use the windows.history.back() can only return once. The function you add is the following:…
-
0
votes4
answers1102
viewsA: Catch Divs with certain class
I was able to develop what I wanted: $(document).on("click", ".selectedMensagem", function(evt){ var variavel = $(this).hasClass("selected"); $("#barraDeleteMensagem").show(); if(variavel){…
-
0
votes4
answers1102
viewsQ: Catch Divs with certain class
I need to make a system to delete messages, these messages are placed inside div’s, where I divide like html just below. As in the check box there is a location for the click, I separated a div that…
-
3
votes1
answer8210
viewsQ: window.history.back returning only one page
I have a problem with window.history.back(), for he is returning only one page. I use the following function: <script type="text/javascript" charset="utf-8"> // Wait for device API libraries…
-
5
votes1
answer10573
viewsQ: Check if a div is visible
I need to know which id of the visible div, I’m looking for on isVisible() but it’s not working, what should I do ? Problem: I have several Ivs that take count of the whole screen, but I only leave…
jqueryasked Renan Rodrigues 3,709 -
2
votes1
answer488
viewsA: Problems Ionic Framework
The solution to my problem was to adjust the angle module, in addition to initialize the function, with the final code being the following code: angular.module('ionic')…
ionicanswered Renan Rodrigues 3,709 -
0
votes1
answer488
viewsQ: Problems Ionic Framework
Well I’m having trouble with the back button, initially I thought the problem was in Ordova, but I identified that the problem is actually in Ionic, looking on the internet I found the following…
ionicasked Renan Rodrigues 3,709 -
0
votes1
answer172
viewsQ: Backbutton PHONEGAP
Help me with this one... I’m willing to do the job of backbutton, however I have tried some form and all make the application come out. emulate already working. I’ll tell you what: function onLoad()…
-
4
votes1
answer200
viewsQ: Problem with dynamic PDO UPDATE
I’m creating a CRUD dynamic in Pdo, where I receive several parameters within an array, and within that array there may be several other arrays. The problem is appears when I am mounting SQL. I…
-
1
votes1
answer36
viewsQ: Toggle_sidebar event
How to know if the toggle_sidebar is or is not activated ? I use this command to enable and disable: uib_sb.toggle_sidebar($(".uib_w_43"));
javascriptasked Renan Rodrigues 3,709 -
1
votes0
answers305
viewsQ: Pass parameter to a callback function
I need to pass a parameter to a callback function. Actually the idea is this: I search in the database members of a team, in case the table is PESSOA_EQUIPE And in this database there’s her code…
-
0
votes2
answers73
viewsA: Ordering object array by name
ORIGINAL ANSWER. See Working. var objeto = [ { data : new Date('11-30-2015'), nome: 'Marconi', telefone:'32486745425'}, { data : new Date('11-31-2015'), nome: 'Marcos', telefone:'32486745425'}, {…
javascriptanswered Renan Rodrigues 3,709 -
0
votes2
answers73
viewsQ: Ordering object array by name
Well I have an array of objects and I need to sort it by name. My array to follow: COD_IDENT_PESSO: "120151202162147" FLG_IDENT_PRESE: "M" FLG_STATU_PESSO: "A" TXT_NOMEX_PESSO: "Renan Rodrigues…
javascriptasked Renan Rodrigues 3,709 -
1
votes1
answer37
viewsQ: Hide PHP error log
I’m accessing a PHP application, I do it with ajax, but I want to have control of every error issued, that is, I do not want the php Return the error to me. I tried to use error_reporting(0);…
phpasked Renan Rodrigues 3,709 -
2
votes1
answer120
viewsQ: How to intercept the result of a query?
I need to test if the query made everything went well or if there was an error. I tried however I did not find anything that satisfies what I need. Example: I submitted an sql in the database, and…
-
4
votes1
answer11463
viewsQ: Error Object of class stdClass could not be converted to string
Well I have an 'X' object that one of its properties is a JSON. In this JSON contains the column name and the column value respectively. But I can have several 'X' objects, and so on. Today I’m…
-
4
votes1
answer1222
viewsQ: Field Primary key from int to bigint
Well I need to turn my primarykay fields from int to bigint, but it is giving a problem. Follow the code below: Executing SQL script in server ERROR: Error 1025: Error on rename of…
-
3
votes2
answers361
viewsQ: Error masking Javascript
Well I’m having problems with the javascript mask for the phone field, I’m developing mobile and I’m using the codes below. input code: <input type="text" name="telefone" id="telefone"…
javascriptasked Renan Rodrigues 3,709 -
10
votes4
answers8543
viewsQ: Ordering an array of objects by date
Well I have an array of objects and I need to sort the one closer to today to further away from today. For example today is day 24/11/2015 there I have in my array the dates: 30/11/2015 27/11/2015…
javascriptasked Renan Rodrigues 3,709 -
4
votes3
answers523
viewsQ: Get code from a li
I need to get the <li> complete at all checkbox marked. My code that is mounted dynamically is below: HTMLNovo = ' <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox"…
-
1
votes2
answers263
viewsQ: Taking ID of the upper click div
I need to get the ID of the DIV superior to what the button is, for example: <div id="1"> <button id="1"></button> </div> <div id="2"> <button…
-
2
votes4
answers810
viewsQ: Validate Javascript fields
I have several fields and others in display:none (In advance I notice that I have walked in the stack and I even found a similar question but I could not have the expected result.) I need to…
-
1
votes1
answer901
viewsQ: Stop settimeOut Javascript
Well I am doing a function to check certain iteration and if it passes x I pause the contactor, however it is not working, it continues to appear Alert window, follow my example below? function…
-
5
votes2
answers8546
viewsQ: How to set and pick objects saved in Javascript session
I’m wondering how to save an Array of objects in the session, and then how to recover them. Today I use the sessionStorage.setItem("pessoa", arrayPessoa); and sessionStorage.getItem("pessoa");, but…
javascriptasked Renan Rodrigues 3,709 -
0
votes1
answer62
viewsQ: How to make a Selectall checkbox
I need to create a checkbox if it is selected it will select all others and if it is not selected others must also be deselected. I tried to do something but it didn’t work. See:…
-
11
votes3
answers580
viewsQ: Problem with the input click
I’m developing a hybrid mobile application, using HTML5 and JS. I have the following problem: when I click, for example, on Nickname, it opens the part of Sex. However, it is a very strange…
-
2
votes1
answer1929
viewsQ: How to get the name of the last father div with parents?
I have a sequence of Ivs like the ones below. <div class="upage" id="id01"> <div class="main" id="id02"> <div class="main2" id="id03"> </div> </div> </div> I need…
jqueryasked Renan Rodrigues 3,709 -
1
votes3
answers1020
viewsQ: Scrolltop with the field that is in focus
I’m needing to know the px size of the input field with a focus on the top of the screen. To give a scrollTOP and the focus field stay at the top of the screen. The idea of the problem is as…
-
0
votes1
answer1447
viewsQ: Keyboard Cordova hides inputs
I’m developing a aplicativo hibrido I use Cordova plus HTML5 + jQuery and I’m having a problem. When I click on the text field to type something the automatic keyboard event is triggered and the…
-
1
votes1
answer383
viewsQ: How to add x icon at check-box
I need to add a X at the check-box that is not active, I can add when it is active the V. I’m using the íon Framework to assist me in styling. Follow the code of check: <li class="item…
-
0
votes2
answers1434
viewsQ: Get id of the marked ckeck box
I need you to get the id of the check box marked. I’m assembling the dynamically check the following way: <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox" data-…
-
1
votes3
answers15395
viewsQ: Google MAPS API location from the address
I have an address saved in the database, divided correctly and accurately from this address generate the latitude and longitude and besides this plot on the map a marked in the registered area.…
-
0
votes0
answers33
viewsQ: Search with key usage
I have a table that key is as autoIncrement, I need to search and pick up the line that identifies the code I pass. When searching for another part of the field works perfect. The research I’m…
indexeddbasked Renan Rodrigues 3,709 -
1
votes1
answer1020
viewsQ: Problem sending files to bitBucket
I am sending the commited files to the database, however it is not working, I am doing everything right but is giving the following message. git -c diff.mnemonicprefix=false -c core.quotepath=false…
-
1
votes2
answers66
viewsA: Why does the function return me an unexpected value?
The error happens because the function is testing an empty variable. To solve do the following. At the place where you called the function resFis(), do: resFiz($nFis); And in your job do function…