Posts by brunox99x • 436 points
28 posts
-
0
votes0
answers44
viewsQ: Sequelize Upsert does not return to Row
Why the Sequelize is not returning me to Row in the method Upsert? According to the documentation should return Promise<Model, Boolean|null> the option of returning already is true by default.…
-
1
votes1
answer1312
viewsA: How to make a software overlay desktop and fullscreen games?
This can be complicated depending on the display mode of the game, if the game is in full screen mode unique means that it has priority over the screen and no other application will be able to…
-
0
votes2
answers422
viewsA: Calling event inside another jquery event
Hi, we’re missing one if() in your code B. Script: $(document).ready(function(){ $("input[name=situacao]").on('change', function() { if ($(this).val() == "S") { } else if ($(this).val() == "C") {…
-
0
votes1
answer235
viewsA: XML serialization/deserialization C#
Hello, to use a array element use XmlArray and for the element use XmlArrayItem In your class: public class XMLConnectionString { [Serializable] [XmlRoot("Locais")] public class Locais {…
-
0
votes1
answer91
viewsA: codeigniter 3 only default url works
Hi, default controller is the default controller for when you access your URL. If you put it as $route['default_controller'] = 'home'; your controller will be home and will always implicitly access…
-
1
votes2
answers875
viewsA: How to update another page that is open in PHP, javascript or jquery
Hi to reload a browser tab first you need to grab the open window reference with function window.open();. Example, your JS: var url =…
-
0
votes2
answers66
viewsA: Function with internal call
Hi from what I understand you want everything on onclick button, straight into the tag. In your javascript the function of playing banner and the variables for control if you want to declare them:…
javascriptanswered brunox99x 436 -
5
votes2
answers914
viewsA: Redirect to another PDF tab
Hello, in your view: <a href="{{route("pdfexport")}}" target="_blank" > visualizar pdf </a> and en route: Route::get('/pdf', 'YourController@pdfStream')->name('pdfexport');…
-
1
votes2
answers137
viewsA: How to send the form without redirecting to another PHP page
Hello you can do with Ajax, thus: $.ajax({ // URL de destino url: 'index.php', type: 'post', // Suas variaveis serializadas EX: 'nome=Bruno&idade=24' data: dataString, cache: false, success:…
-
1
votes2
answers148
viewsA: Automatic resizing of div according to window width
Good afternoon, if I understand correctly you can do so: <html> <head> <style> .conteiner { width: 100% !important; height: 100% !important; border: 1px solid red; display:…
-
-3
votes1
answer147
viewsA: Is it correct to leave the responsibility of freight calculation at the front end?
I believe so. It would be like validating a password field, for example. We check the size and if it is strong in the front end and then in the back end we make another check if it is correct to…
-
3
votes1
answer4029
viewsA: What is the difference between Class and CSS id?
Good evening, simply a class is a way to identify a group of elements like pro example class="button" whereas Id is a unique identifier for an element. Elements in HTML can contain several example…
-
0
votes1
answer232
viewsA: How to use more than one modal bootstrap on a single web page
to add more modal just change Id id="myModal", id="myModal2" id="myModal3" ... <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!--…
-
2
votes2
answers48
viewsA: Disable button after insert
Good evening, remove Return at start: <button class="btn btn-info" onclick="confirm('Pretende registar esta atividade?');this.disabled=true;">Pequeno Almoço</button> Ha if you want to…
-
-1
votes2
answers129
viewsA: Code does not work and returns no error (Java)
Good evening, use %d to decimal no %i
-
0
votes1
answer601
viewsA: Nullreferenceexception: Object Reference not set to an instance of an Object (Unity)
Hi, make sure you have the private ActionButton[] actionButtons; setados in the inspector of Unity3d! because this variable is null. When class will initialize in method Start there are no elements…
-
0
votes1
answer32
viewsA: How to randomly rearrange a list of Strings and select one element at a time without repeating the value contained in the list?
Good evening, to shuffle the list you can create an extension to List<> as: private static Random rng = new Random(); public static void Shuffle<T>(this IList<T> list) { int n =…
-
0
votes1
answer209
viewsA: Cannot find Symbol - NETBEANS
Good night, txt_endereco = new javax.swing.JScrollPane(); is a Scrollpane?? shouldn’t it be a Scrollpane? javax.swing.JTextField(); as in other fields? txt_nome = new javax.swing.JTextField();…
-
0
votes1
answer98
viewsA: Problems with Navbar Collapse
Good evening, it seems you forgot to enter the identifier on data-target="navbarMenu", how you’re using ID looks like this data-target="#navbarMenu". Example: <html> <head> <script…
-
3
votes3
answers2337
viewsA: How to count characters from a String ignoring whitespace?
Good evening, if you want to count only the characters the function Trim() is not indicated, it removes only the spaces of the beginning and end of the string. Instead we use the function Replace().…
-
0
votes2
answers44
viewsA: Save date and time of start of task with button and insert in mysql
Good evening, I don’t know if I understood you right but you can store variables in localStorage with javascript, it’s better to save the date and time in the value of the button as you said! //…
-
1
votes2
answers444
viewsA: while true x loop
Good evening, I do not use ruby but I believe that there are no performance differences between loops of repetition, of course that varies from language to language. The While (true) will perform…
-
-1
votes2
answers609
viewsA: Banknotes and coins C#
Good evening, the syntax with passage of arguments to Console.WriteLine() is Console.WriteLine("{0}{1}{2}", SUA_VAR1, SUA_VAR2, SUA_VAR3) .... because the method contains a parameter that accepts…
-
0
votes2
answers62
viewsA: Command in chat to open new javascript page
Good evening, use the jquery function keypress keycode = 13 for enter. The function .slice(-8) will retrieve the last 8 characters typed for the "/rules check" <!DOCTYPE html> <html>…
-
0
votes2
answers319
viewsA: How to scroll through an enumerable list and check if the property repeats in the list during foreach turns
Good evening, have you ever thought of using a dictionary Dictionary<>? As a key you can use a DateTime and as value a list of class persons List<Pessoa>. Example:…
-
1
votes2
answers48
viewsA: How to compare two date and validate fields
Good night, use the function diff of PHP. $data1 = new DateTime( '2012-11-11' ); $data2 = new DateTime( '1994-01-01' ); $intervalo = $data1->diff( $data2 ); echo "Intervalo é de…
-
1
votes2
answers115
viewsA: php values exporting to javascript
Good evening, make sure you are assigning the PHP variable before your echo in javascript, I think you are not doing this. Example: <?php $teste = 20; ?> <!DOCTYPE html> <html>…
-
1
votes2
answers117
viewsA: To add variable to a Jquery selector
Good evening, don’t forget that jquery $() is a selector, you are capturing the element ID: var btnId = $(this).attr('id'); var pId = $('button').siblings('p').attr('id'); btn and info1 or is it…