Posts by Leandro RR • 776 points
32 posts
-
0
votes0
answers25
viewsQ: Decrypt password field of an ASP application that saves to an MSSQL BD
I need help to figure out how to decrypt or just read this password from my database, it turns out I need to use this user table for another application, however I have no idea what kind of…
-
4
votes4
answers40794
viewsQ: Convert date from DD/MM/YYYY to YYYY-MM-DD in Javascript
I’m wearing a datepicker, using the library moment.js. Calendar displays date in local format, pt-br, as well as the value returned. I want to take this string and format in English format…
javascriptasked Leandro RR 776 -
1
votes1
answer129
viewsQ: Organizing Laravel Migrations into a subfolder is bad practice?
I have created several Migrations that are related to each other, for having foreign keys and etc... but I don’t want to mix them with the Migrations related to auth, Permissions and etc. My…
-
0
votes1
answer308
viewsQ: Type error: Argument 1 passed to: hasPermission() must be an instance of: Permission string Given
I am stuck in an error here in Laravel and I don’t understand why it is occurring, the message itself I understood, that I am passing as parameter to the function a value that is string when it…
-
1
votes2
answers3869
viewsA: Skip line Javascript
first, assign the summernote instance to a variable, for later use, it already has a method for add paragraphs, using the callbacks:{} you add the event onKeyup (tried with onChange but created an…
-
0
votes3
answers227
viewsA: Remove class when Scroll Up with Jquery
simple, use the "scroll" event to detect when the user scrolls on your page, then take the value of scrollTop and check if it is higher than 0 if it is you add your logic, see this example:…
jqueryanswered Leandro RR 776 -
1
votes2
answers124
viewsA: Is there a standard for Media Querie application?
I will give you an answer based on what I do in my projects, in fact I do not specify a specific pattern of size in my media queries, what I do is to develop a layout as fluid as possible with the…
-
0
votes4
answers39339
viewsA: How to apply readonly in a select?
by me I would actually disable the select, except that... the value would be sent to an Hidden input, and by clicking on the form’s Ubmit it sent the value of the Hidden input, the only problem with…
-
1
votes1
answer398
viewsA: Add multidimensional array as an array item
i found the solution myself, basically it is to add a multidimensional array to an item of an array. i had to add the item "Children", before I started my loop and add the child arrays to the parent…
-
1
votes2
answers145
viewsA: Menu Closing alone
good, I think that’s it, your script, starts by checking the click on ".nav-toggler", so if it was clicked, it adds the class ".open" in the class element .menu ai continues the script, understand…
-
-1
votes1
answer398
viewsQ: Add multidimensional array as an array item
I am working with Windows and I am implementing a permissions-based menu, I am recovering the menu data from a table in my database. I created a model and in it I am doing the logic to retrieve the…
-
0
votes2
answers92
viewsQ: Regex to take a parenthesis and string inside together
need to remove from a string a parenthesis with what is inside, example of which I am trying to extract this parenthesis: "director position (a)". reason: I have an old project that has an ajax…
-
3
votes2
answers152
viewsA: How to make something expire after certain months in db?
take a look in this answer of OS. now() + INTERVAL 3 DAY while NOW returns the current date and time, INTERVAL adds a time interval, see in the manual:…
-
0
votes1
answer37
viewsA: enable rewrite on Linux
to do so, you must open the Ubuntu terminal, and type the following commands in the same way as this link ask Ubuntu. execute on the terminal: sudo a2enmod rewrite then restart the apache webserver:…
-
2
votes1
answer164
viewsQ: How to stack Bootstrap modals with the backdrop above the previous modal?
How would it be possible to modify the Bootstrap modal so that when there is a stack of open modals, the backdrop of each one is above the others? what I’ve observed so far? when opening a Modal,…
-
3
votes1
answer1716
viewsA: How to export a DIV with graphics to PDF
after a while researching and cracking my head on this issue, I was able to create a script using Chart js. to create a simple chart and then export this chart to PDF using jsPDF.js, but to be…
-
0
votes3
answers4316
viewsA: Validating select with jquery.validate
use the following code: https://jsfiddle.net/7xhgjtag/ <form method="post" action="" id="myform"> <select name="listaopt" id="OptList"> <option…
-
2
votes1
answer1127
viewsA: How to reuse HTML menus on other pages
Use the concept of oocss, that is nothing more than creating snippets of modularized css, for example: https://jsfiddle.net/Lav1xpha/ .button { display: inline-block; padding: 10px 20px;…
-
1
votes1
answer558
viewsQ: recover data from JSON file
I am needing to implement a translation into a plugin called pikaday, which is actually a datepicker, and as the site is multilingual I am trying to implode the i18n. pulling translations from a…
-
0
votes4
answers2949
viewsA: Fix div at the bottom of the page
usually the staff fix it using absolute positioning, this way: .footer { height: 60px; position: absolute; bottom: 0; left: 0; right: 0; background: #eee; }…
-
2
votes1
answer1552
viewsQ: contact form with Laravel 5.1
I need to create a simple contact form with Laravel 5.1, however, as I am more front-end, I would like some idea of what I can do to create this form, some websites even explain how it is done, but…
-
5
votes4
answers8606
viewsQ: popup open only 1 time after being closed, even after reloading page
I wonder how to create one of those popup that usually appear in large portals (not in flash), but with div and javascript pure, which after being closed, the script detect this and it will no…
-
2
votes3
answers60168
viewsA: Horizontal line in the middle of an unordered HTML list
make a li with a class "separator" see in the example: http://jsfiddle.net/A4Lj7/1 HTML: <ul> <li>maçã</li> <li class="separador"></li> <li>banana</li>…
-
3
votes1
answer181
viewsQ: using jquery.cloneya plugin hook
I’m using the plugin of jquery.cloneya which is a plugin to clone forms that were already included in a template of an administrative panel I’m using. I don’t quite understand how to use the hook…
-
0
votes1
answer3509
viewsQ: Delay while upgrading files via FTP with Filezilla
I am sending the updated files to the server via FTP with Filezilla, it is a virtual store, and the edited files are simply style sheets, but when I press F5 to refresh the page and see the changes,…
-
7
votes1
answer6370
viewsQ: How to clone an element with jQuery and add a new name?
I’m using the plugin jQuery Cloneya to clone elements of a form with jQuery, but it is a little limited, wanted to clone the inputs but I need to increment the name when this is done, for example:…
-
0
votes2
answers2620
viewsQ: decrease time of jQuery slider
I did not use any plugin to make a simple transition between Divs, because it was not to be anything too complicated and did not want to overload the page with several plugins, but in my script the…
-
-2
votes2
answers506
viewsQ: Onchange event not working when placed on the body
I wrote this function to validate some form specific radio Buttons. As my page is in PHP and I do include from the top and footer, the function works when it is in footer.php, but since the function…
-
4
votes5
answers2014
viewsQ: Disable a Ubmit and Enable only when radio minimum Buttons is selected
I tried to do a function but came out with some strange bugs, it has to be more or less this script, but enable the button only if 5 or more radio Buttons are marked. Remembering that my form is…
-
4
votes3
answers8971
viewsQ: Go to the next element with next and add a class to the previous one
I’m trying to make sure that by clicking on the "next" link, one of my lists is revealed and the previous one is hidden, using a class that has display: none;, tried with .next() of jQuery but there…
-
9
votes2
answers29287
viewsQ: Take JSON data array and print with jQuery
I have a JSON in the following format: { "representantes": [ { "nome": "Foo LTDA", "endereco": "Alameda dos Anjos", "cep": "12345-000", "telefone": "(11) 1234-1234", "site": "www.foo.com.br",…
-
3
votes2
answers3652
viewsQ: How to make the container reach the footer? (even with little content)
I have a layout here, where, the background of container is transparent black, and it goes to the bottom of the page. but there is another problem, where it is written "Sitemap", is a menu that…