Posts by RBoschini • 2,191 points
79 posts
-
0
votes1
answer250
viewsA: Doubt with Jquery - Take class value and apply as background
Okay, see if this is it. $(document).ready(function(){ $('input[name="thing"]').each(function(idx,key){ var dataimg = $(key).attr('data-img');…
-
0
votes1
answer23
viewsA: I would like to separate a string in PHP and get specific data
Use the replace Example substr($arquivo[$y],17,2)
-
5
votes2
answers377
viewsQ: GIT: 2-verse project on different clients and main branch
I have a question regarding the organization of GIT. I have 1 project that will be divided into 2 verses for different clients, I would like to maintain a main branch and that the general changes…
-
1
votes2
answers82
viewsA: Standardize spreadsheets in open office
Solution found was to create a macro that standardizes the columns. sub DailyProfit dim largura as integer largura = 700 rem define variables dim document as object dim dispatcher as object dim…
-
-2
votes2
answers82
viewsQ: Standardize spreadsheets in open office
I have an open office spreadsheet file with 27 spreadsheets inside. All sheets are equal, 3 columns, title, nothing else. I need a way to format all worksheets at once. - line width - header color -…
-
1
votes1
answer2842
viewsA: Ubuntu Cordova - Build with problem
I managed to settle a few hours and a lot of coffee cups after. The problem occurs because of permissions, when I surround the cordova build without sudo then the problem did not occur. Then not to…
-
1
votes1
answer2842
viewsQ: Ubuntu Cordova - Build with problem
Guys I’m going up Cordova on Ubuntu 64, but I’m having build problem. [Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in…
-
0
votes1
answer81
viewsA: Style Fileupload
Styling a file type input tag requires a little work, browsers do not maintain the same standard for this element and this makes it difficult to keep something cool in our application. Below, an…
-
12
votes1
answer51550
viewsA: Scroll in div if necessary
Use css to display scroll bars. #divContent{ overflow:auto; } With this your div should have scroll whenever you need. There are several options for several cases. See the definition on the W3C.…
-
0
votes1
answer106
viewsA: Remove svg object
Hello, I updated your Fiddler, take a look. I created a data-tag on the PAI images and I control who I exclude. The section below, I put at the end of the method function mousedown(e). var type =…
javascriptanswered RBoschini 2,191 -
1
votes1
answer4551
viewsA: Write inside a DIV using CSS
Do it like this .gerenciar-coluna-exibicao-vismodelo:before { content: "Boschini was here!"; } However the recommended would be you to do by jquery.
-
3
votes1
answer1020
viewsA: Show Middle Screen Upload Image
Hello, I was going to post a code to do in the hand but neither do I more, too much effort for little thing. I advise you to use the component block-ui. Look at this jsFiddler . //UI block…
-
5
votes2
answers2249
viewsA: What is the purpose of the pseudo-elements "::before" and "::after"?
They represent pseudo-elements, which you don’t include directly in your markup, but are available for you to create some interesting effects with CSS. You mentioned ::before ::after, and they…
-
2
votes1
answer103
viewsA: PHP registration form via javascrit
There are some errors in your code. See on jsFiddler the example I made for you to see. I modified the code a little, I added a Document.ready to set the dialog and bindar the click to which saves…
-
1
votes3
answers658
viewsA: Problem removing elements with jQuery
Do it like this, it should fix it. Follows the Fiddler with that working. $(document).ready(function(){ $('.remover').bind('click',function(){ $(this).parent().remove(); }); });…
-
1
votes1
answer355
viewsQ: Checking browser and version with REGEX
I am working on a Vb.net MVC system and need to detect the browser and version. I will only use Chrome, and IE9+. I was wondering if I could simplify the verification structure using Regex. Below…
-
1
votes4
answers11464
viewsA: Increase image when user click on JS
Instead of just changing the class, it puts an effect to make it more pleasant. I made a jsFiddler for you to see how it would be done. Use and abuse the .Animate() to make your application smooth.…
-
3
votes2
answers302
viewsA: Change label class (icon-font) with click
Use the .toggleClass() jquery $(".abre-dropdown").click(function(){ $(this).toggleClass(function() { if ( $( this ).hasClass("icon-down-dir") ) { return "icon-up-dir"; } else { return…
-
2
votes1
answer593
viewsQ: C# + Entity + Mysql = The underlying Provider failed on Open
I have a problem when I host my system on the Ocaweb. My system is done in C# Asp.net MVC3 with EF and Mysql. This problem occurs only in Ocaweb, I already checked the connectionstring and this all…
-
0
votes1
answer895
viewsA: How to make the Dynamic Datatable column
I took advantage of your Fiddler of the other issue and I made an amendment based on that new question. $(document).ready(function() { var json = '[ { "Nome": "Felipe", "Data": "null", "Tipo":…
answered RBoschini 2,191 -
1
votes2
answers75
viewsA: How to fix these styles to circumvent reported error?
You need to control this with javascript, I updated your Fiddler, take a look. The estate checked is not accessed by css, the check is only going to the chosen one because the automatic check label…
-
3
votes3
answers13554
viewsA: Convert object array to array arrays
Take a look at this algorithm, see if it helps. var objArr = []; //Array final var myObj = [ {"id":1,"nome":"Maluf","cpf":"007.519.591-20"}, {"id":2,"nome":"Paulo Ricardo","cpf":"565.232.591-02"},…
-
1
votes2
answers150
viewsA: Leave effect smoother and random
Follow an example using Blur as you described. var timer1; $(document).ready(function(){ timer1 = setInterval(function(){ var rnd1 = (Math.floor(Math.random()*100)+1); var rnd2 =…
-
1
votes1
answer399
views -
0
votes4
answers249
viewsA: Box of different height fit equal Pinterest
You can use column-width and column-gap the way I used in this example Example Pinterest Or use a lib that does this for you, an example is the lib Waterfall https://github.com/kudago/waterfall See…
-
1
votes2
answers180
viewsA: How to copy a Repeater on the same page
Do so, if just to present the reapeater, without any action, you can copy the generated html at runtime and play in your div .modal-body. You first take the generated clientId for your Peater, then…
-
1
votes1
answer243
viewsA: Javascript function does not run Pagemethod
On the page of MSDN you get an example. <asp:ScriptManager ID="sm" runat="server" EnablePageMethods="true"> <Scripts > <asp:ScriptReference Path="myPageMethods.js" />…
-
2
votes4
answers1314
viewsA: Check checkbox with ajax
Puts an event change in your checkbox, and check whether it is checked or not with the command $('#myCheckbox').is(':checked') //Exemplo $('#myCheck').bind('change',function(){ alert('Checkbox…
-
2
votes1
answer215
viewsA: How to keep user view choice in fullcalendar
Friend, you can do it in many ways. To save the user preferences, I advise you to do via ajax, save to the database and load every time the user enters the system, however you can also do with…
-
1
votes2
answers574
viewsA: Problems with onmouseclick and onmouseover in Javascript
Change onMouseClick to onClick. <body> <h1>Acenda Lampada</h1> <img src="_imagens/lampada-apagada.jpg" id="luz" onmouseover="mudaLampada(1)" onmouseout="mudaLampada(2)"…
javascriptanswered RBoschini 2,191 -
4
votes1
answer123
viewsA: Start Development App Result Board Games
You have to choose which architecture to use. Native You can do it in Java android, and use Sqlite to save the information, but Sqlite is embedded, if you want to send the data to create an online…
-
10
votes2
answers1645
viewsA: What are the structural and syntax differences between Sass, Less and Stylus?
CSS3 preprocessors are languages for the purpose of helping in creating styles compatible with all browsers and with several resources to help us, especially when we have huge CSS’s. The most…
-
4
votes3
answers632
viewsA: Can apache rewrite to external url?
You can use the P flag on-mode mod_rewrite rule to replace URL with mod_proxy: RewriteEngine on RewriteRule ^minhaPasta/$ http://outro.exemplo.com.br/outraPasta/ [P] Now when the customer orders…
-
4
votes5
answers1294
viewsA: change the title of a Window confirm()
You are probably using the plugin org.apache.cordova.dialogs. Users/ft/projectname/platforms/ios/www/plugins/org.apache.cordova.dialogs/www/notification.js Opens the file Notification.js and find…
-
2
votes2
answers182
viewsA: When you do not write anything, do not appear "Type a name"
<input type="text" id="txName" placeholder="Digite o nome" ng-model="image1.textname" style="text-align: center;"> When firing the function to save the photo, at the beginning of it you do…
-
2
votes1
answer331
viewsA: Repeat Jquery . Animate() after clicking the button
Do it like this, declare his top negative, so the animation can always appear. $('#cadastre-se').click(function(){ $('.icon-cracha').css('top','-100px'); $('.icon-cracha').stop(true,…
-
2
votes3
answers650
viewsA: Jquery calculate average and insert the result into the average field that is disable
Good afternoon, First, you left the event binded in a control that this disable, second you take the controls plays in variable then creates other variables to receive the value, all this is not to…
-
0
votes2
answers676
viewsA: Query does not sort records by Asc/Desc
And this group by ai, remove it SELECT COUNT(telpretot) AS qtde, (CAST(telpretot AS DECIMAL(18,0))) as preco FROM cadcha WHERE teldata = '08/03/2015' ORDER BY qtde DESC;…
-
2
votes1
answer407
viewsA: Bootstrap problem with Slick Boot boot and modal
I’ll try to help you even if I don’t see your code. If you are using the bootstrap modal or jquery dialog, you have a problem instantiating Slick, because when it is instantiated before the modal…
-
0
votes4
answers3189
viewsA: Access JSON with multiple JS objects
Play this result in a variable and work with it. var dataJson = [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0,…
-
1
votes1
answer857
viewsA: Place header in ajax get method
You’re gonna have to do something like this $.ajax({ url : myurl, headers: { 'X-Auth-Token' : token }); More information on how to do this, read the doc $.ajax();…
-
1
votes1
answer153
viewsA: Exchange values from a div
Try this, $("#dados_solicitacao").on('change','#caminho', function change(){ var selected = $(this).val(); var url = urlprojeto+"/minhaUrl.php"; var data = 'referencia='+selected+''; var data =…
-
1
votes3
answers7147
viewsA: Stop executing a Javascript function to perform another function
To do this you will need to use .promise(). With it you can do asynchronous programming with javascript. Take this example $( "button" ).on( "click", function() { $( "p" ).append( "Started..." ); $(…
-
1
votes2
answers177
viewsA: the onKeyUp event of the java script influences the Customvalidator Function
ASP.NET Web Forms internally uses a framework located on aspnet_client\{0}\{1} to do the validation, etc. They are basically determined from the Clientscriptslocation. Try to replace the default…
-
1
votes2
answers746
viewsA: What the best way, change only the registration steps and not every page
Buddy, I made an example for you. See if it helps http://jsfiddle.net/qo7557p5/ I created html with the steps. <div id="wizardSignin" data-step="1" active> <h1> Step 1 </h1>…
-
2
votes1
answer331
viewsQ: MVC C# How to force SSL - too_many_redirects
I am trying to force SSL use of my MVC WEB application. I’ve tried with redirect on the global wing, but it goes into too_many_redirects lopping. protected void Application_BeginRequest(Object…
-
1
votes1
answer65
viewsA: Scroll button after swapping css with Jquery
Exchange the $('#numero').css("display","block"); for $('#numero').css("display",""); That should do it.
-
21
votes1
answer30199
viewsA: What is the difference between x-www-form-urlencoded and form-data?
These content-type specifies how the form data should be encoded when sent to the server (only when method="post") To application/x-www-form-urlencoded, the body of the HTTP message sent to the…
-
3
votes3
answers1311
viewsA: How to place a upload image within a Javascript function?
You can do via ajax instead of Submit, call your loading before processing ajax and then vc hide it. I advise you to use the lib Blockui, very good and facilitates a lot. Blockui In case you need to…
-
2
votes4
answers1821
viewsA: String and variable concatenation problem in jquery load function
Try to separate the value into a variable. var idcl = document.getElementById('idcl').value; $(document).ready(function(){ $('#estados').change(function(){ var estados = $('#estados').val();…