Posts by Rodrigo Luan • 385 points
15 posts
-
2
votes1
answer109
viewsQ: Open new tab in Firefox and Edge with JS
Due to the restriction that the browser makes the scripts internal rounds, asking for confirmation using the code: window.open() found the following way to remove this permission from the user: var…
-
1
votes2
answers546
viewsA: Mask in dynamically generated fields
Apply the mask after the dynamically generated fields. It is a possibility among others. $(document).ready(function(){ var linha = ''; for (var i = 0; i < 10; ++i) { linha = $('<div>', {…
-
1
votes3
answers803
viewsA: Populate array dynamically
If you make the correct array with the data coming from the database, it is to work like your example of the months. I made an example here more or less. $a = array('labels' => array('jav',…
phpanswered Rodrigo Luan 385 -
0
votes0
answers58
viewsQ: Android Cordova PHONEGAP
When I execute : phonegap create PushNotificationSample --id "com.pushapp" --name "PushNotificationApp" Creating a new cordova project. Before it was normal , but now I’m having this mistake and I…
apache-cordovaasked Rodrigo Luan 385 -
6
votes1
answer117
viewsQ: Regular expression to swap the variable pair in mysql in PHP file
Which expression can I use to exchange MYSQL function parameters, example: mysql_query($query,$db); mysql_query($db,$query); Why I look for mysql_query and change to mysqli_query after I can make…
regexasked Rodrigo Luan 385 -
2
votes2
answers2341
viewsA: Get name through user ID
Remember, a query does not auto-run and takes the database information. To do this you need to use the mysqli_fetch_array. mysqli_fetch_array will return a row corresponding to your query to the…
-
7
votes5
answers1513
viewsA: Skip Record within a while
Using the break command will actually break the loop. To continue normally use continue; That is to say.. while($pessoa = mysqli_fetch_object($query)){ if($pessoa->tipo == 2) continue; // não irá…
-
0
votes2
answers276
viewsQ: How to create dynamic variables in javascript inside a loop
I have the following code and I wanted to improve it. if(id == 1) if(myWindow1){ myWindow1.form_1.submit(); myWindow1 = ""; } if(id == 2) if(myWindow2){ myWindow2.form_2.submit(); myWindow2 = ""; }…
javascriptasked Rodrigo Luan 385 -
1
votes2
answers109
viewsA: Help me write this code correctly
Face what I always do and use HTML with PHP and not PHP with HTML, ie. <div class="titleebay"> <a rel="nofollow" href="<?= $product['link_produto'] ?>"><?= $product['nome']…
-
2
votes4
answers456
viewsQ: Take html from a created variable
I have a problem to concatenate variables that I have already created (I know .concat()) and all that. Problem: var input1 = $('input').attr({ type: 'hidden', value: 1 }); var input1_2 =…
-
2
votes2
answers429
viewsQ: Create dynamic variables in Javascript
When I’m in PHP and has dynamic variables, e.g.: nomeVariavel1,nomeVariavel2, nomeVariavel3, I use it as follows to place on the bench: $nomeVariavel = ${"nomeVarivavel".$contador} How can I do…
-
1
votes1
answer194
viewsQ: Jquery run a shortcut
I need to perform this screen minimize shortcut: Alt+shift+n Is there any way to perform this after a click on the button? $("#btnVoltar").click(function(){ var ALT = 18; var space = 32; var n = 78;…
jqueryasked Rodrigo Luan 385 -
-1
votes1
answer358
viewsQ: jquery function $.post or $.get
Instead of using ajax for feedback, I’m seeing the jQuery function $.post or $.get. But I can only return with an echo one column of the mysql table. ex. echo $conteudo['id']; With ajax playing the…
jqueryasked Rodrigo Luan 385 -
0
votes3
answers2316
viewsQ: C# Make Enter key jump to either textbox or combobox field
How can I do in a function, that when the person der enter , he jumps to the bottom field , which can be both a combobox and a textbox? I currently have this function , but it jumps to the last…
-
2
votes3
answers100
viewsQ: Search first name in mysql field before MYSQL space
I have to look for a date in a mysql field, but the guys had put it to save like this "2016-02-21 14:02:01" I just need the date from there , as I can check on select the date I want comparing to…
mysqlasked Rodrigo Luan 385