Posts by Giovane • 2,011 points
87 posts
-
0
votes1
answer127
viewsA: Send EXCEL form file without refresh
Try it like this: <form id="excelForm" enctype="multipart/form-data"> <input type="file" name="file" /> <input type= "submit" value ="Enviar"/> </form> <script…
-
0
votes1
answer60
viewsA: Angularjs single route Parameters
Getting the code from your job_detail.js: ... $scope.jobId = $routeParams.jobId; // <- o id vindo do parametro de rota esta aqui no $routeParams.jobId. console.log($scope.jobId); $scope.params =…
-
1
votes4
answers1757
viewsA: Empty input cannot receive zero
See if the code below helps you. I take the DOM button I add an event from click that: I take all inputs As the return of document.querySelectorAll() is aNodeList nay I can use array functions in it…
-
1
votes2
answers305
viewsA: .load Jquery letting the form be submitted
You can let the $.ajax() in place of .load(). You get the return false as a return of form for the requisition ajax is asynchronous, so javascript will run ajax and continue executing the other…
-
5
votes2
answers2119
viewsA: What is it, Trigger?
Trigger, as his name says, is a Gatilho. You use a Trigger to trigger a function in the database at a given database event, example: INSERT, UPDATE and DELETE. A common use of Trigger is user log,…
-
1
votes1
answer88
viewsA: Change src of an action-based image on the previous page
As commented, a good solution is to use the LocalStorage, at a glance: https://jsfiddle.net/oy0vf3ng/1/ To preserve the code: HTML <button id="btnJujuba" type="button"…
-
1
votes3
answers4878
viewsA: Open Function onclick in Select option
A response based on your example: $('#selectSpan').on('change', function() { Select(this.value, this); }) function Select(index, el) { var spans = el.parentElement.querySelectorAll('span'); for (var…
javascriptanswered Giovane 2,011 -
2
votes1
answer300
viewsA: Angular and mysql paging logic
Usually I use these parameters as query params so they are optional and I always return with a default value if no parameter is passed, type 1st page with 10 items. GET…
-
1
votes2
answers2732
viewsA: Events tagged with <select><option>
Why are you using blocks of script and document.write to write the options? What comparison are you trying to make in the MudarOponente? I put in a code below what I understood you want. I’m adding…
-
0
votes2
answers589
viewsA: How to activate onclick after a jquery?
Simple, you have to bind these click events after mounting the buttons. Example: function montaView() { ... // supondo que você tenha montado seus botoes bindEventos(); } function bindEventos() {…
-
2
votes2
answers46
viewsA: removeClass with jQuery
Try $("table.dados tr").removeClass('text-white');
-
0
votes1
answer59
viewsA: How to put php variable in JS link
Try the following block: <? $opts = uniqid(rand(), true); echo "<script> window.location.assign('http://localhost/web/" . $opts . "') </script>"; ?> You’re not closing the " after…
-
0
votes2
answers276
viewsA: How to use INNER JOIN?
From what I understand you want to make one SELECT with a JOIN between your event table and categories. I think that solves: SELECT e.title AS event_title, e.description AS event_description, c.id…
-
3
votes1
answer1813
viewsA: HTML/CSS Notification Basics
The easiest way to use notifications in web applications is to use the Html5 API of browser notifications. It’s quite simple, the example I’m going this way is from Tableless var notify = function()…
-
1
votes1
answer689
viewsA: Set colors patterns in materialize
To do this you better use a pre-processor of css type Sass, that the materialize of the support. Then just lower the source in Materialize’s Sass, Inside you’ll get it the folders fonts, js and…
materializeanswered Giovane 2,011 -
1
votes2
answers406
viewsA: Menu link color changes when scroll is over its respective section
Take a look at the documentation of W3schools about Bootstrap Scrollspy. You will basically import the required jquery and bootstrap scripts and set a style for the focus through the class active…
-
1
votes1
answer167
viewsA: CSS Grid Framework System
I will explain using bootstrap as a reference because it is the framework I know best. It divides any space within an element into 12 columns no matter the total size of the element, i.e.:…
-
1
votes1
answer569
viewsA: How to replace the contents of an array?
Try the following before yours for which inserts the contents into the variable html. while(demoParticipantes.length < 15) { demoParticipantes.push(iconePadrao); }…
-
1
votes2
answers844
viewsA: How can I filter, both by Category and by Price?
If what I understand is that you want to sort through 2 fields, take a look at this one reply, has even a jsfiddle. But already in advance, for you to sort by multi fields do: ng-repeat="array |…
-
1
votes4
answers889
viewsA: Character limit
Dude, you can also solve this with css. Here are the links that helped me when I needed, http://www.w3schools.com/cssreF/css3_pr_text-overflow.asp…
-
3
votes2
answers3456
viewsA: How to get parameters in the URL through Angularjs
Assuming that this 2 has been defined as a route variable .state('produtoView', { url: '/produto/:id' ... You can redeem this variable id by injecting the $stateParams in your controller and taking…
-
2
votes2
answers8717
viewsA: How to restrict the filling of only numbers in an input with Angularjs?
Man I went through this problem and decided to dedicate myself to creating a directive that solves me the problem and as you can see below, she got big. basically you put as attribute of your input…
-
0
votes2
answers354
viewsA: Mouse events (when passing an x element) Jquery
The event you want is the .mouseover(). Anything from a look at his documentation, link
-
1
votes1
answer33
viewsA: Prevent the page from being displayed only when all elements of the page are loaded
So Naldson, for you to do this the solution is you load this table with an asynchronous call via Javascript, IE, when the page is loaded your Javascript makes an Ajax request to the server, your or…
-
0
votes3
answers366
viewsA: How to mount an array with bootstrap tagsinput values?
Okay, what a Google won’t solve. "Php split deprecated what to use Instead" https://stackoverflow.com/questions/2813241/php-split-alternative UPDATE Okay, dude, another Google and I found your…
-
1
votes1
answer2925
viewsA: How to leave DIV "Responsive"?
I guess that settles it. .selecao-bordas, .selecao-details { overflow: auto; } .content { display: inline-block; } <div class="container"> <form> <br> Bordas <div…
-
2
votes1
answer703
viewsA: Graphic overlay
I went through the same problem. The solution was that when exchanging the data I removed the canvas from the DOM and inserted a new canvas with the new values. Then I created a directive that…
-
0
votes1
answer100
viewsA: Array repeats simultaneously in json
I already understand the point that is generating this search loop. Your setDayContent is called by the component so you can inform the content of the day, but you are not treating the parameters…
-
3
votes1
answer451
viewsA: Update div with Javascript or Angularjs - for IONIC
Come on, First you’re actually instilling two controllers separate from your chartController, see: <select ng-controller="chartController" ..."> <div id="charts"…
-
1
votes1
answer554
viewsA: Add a sidemenu to the Ionic Blank template
Dude, I already made an app with side menu and it’s really simple. Take a look at the documentation on him on this link You just need to use Ionic’s own directives, take a look. In this example…
-
3
votes3
answers221
viewsA: Redirect page if resolution less than 767px
I know two very practical ways. 1: accessing the innerWidth of window if(window.innerWidth < 767) {...} 2: using media queries, see more on link if(window.matchMedia("(max-width:…
javascriptanswered Giovane 2,011 -
0
votes1
answer137
viewsA: Error consuming REST Java Arraylist<String>
Try to change the MediaType of your @Produces. From what I understand he is not able to parse his List for Plain Text, try to use the MediaType correct for json. MediaType.APPLICATION_JSON or…
-
1
votes2
answers655
viewsA: How to Catch JSON Data with Angular
This is security provided by browsers that do not allow you to access a server that has not allowed you, your host, dns, ip to consume it. The webservice would have to enable localhost to access it,…
-
6
votes3
answers2010
viewsA: How to optimize the sum of elements in an array
Use reduce var meuArray = [1, 2, 3, 200]; var countArray = meuArray.reduce(function(total, item) { return total+item; }, 0); alert(countArray); See how reduce works on W3schools, and a great video…
-
0
votes1
answer211
viewsA: Implement Loader while loading the page
Boot a <div> with position: absolute; top: 0px; left: 0px; z-index: 100; Inside it you put your image Oader, just do the style to center it. Then just make the logic so it appears or hide. Ex:…
-
0
votes1
answer25
viewsA: URL disturbing ajax requests
Try $.post("./sys/funcoes.php")
-
-1
votes5
answers35403
viewsA: How to align a footer element always at the bottom of the page?
At a glance : Jsfiddle I went to position : fixed and z-index : 10 The menu remains next to the bottom 0px, now just adjust the margin.…