Posts by Maurício Júnior • 391 points
25 posts
-
0
votes0
answers47
viewsQ: Is using Promise wrong (deprecated) nowadays?
Well, I work with angular nowadays and I always wonder if it is wrong to use Promises or not, example. I have a code that needs to be async. First function must validate the access permission, after…
-
0
votes3
answers839
viewsA: GRID bootstrap system - col-Xs-X does not recognize width
Hello, the way it should work. See your code running. https://codepen.io/mjunior/pen/zEQPpb?editors=1100 You may not have specified the metatag viewport in your html. <meta name="viewport"…
-
1
votes2
answers394
viewsA: How to put the page title according to a product using JS?
Hello, so that facebook and Whatsapp better understand the information of your webVoce should add the Opengraph metatags in the head of your application. Open Graph allows site developers to turn…
-
1
votes3
answers809
viewsA: Link to *.exe download
You should add an attribute download on your tag https://www.w3schools.com/tags/att_a_download.asp <a href="/images/myw3schoolsimage.jpg" download> Download </a> Another thing that…
htmlanswered Maurício Júnior 391 -
1
votes1
answer160
viewsA: Misaligned image when page width decreases
Apparently your CSS is not being applied to the image. In the html you passed is being used a ID #imagem_principal and the CSS is in a CLASS .imagem_principal. How you are using bootstrap You can…
-
0
votes1
answer88
viewsA: Help with submenu CSS
Hello, your dropdown menu item needs to have a position: relative and submenu, which is inside this item needs to have position Absolute. I made this little example. <style> ul.menu li{…
-
0
votes1
answer234
viewsA: How to get all the href from another external page
You will not be able to do this only with the frontend for the reasons explained in the comments of its publication. Using nodejs you can do this. In the code below I get all tags a of a website and…
jqueryanswered Maurício Júnior 391 -
1
votes1
answer484
viewsA: E-mail validation via jQuery
You need to use keyuo event in input and go checking input content. The example of the code below working https://codepen.io/anon/pen/oGEoXz?editors=1011 <input type="email" >…
-
1
votes1
answer62
viewsA: Create animation "Fadeout"
To do this only with CSS you need two classes. One that will hide and the other that will display the element. Initially your table will have the class .hide, after loading the information you will…
-
1
votes3
answers759
viewsA: How can I make a div hide on the side and when clicked appear on the screen?
Hello you can achieve using this done using CSS Transition and some JS. You must have a class that will be the container throughout the side menu. <div class="menu">…
-
3
votes3
answers466
viewsA: Comments weigh in?
Having HTML as the basis for sure they will weigh, however it can be an insignificant difference. You can use some Preprocessor to compress your site before sending it to production, so the Script…
-
1
votes4
answers11284
viewsA: How to create temporary mirror table in another
View can be defined as a virtual table composed of rows and columns of data coming from related tables in a query (a grouping of SELECT’s, for example). CREATE VIEW active_users AS SELECT id,…
-
-1
votes2
answers1089
viewsA: Filter with Jquery, Json and Input
Take a look at that lib https://datatables.net/ With it you will be able to mount a responsive table and have options for sorting and searching for fields. You can make the necessary filters. I’ve…
-
0
votes4
answers1886
viewsA: How to make an input not accept blank input?
Add Pattern to your input. So it will allow only words. If user type multiple spaces it will not pass <input type="text" class="form-control" size="35" id="palavra" placeholder="Digite seu nome…
-
0
votes2
answers253
viewsA: How to store multiple user names in one variable?
I created an Array of user objects and add users that are expired to it. Then send this array to the function that will send the e-mail. Straight to your question. ArrayList nomesExpirados = new…
-
0
votes1
answer99
viewsA: How to display content from another page dynamically
Each click the user gives adds a hash to the url. So you will have a control of the pages that that user has already passed and will know how many pages need to load. var page = 0;…
-
1
votes3
answers327
viewsA: External HTML in div without server
Something I think might work. I’m assuming you have a main div with "main-content" ID where you will upload the other pages. function load_home() {…
-
1
votes3
answers2718
viewsA: What is the correct way to pass the pagination data in Sponse REST?
I believe that the most interesting thing is to pass in the body of the answer the information of the page. Viewing the standard JSON API you can check that they also do this.…
-
0
votes4
answers2314
viewsA: How do I insert the value of a variable into an HTML attribute using pure Javascript
With the function below you will get the attribute you want from the URL. function getParameterByName(name) { url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new…
-
1
votes4
answers578
viewsA: Problems with Input Angularjs
In the quantity input you need to pass Ax.quantity in ng-model <input class='form-control' type='number' ng-model='ax.quantidade' ng-value='ax.quantidade'> and in the click function you have…
-
0
votes2
answers204
viewsA: check jquery email as if it were two strings
Maybe, <input type="email" .. /> also solve.
-
1
votes2
answers434
viewsA: Routes at Angular 1.6
Try putting it in the Head of index.html <base href="/"> always use minuscule letters on routes. /add and no /Add Remove the $locationProvider $locationProvider.hashPrefix('');…
-
2
votes2
answers2425
viewsA: Validate Name Form
<input type="text" required name="full_name" pattern="^[^-\s][a-zA-ZÀ-ú ]*"> The required makes the field mandatory. In regex I don’t allow anything to start with space.…
-
0
votes1
answer624
viewsA: Aim to catch logged in user
Since you didn’t post your code I’ll show you an example. In the view you will remove the select that asks you to select user Ids. You will only associate the USER to TASK in Create from your…
-
3
votes3
answers262
viewsQ: Many to Many JSON POST - Rails 5 - Only API
Hello, I am developing an engine in Rails 5 where it will be just a blog API. It will be a simple system. Post has several Passions and Passions has several Posts. I made the relationship N…