Posts by RBoschini • 2,191 points
79 posts
-
1
votes3
answers789
viewsA: I can’t align a label inside a <td>
Tries to place the elements you want in line inside a ul and after the display:inline. <tr> <td style="text-align:right">Data Exclusão:</td> <td align="left"> <ul…
-
7
votes2
answers21812
viewsA: I executed merge command on wrong branch as undo
You can turn this back using the command: git reset --hard commit_sha There is another way git reset --hard HEAD~6 You will return 6 commits. See if this settles it for you.…
-
3
votes2
answers239
viewsA: Variable control with Javascript for html
Try this by making X your global variable. var foo = 0; function toogle_m(){ if (foo == 1) { alert("Lucky 7!"+"x"); foo = 0; } else{ alert("You're not very lucky today..."+"x"); foo = 1; } }…
-
2
votes2
answers1947
viewsA: Stress problem PHP and Mysql
If you are connecting to Mysql via terminal (With the famous mysql -u command -p), make sure that this connection is also with the correct Character-set. It happens that many times (this happened to…
-
1
votes5
answers1346
viewsA: How to get all HREF and SRC values from a code
Hello, I made a change to your code. $(document).ready(function() { function execute(){ var conteudo = $('#insert').val(); $('#processado').html(conteudo); var links =…
-
3
votes2
answers438
viewsA: How to consult with Where and like between two tables?
You need a table to link, do searches with varchar even more with multiple values, can make your query heavy and slow for no reason. tabela mensagens +----+-------------------+---------------------+…
-
1
votes1
answer161
viewsA: Relative reference in Javascript files
I go through the same problem, created a function and put in my overall script file in the project. function getHostSite() { //identificar inicio do path //usada nas chamadas Ajax / jSON var Path =…
-
1
votes2
answers62
viewsA: Tab does not come open
I believe you need to add the active class in the tab you want to come active. You can put fixed on the code class="active" or load the page. $(document).ready(function(){ //Ache o primeiro li tab e…
twitter-bootstrapanswered RBoschini 2,191 -
0
votes1
answer729
viewsA: Send form without updating page and show hidden div
I advise sending the data to the server-side via AJAX, so you better control the behavior of your page, and do not give that Reload bore with the submit of the form. $('#divOculta').hide(); function…
-
2
votes1
answer322
viewsA: problem with the behavior of google.maps.Latlngbounds
There is a very cool solution that I used in a project, follow the link below. Component But first, see if the example below fits your problem. demo It takes points with same lat/lng and separates…
-
1
votes2
answers1474
viewsA: Button next to input text bootstrap 3
Hey, buddy, all right? I made a simple example, see if it helps your problem. jsFiddler Example I made a list and I put the elements inside, then you hit the margins and everything. <div…
-
1
votes1
answer102
viewsA: Use of various instances of Google Maps API
You are re-instating the map, you can simply clear the map and assemble all the elements again. You can instantiate the map 1 time, then go managing the elements within it. For example, remove all…
-
1
votes5
answers106
viewsA: link is not called
Buddy, you can call the method . direct click() you don’t need Trigger. $("#link_new_ad").click(function(){ alert('teste'); $("#bundle_ad_submit").click(); }); If it doesn’t work, check if…
-
1
votes2
answers80
viewsA: Problem with Jquery dialog
Friend, within its function has an eventlistener, tries to put it in the ready of Document. $(document).ready(function(){ $('input[type="button"]').click(function(){ CheckConfirm(2); }); });…
-
3
votes3
answers1249
viewsA: PHP condition not to display image when it does not exist
Put your image on echo to write to the page, so keep everything on the server-side. <?php if (!empty($imagem3)) { echo("<td><img src='". $imagem3 ."'></td>") } ?> That solves…
-
3
votes7
answers4205
viewsA: Count elements on the screen
Ten easier, do it like this $('li').length ready, simple, easy and clean
-
0
votes3
answers1271
viewsA: Get google search results with Jquery
Buddy, try it with ajax function googleSearch(settings){ var apiURL = 'http://ajax.googleapis.com/ajax/services/search/images?v=1.0'; $.getJSON(apiURL,{ q : 'boschini busca', },function(r){…
-
0
votes1
answer62
viewsA: What can I do to load page without breaking code?
Buddy does the following, leaves a global div and the "display:None" so the html will load but hidden. Ai in jquery, you take the Document load and remove the display:None.…
-
2
votes2
answers95
viewsA: Form recording the same data
Make sure the user is not giving doubleclick on the button and the same is firing several times the same action, I’ve seen a lot of it. Do a test, create a script that after the first click disable…
-
2
votes3
answers2716
viewsA: Change class with javascript when resizing the screen
Buddy, try the following form. if(window.screen.availWidth<750){ $('.menu').addClass('responsivemenu').removeClass('menu'); }
-
0
votes2
answers261
viewsA: Javascript run with certain resolution
Buddy, try to take his resolve and make a simple if. $(document).ready(function(){ var screenH = window.screen.availHeight; var screenW = window.screen.availWidth; if(screenW<700){ alert('run…
-
1
votes4
answers118
viewsA: Working with Array and selecting a specific Input
Buddy I made an example in jquery for you to test. insert link description here Look that basically I take the value of the input, I look for the obj and I show him, very simple.…
-
4
votes1
answer298
viewsA: To validate the value selected in the dropdownlist
Friend, try to use the Requiredvalidator, because the "Select" does not contain value and the Requiredvalidator will take. Try and tell us if it worked.
-
1
votes2
answers1053
viewsA: Put a datepicker in a mvc 5 view with jquery or similar
Buddy, datepicker does not work, it does not open, it opens but does not play the value in input? Make sure you are using Bundleconfig with Minified files ".min.js", because then it does not import.…
-
0
votes3
answers1452
viewsA: URL problem with Toolbar /
Hey, buddy, send your controller so we can see. It may be that this occurs, because you have an Overload with and without parameter, then when you use / at the end, he understands that it is the…
-
-1
votes3
answers4981
viewsA: How to customize input file?
Buddy, you can do with css yes. Here’s an example I made for you, see if it fits. I did the following, created a div with input file and a common button inside. You don’t need to create a button of…
-
0
votes3
answers749
viewsA: Animate Load by clicking
So if you have 30 links, they will all render in the same . You can do the following. <script> $('#content').html('<img src="myLoading.gif">');…
-
1
votes3
answers749
viewsA: Animate Load by clicking
You want loading animation while loading content? If that’s the case, here’s what I’d do. I would call the Blockui before calling the load and in the error callback and have Success hide. Blockui -…
-
1
votes1
answer70
viewsA: Dynamically triggering combos for DOM creation via jQuery
Buddy, try it this way, I created a select and in the event change, create other elements, all dynamic via DOM. $(document).ready(function(){ $('#cboEstado') .append('<option>São…