Posts by Renan Rodrigues • 3,709 points
283 posts
-
2
votes2
answers3477
viewsA: Applying licenses to Github
Our friend in the previous answer said that the GitHub Just by putting your project, you already accept the term of being a collaborative project. To solve this there are other repositories, there…
-
3
votes2
answers1633
viewsQ: Loop into function calling itself
I need to create a purposeful loop to check if a variable has reached the desired value, the idea is to create a function that inside it will have a if, which turns out to be cont == 4 in case 4 is…
-
3
votes2
answers801
viewsA: Taking text from different inputs
The error was something grotesque, the problem was in the console.log console.log(dtHora+","+local+",",+local_outro+",",+palavra+",",+palavra_outro+",",+…
-
1
votes2
answers801
viewsQ: Taking text from different inputs
I need to get different text inputs, already tried and right for some, below a list of what worked. lbl_DteHora_Reu slc_Local_Reu slc_Palavra_Reu slc_QuebraGelo_Reu slc_Louvor_Reu HTML: <label…
-
0
votes0
answers33
viewsQ: Problem side menu jquery
I’m having trouble closing the side menu on intelXDK, I use JQuery to make the opening and closing but the problem is when I close, because it does not maintain the margin of the rectangle I…
-
3
votes3
answers3091
viewsQ: Ordering select in alfábetica order with jQuery
I need to order a select alphabetically. I tried to use this function I found on the internet function ordenarSelect(){ f$(".slc_Reuniao").html($("option", $(".slc_Reuniao")).sort(function(a,b){…
-
-1
votes5
answers1153
viewsA: If the image is large vertically, height: 100%, if it is large horizontally, width: 100%?
To solve your problem you should take the image size by Javascript and make a comparison between width and heigth. In our example, we will use the tag First we get the size by the jQuerey: Largura =…
-
0
votes1
answer127
viewsA: Building Dynamic Data with Javascript
All I had to do was add one so it carries everything. The error occurred because the classes were in memory, and when recharged it remained only one, doing one, it carries all the classes at once.…
-
0
votes1
answer127
viewsQ: Building Dynamic Data with Javascript
I am working in a hybrid application, I am using HTML5 with Java Script, my idea is when the comrade login with his account, the application goes on the server and searches everything related to…
-
0
votes1
answer131
viewsQ: Indexeddb does not connect on Android 4.2
I am working on the Intelxdk IDE, and I use Indexeddb to persist some files. By emulating the project in the IDE, everything works perfect, it makes the connection, it brings all the data,…
-
1
votes2
answers224
viewsA: Doubt about Indexeddb
The js stayed this way: bd = db.transaction("tbl_PESSOA_CELULA").objectStore("tbl_PESSOA_CELULA"), singleKeyRange = IDBKeyRange.only(w_codigo_turma); index = bd.index("COD_IDENT_TURMA");…
-
1
votes2
answers224
viewsQ: Doubt about Indexeddb
I’m needing to do a many-to-many table on Indexeddb, where I have People Classes and People Classes, one can participate in several classes, and several classes can have several students, so I…
-
2
votes2
answers88
viewsQ: Doubt LEFT JOIN SQL
I need to do a query, where I inform a person code and sql returns me all the people who are within that group that is the person to whom I typed the code. Example: I enter code '1', The code refers…
sqlasked Renan Rodrigues 3,709 -
1
votes1
answer61
viewsA: Error using an object in the session
The error happens by not having include the class file in the document, the solution was very simple just add: global $suc; include 'suc.php' On the page where I use the class in the session. No…
phpanswered Renan Rodrigues 3,709 -
1
votes1
answer61
viewsQ: Error using an object in the session
Galera is giving a strange error in my code, there is the value in the session but it informs this message. [Wed Sep 02 13:55:17 2015] [error] [client 192.168.1.105] PHP Fatal error: main()…
phpasked Renan Rodrigues 3,709 -
1
votes0
answers83
viewsQ: Error updating Indexeddb version
I’m having trouble updating the version of Indexeddb, it presents the following errors. Uncaught Constrainterror: Failed to execute 'createObjectStore' on 'Idbdatabase': An Object store with the…
-
-1
votes1
answer4734
viewsQ: SQLSTATE[HY093]: Invalid Parameter number: Parameter was not defined
0 /opt/lampp/htdocs/Renan/conexion.php(53): Pdostatement->execute(Array) 1 /opt/lampp/htdocs/Renan/conexion.php(72): Conexaodatabase->execute(Object(Pdostatement), Array) 2…
-
0
votes4
answers2257
viewsA: Check if user is logged in
Raphael just check the section variable, if there is any session with the validated ID, it allows access when it does not redirect. As we know the best and safest way to transfer information between…
-
4
votes2
answers114
viewsQ: Insert Mysql PDO
Well, I need to do an insert and I use PHP OO, but how do I do this? According to my code is registering, but is not working perfect. I’m doing something wrong ? Do not give any error message, just…
-
4
votes2
answers6065
viewsQ: Counting lines reached PDO
I’m doing a query and need to count the number of returned lines, I’m not usually used to doing this in PDO, follow my code below. $sqlCODCEL = $conn->prepare("SELECT * FROM tbl_CELULAS WHERE…
-
1
votes2
answers704
viewsQ: Sending json files to server
Well I’m making an application and it needs to register a certain person, this data I need to send via json and receive what happened. ajax.js /* button #btn_REGISTRAR */ $(document).on("click",…
-
0
votes1
answer263
viewsA: Change position of a point in Google maps
<script type="text/javascript"> //variaveis globais. var map; var marker; // Resultado para quando conseguir capturar a posição GPS... var fnCapturar = function(position){ // Gravar dados da…
google-mapsanswered Renan Rodrigues 3,709 -
1
votes1
answer263
viewsQ: Change position of a point in Google maps
Good need to change the position of a maps without creating a new point. I just need to update the point. Code produced: <script type="text/javascript"> //variaveis globais. var map; var…
google-mapsasked Renan Rodrigues 3,709 -
2
votes1
answer116
viewsQ: Intel XDK + SVN(Subversion)
I need to control the version of my code on Intel XDK, I know the SVN, would like to use it on intel, or have another way to do with another type of program. I need a team to work on the project and…
-
0
votes1
answer202
viewsQ: Doubts Intel XDK
Well I need to identify if the Intel XDK language has features where it runs without using the internet ? Or all content to view and use is required internet connection ? The reason I need to create…
intel-xdkasked Renan Rodrigues 3,709 -
2
votes1
answer244
viewsQ: Is there a session variable in Json [web service]?
Well, the mini world of my project is as follows:: I am creating an application, where I will consume a database by the json method, where I validate the logged-in user, however when I am asked to…
-
0
votes1
answer1068
viewsQ: Error save field type data null, not set field as notnull
I am trying to save a possible "client" however I am not defining for him an admission date field, only that when I do it the field is not set and still gives error. Follow my PHP code, the database…
-
0
votes0
answers29
viewsQ: Mysql PHP transaction concept
You can use the concept of programming transaction in PHP, because in java you have this possibility. How to do this in PHP ? Example commit, rolback...…
-
0
votes2
answers49
viewsQ: Comparing variables in a query
Good need to create an if to check whether the field coming from the POST is empty or not, if it is should set null, if not I Seto the value that came in the variable. $query2 = "INSERT INTO…
-
1
votes1
answer313
viewsQ: PHP Insert error
I am having a problem when entering data in the database, I have already checked if there is any field where it is not accepting null value, however everything is ok, when appearing the error is…
-
2
votes1
answer2035
viewsQ: Error importing Maven project into Eclipse: No Marketplace Entries found to Handle
I am new to Javaweb programming and when installing the eclipse and importing my project created by Maven, accuses the error below: No Marketplace Entries found to Handle Maven-antrun-plugin:1.8:run…
-
0
votes1
answer268
viewsQ: Deletion with MYSQL reference integrity
The world of design is as follows: I have a client, where I register for him, errands, news, upload photos, where there are schedules too. Only when I’m about to delete it, I need to delete…
mysqlasked Renan Rodrigues 3,709 -
0
votes3
answers743
viewsQ: Confirmation for deletion
I have the following problem, I need to validate the deletion of a field, and I am doing this via modal of the globe bootstrap. However the field comes from a table and accurate enough in the modal…
-
1
votes2
answers108
viewsQ: Click Subitem menu brings up level id
I’m making a menu where when I click on it I send a code to a page, this page it redirects to the page that was set with that id. Up to this point it’s working only when I click on the submenu, it…
-
1
votes4
answers791
viewsQ: Taking data via ajax
I need to get content from a div. I’m actually building a dynamic menu, where I define <li class="menuLi"> <div class="acao">-3</div> <div class="desc">Inicio</div>…
-
1
votes1
answer1245
viewsA: Setting input file field value
For safety reasons it is not possible to define a value="" to the input. The solution I found is to make a query and bring all images pertaining to this publication and put on tag <img/> and…
phpanswered Renan Rodrigues 3,709 -
2
votes1
answer1245
viewsQ: Setting input file field value
The world of the project is: I register where I can upload the file, when saving the whole project I register the post, and the image in 3 types of tables, the first table tbl_PUBLICACOES, except…
phpasked Renan Rodrigues 3,709 -
2
votes3
answers1750
viewsQ: Traverse string with PHP
I need to traverse a string and within this string will come tags from imagens I need to select the first one. I’m using the strstr() but it’s not working. $img = strstr($texto, '%img'); echo $img;…
phpasked Renan Rodrigues 3,709 -
1
votes1
answer576
viewsQ: Method . jQuery clone()
I need it every time I click the div Mais, clone the full content of it and put it right below. However it’s not working, could you tell me what I’m missing ? $(document).ready(function () {…
-
2
votes0
answers456
viewsQ: Adding multiple javascript images
I’m adding images by javascript, only before I literally do the upload of the file I show in a thumbnail the preview of this image, so far everything goes exactly well, but I want that when I click…
-
1
votes1
answer311
viewsQ: wysiwyg won’t let you type
I’m using the wysiwyg to create a field with rich text but he’s not accepting that I type. What I’m doing wrong? Setando Javascript: <script> $(document).ready(function(){…
-
1
votes1
answer36
viewsQ: Breaking up query fields
I’m doing a search with mysql, where the return is a field DATE, I need to dismember this field in DAY, MONTH, HOUR, SECONDS and put each one within a variable, I’m not able to do this, I tried to…
-
2
votes4
answers3842
viewsA: Link in tr of table
The solution is: Add $(document).ready(function(){ $('table tr').click(function(){ window.location = $(this).data('url'); returnfalse; }); }); and at the time of calling simply add tbem to tr the…
-
1
votes4
answers3842
viewsQ: Link in tr of table
Well, I need every line tr of my table be a link for when the person click redirects to the related page. I tried to do it this way: while($linha = mysql_fetch_array($query)) { $timestamp =…
-
0
votes1
answer147
viewsA: Taking Off Scroll Bar Tabs
The solution was in the file bootstrap.css, had a line of code: .tab-content { overflow: auto; } so I passed her to: .tab-content { overflow: none; } Thank you to all who will help me.…
-
0
votes1
answer147
viewsQ: Taking Off Scroll Bar Tabs
I need to remove the scroll bar that is in tabs, it generated a scroll bar and I want it to stay static how to do ? I tried to use overflow-y:hidden but it didn’t work. <ul id="tabss"…
-
2
votes1
answer305
viewsQ: Tabs bootstrap don’t come back
I did the tabs in the bootstrap but they go once to others more after it was clicked on each she does not permission to click again. <div id="tabss" style="text-align: center;">…
-
0
votes2
answers1476
viewsA: How to pin a footer to the bottom even with a lot of content
Manage to solve the problem, I used overflow the code is as follows:. Index <div id="wrap"> <div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> <?php…
-
1
votes2
answers1476
viewsQ: How to pin a footer to the bottom even with a lot of content
I’m trying to dynamically add content to a page, but when I add too much content, the footer is fixed at the initial height of the screen, and the text is on top. I need it to drop dynamically when…
-
2
votes1
answer84
viewsQ: Dynamically aligning image
I’m doing an area of the site where I seek to dynamically align the images that will come from possible "customers", the problem that is happening is that I do not know how to break the line because…