Posts by Matheus Portela • 677 points
40 posts
-
0
votes0
answers93
viewsQ: socket_connect() - Error 113 - PHP
I’m trying to make an Arduino receive data according to a structure PHP. Explaining quickly, when the user changes the status, between 0 e 1, the same would send a signal to the Arduino according to…
-
0
votes1
answer310
viewsA: Redirecting Urls from the same domain via htaccess
The solution to this problem is something very simple. In the file .htaccess from your server, just enter the following code below: redirect 301 /url-antiga /url-nova That is, in my case, staying as…
-
0
votes1
answer310
viewsQ: Redirecting Urls from the same domain via htaccess
I would like to direct through the htaccess two url of the same domain, type 301. Example: Redirect meusite.com.br/customer-service for meusite.com.br/central-atendimento I tried the following code…
-
2
votes1
answer238
viewsQ: Performing array validation within another array
I have the following array, when I give a var_dump(): array(2) { [""]=> array(10) { ["js/ultramegamenu.js"]=> string(19) "js/ultramegamenu.js" ["js/padoo/jquery.cycle.js"]=> string(24)…
-
0
votes1
answer50
viewsQ: Filling missing result index of a select with 0
I make a select in the database from which I get a array data. With this, I do the following foreach in the same: foreach ($resultado4 as $key => $value7) { $array6[$value7['carteira'].'flores']…
-
2
votes1
answer1480
viewsQ: Check the predominant color in the image
I have the following code that I will put below, which is responsible for taking the image that the user puts. In this case, the variable img returns only the image url. I wanted to take the image…
-
1
votes1
answer31
viewsQ: Function . not() does not work correctly
I have the following code HTML: <div id="mini-cart" class="mini-cart dropdown is-not-empty"> <span class="ic-cart"></span> <span class="count-cart"…
-
1
votes1
answer2436
viewsQ: Undefined method `+' for nil:Nilclass - Ruby error
I have the following Ruby codes in three different files. Follow them: Rb program. require_relative "product" require_relative "store" cd = Product.new("CD",20.5) pinico = Product.new("Pinico",30.6)…
-
2
votes2
answers77
viewsQ: Opacity only in li and not in span
I have the following code HTML: <li class="item produtoDesabilitado" id="1028" style="border: 2px solid rgb(255, 255, 255) !important; height: 346px; padding-bottom: 22px;"> <div…
-
0
votes2
answers155
viewsQ: Logic - Knowing if you are on the second day of the month
I’m having difficulty formulating a logic to know whether or not the day I’m on is for example the second Saturday of the month of February. With the code I made I can take the day I am, month and…
-
2
votes1
answer1831
viewsQ: Checking whether an item is visible or not on the page
I have the following buttons: First button: <button id="modal-btn" class="button btn-cart btn-verde-claro"> <span>Comprar</span> </button> Second button: <div…
-
1
votes2
answers57
viewsQ: Input is not being checked via php
I have the following input: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" <?php if(Mage::getSingleton('core/session')->getInputMensagem() == 1){echo…
-
0
votes1
answer85
viewsA: Ajax does not run correctly
The problem with this question was precisely the lack of the element with the id="cart-sidebar" and that consequently made the function .html() be unstable, hours worked and had hours that did not.…
-
1
votes1
answer55
viewsQ: jQuery ignoring the bars /
I have the following code from button: <button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('View all items in your shopping cart')) ?>" class="button…
-
0
votes1
answer85
viewsQ: Ajax does not run correctly
I have an Ajax request that I make for my controller and it returns a array with necessary data, however, the return of the request is correct because giving a console.log(retorno) he shows me on…
-
0
votes2
answers58
viewsA: Input is not appearing checked
I solved this problem by simply doing a check with jQuery, along with php on the page loading, and thus, according to the user’s data in their session, assigning the via the .prop() the property…
-
0
votes2
answers58
viewsQ: Input is not appearing checked
I have a input of which according to user data in your session it comes marked or not. The problem is that even the input owning checked="checked", he doesn’t come marked. Code of input together…
-
0
votes1
answer83
viewsA: Treating logic and exceptions - jQuery
The solution I found long after was loading the page is made a request ajax to be able to check if there is product added and the return value of the request is added in two input of the kind…
-
3
votes3
answers307
viewsQ: Button and span logic from CSS
I have a button and a span from the following code: <div id="onestepcheckout-place-order"> <button type="button" class="button btn-proceed-checkout btn-checkout" title="<?php echo…
-
3
votes2
answers67
viewsQ: Incorrect centering of button
I have a button within a div which I cannot center on. By means of margin-left I can do this, but to treat the same in the responsiveness is very massante. Code of button together with the div:…
-
2
votes2
answers648
viewsQ: Two events in function - jQuery
I have a function in jQuery which I do through the event .on('change') , but I also needed that same function to happen in page loading, but I don’t know how to do this, call two events in a…
-
10
votes3
answers828
viewsQ: Separate typed words within an input
I have a input, where the user enters his or her full name from the following code: <input type="text" id="fullname" name="fullname" title="fullname" maxlength="255" class="input-text fullname…
-
0
votes1
answer145
viewsA: Function . Unload() - jQuery
The problem is that there is no way to make this request for the function .unload(), because in addition to the error, it would "break" this request in the middle. In this case, it should be done in…
-
4
votes3
answers1776
viewsQ: Deselect radio type input
I have two inputs of the kind radio. Follow the code below: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" /> <label for="isgift0">Teste 1</label>…
-
2
votes2
answers43
viewsA: Hover is not being displayed correctly
The mistake was only of CSS, making a simple change to the code will solve the problem. Just change position: relative for position: absolute, in this way, the problem is solved. Below will only…
-
1
votes2
answers43
viewsQ: Hover is not being displayed correctly
I have a a without link, only for displaying additional information, but it is not being displayed in the correct way. I wanted it to be shown as follows: But it is being shown as follows: Follow…
-
0
votes1
answer117
viewsA: Array saving data in the database with a field written array
The problem wasn’t having more than one input with the name="comments[]", but was in the duplication of code in the module’s Observer.php file, that is, there were two equal codes and so was saving…
-
0
votes1
answer117
viewsQ: Array saving data in the database with a field written array
I have two fields saved in the database (in this case it would be as a comment on the request in the Brazilian language, but that doesn’t matter much). These fields are being saved correctly, but…
-
0
votes1
answer68
viewsQ: Dynamic Div - Tracking Page Scroll Bar
I have a div which is in the second column of the page and I wanted it to become "dynamic", I mean, it followed the scrolling of the page, but even with researches, I could not get anything that…
-
2
votes2
answers372
viewsQ: Display text contained in span in Hover
I have the following html code below: <a class="tooltips" href="#"><strong>!</strong><span>Ingresse o máximo de informações possíveis para uma entrega…
-
1
votes1
answer165
viewsQ: jQuery - Function . prop()
I have a input which is disabled by default, but I wanted to enable it in the page loading through jQuery, but it is not working. Code of input: <input type="text" title="Número"…
-
2
votes1
answer100
viewsQ: jQuery - Id() and show() does not run correctly
I have items of which in a paragraph is displayed the total of them. When I remove one of these items, I am working with 2 paragraphs with the same code so that I hide one and show the other, so…
-
1
votes0
answers790
viewsQ: Assigning value to an input - jQuery
I have two input type="hidden" from which I make an Ajax request to an external file in order to assign values to it. The request is returning me the value correctly, everything is right in it, but…
-
2
votes1
answer145
viewsQ: Function . Unload() - jQuery
I make two ajax requests to an external file from which they add and remove products, but that’s not very relevant in this issue. I wanted every time the page was updated, the function…
-
2
votes1
answer83
viewsQ: Treating logic and exceptions - jQuery
I have some buttons which on onclick of them work with two Ajax requests for an external file that add products, but this is not of utmost importance in this issue. My problem is this: if the buy…
-
1
votes1
answer62
viewsA: Changing the logic - jQuery
The change made in the code to change the logic was the addition of a variable to save the product id so that it is removed if there is already one. Updated Ajax request code: var productSelected =…
-
1
votes1
answer62
viewsQ: Changing the logic - jQuery
I have several buttons from which you add and remove products from an external file, but that’s just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to…
-
1
votes2
answers5148
viewsQ: Removing . append() jQuery
I have several buttons where at the click of it directs to an Ajax request passing as parameter the id of a product and through an external file, according to it is added to the cart but this is not…
-
1
votes2
answers288
viewsQ: Changing button function via jQuery
I have some buttons that at the click of it directs to a request in ajax to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, being…
-
1
votes3
answers230
viewsQ: Changing button span through jQuery
I have a button that at the click of it directs to a request in ajax to an external file that adds a product, however this does not matter much in this case. I wanted to manipulate what is written…