Posts by Glauber Cezar • 385 points
10 posts
-
6
votes3
answers12678
viewsA: How to create div with javascript
You can use the pure javascript features: getElementsByClassName innerHTML createelement setAttribute appendchild Do so: HTML: <div class="corpo"> <div class="esquerda"></div>…
-
0
votes2
answers921
viewsA: How to pass parameters in executed function via ng-click when it is in a list of buttons?
The attribute params of function savePerson is as undefined, params is a reference to the object cadastro that you spend in ng-click="savePerson(cadastro)" then the cadastro is undefined. The…
-
0
votes1
answer5077
viewsA: Open new Javascript window
To open external links within an application being developed with Ionic, use the Cordova Inappbrowser plugin that can be used to open images, access web pages and open PDF files. The plugin can be…
-
1
votes3
answers955
viewsA: change soon when decreasing screen width
Use CSS Media Queries to change the display/layout of the elements depending on the screen size. When a media query is true, the style layer or corresponding style rules are applied. More…
-
0
votes3
answers354
viewsA: align image to center on another image
One of the ways to center an element with CSS, with absolute position, is to use the left with 50% and margin-left with negative half of the element width, this ensures that it will always be in the…
-
3
votes2
answers721
viewsA: Object loop with Jquery each
You are not reading the object correctly, the array is in the attribute message: var table = ""; var data =…
jqueryanswered Glauber Cezar 385 -
4
votes1
answer4133
viewsA: Problem starting mysql in xampp
You already have Mysql installed on your computer and running on the port 3306 so it’s giving conflict, because xampp is trying to start your Mysql on that same port, the solution is to uninstall…
mysqlanswered Glauber Cezar 385 -
3
votes2
answers130
viewsA: Jquery does not pass the POST value of a form
In addition to recovering incorrectly $(".contact-form").serialize() instead of $("#contact-form").serialize() since in the form tag you used id and not class, there is also the button to submit the…
-
2
votes1
answer112
viewsA: Image Thumbnail via URL
Use the Jquery "Paste" event to detect pasting the url into the field and then retrieve the value and create the img element with the image. $(document).ready(function(){ //ao colar a url no campo…
-
1
votes1
answer451
viewsA: Default values in a Select2
As it is in the documentation of the Select2, you can create the options dynamically through an array: <script type="text/javascript"> var data = [{ id: 0, text: 'enhancement' }, { id: 1,…