Posts by Jorge.M • 2,818 points
134 posts
-
0
votes1
answer26
viewsA: Ckecklist with angular
Here’s a suggestion for you using Jquery only in the case of select all inputs of the checked type. $('#check-all').change(function(){ if(this.checked){…
-
0
votes1
answer105
viewsA: Error starting Tomcat server
Tomcat 8.5 . Inside Catalina.properties, located in the set of / conf directories: tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\*.jar Or go to context.xml, located in Tomcat’s / conf directory…
-
2
votes1
answer334
viewsA: Why use Stylesheet.create?
I think I’d better use StyleSheet whenever possible because you will have more performance than just using common objects. Quote removed from React documentation : Create a stylesheet from a style…
-
1
votes1
answer46
viewsA: Error in Dll Visual Studio Installer
I used to rebuild these installation projects from scratch when they stopped working (for any reason), but I found a much faster (and less error-prone) solution. Works for me, maybe works for you…
-
0
votes1
answer81
viewsA: Play js variable in html
Do the following, first create the element in your html as follows: <h2 class="produto-1"></h2>, below the console.log that you gave to show, do the following:…
-
2
votes1
answer318
viewsA: Put scroll down
Here is a very simple example, first you select your element alvo then just perform an animation in body e html leading the scroll to the target element. Set a time of 600ms but can be edited.…
-
1
votes1
answer42
viewsA: How do I direct the google bookmark to a page?
You are using window.location that is, it will replace the current window, in case the map. To get the expected result, use window.location.href.
javascriptanswered Jorge.M 2,818 -
0
votes1
answer709
viewsA: Error when publishing in iis
POSSIBLE CAUSE When 3.5SP1 structure is installed and Clickonce storage is used for the first cdf files ms maybe time deleted. This can be caused by deleting HKEY_CURRENT_USER registry key Software…
-
2
votes3
answers1479
viewsA: Expand options of a select element by clicking button
What you seek is this: <select id="teste" onmouseover="this.size=this.options.length" onmouseout="this.size=1" style="position:absolute"> <option>ITEM1</option>…
-
1
votes1
answer91
viewsA: Decision structure, how to know which to use?
Igor, how the decision will revolve around one element only dropdown, for this situation, the most appropriate would be to use the switch. An example: $('#selecao').change(function(){…
-
1
votes1
answer1948
viewsA: Get input date value
Follow a solution below, just search the val() from each to the button be clicked. $('#btn').click(function(){ var inicio = $('#inicio').val(), fim = $('#fim').val(); console.log('data inicial: ' +…
-
1
votes1
answer37
viewsA: Problem with MDBBOOSTRAP
Opening the console in your application, we can see that it is displaying the error message : "has been blocked by CORS policy: No 'Access-Control-Allow-Origin'" that is, you are not allowed to make…
-
2
votes1
answer865
viewsA: Changing the bar color of a Navigation page
Just configure the Barbackgroundcolor property of the Navigationpage instance: new NavigationPage(new MainPage()) { BarBackgroundColor = Color.Gray };
-
1
votes2
answers587
viewsA: Adjustment of bootstrap buttons
In that case, since the carousel is not involved in any div, the same will remain with 100% wide, and is also adding a padding-right default. I made an edition that will work if the carousel…
-
1
votes1
answer308
viewsA: Popover bootstrap button in jquery does not show content
for the use of Popovers 1- Popover is a third party library, you need to make the call of that file before the file of JS bootstrap As follows : <script…
-
0
votes2
answers883
viewsA: Responsive menu with HTML and CSS only (target function)
Mark, you can perform this action using Jquery. First you arrow the element div id="menu-header-resp" with display:none in the CSS then you will have to select the div who wishes to hide and the…
-
0
votes2
answers330
viewsA: Display image until gif is loaded
As you are assigning the image via script, it takes a while to load into the document. A hint is to place a gif/image that you want to stay until your image directly clicks on the element, so when…
-
1
votes2
answers128
viewsA: How to perform scroll event only when you click on a certain element?
Wagner, you’re performing the event resize e click in the browser window, that is, whenever there is a click on the window, the event will be triggered. Add the code within a click event of the…
-
0
votes1
answer119
viewsA: linked and underlined text in the edge
Camila, as mentioned above, you need to know where these texts are written to then take the class/id and declare the rule in css. Possibly coming from within a link, do the following in css:…
-
1
votes3
answers227
viewsA: Remove class when Scroll Up with Jquery
I believe what you need is this. In the example, I set the scroll to the bottom of the page to show you the event, captured the scroll in a variable and then created the conditions. In case I added…
-
0
votes2
answers122
viewsA: Mobile only jquery, is it possible?
What you need to do is create a function and assign "window.onresize = 'function name'" at the end of the script, I left an example created for you here. Resize the editor screen to see the result.…
-
0
votes1
answer678
viewsA: Show button if logged in/ hide if not
Friend, a simple solution would be just using Jquery and CSS, I’ll leave an example below for you. $('#btn-post').click(function(){ if($('#name').val() == "Jorge" && $('#mail').val() ==…
-
1
votes2
answers313
viewsA: Detect click over an iframe
The click does not to capture, what to do is to check when there was a "Hover" in the div that the frame is involved. $(document).ready( function() { var frame = -1; $('iframe').hover( function() {…
-
1
votes2
answers982
viewsA: Real-time check of connection status with JS
There is already a solution to this question here. Take a look and see if it’s what you need.
-
0
votes1
answer215
viewsA: Cancel bootstrap JS default procedure
By default, the form buttons will perform the action of "Submit", ie, take the data that are in the form and perform a "post". Here is an example of how to prevent this default behavior using…
-
0
votes1
answer40
viewsA: Animation bug in Firefox
Otavio, Rule @Keyframes does not support most older browsers, for you to have an idea, nor does it support IE, only for Edge 10, that is, older browsers will not even have support for animations.…
-
0
votes3
answers47
viewsA: Getting text from an element
Paste these lines into your code and test With pure Javascrip var cel = document.querySelector('.perfil-usuario').textContent; if(cel == "SISTEMA"){ alert("USER ENCONTRADO");…
javascriptanswered Jorge.M 2,818 -
1
votes1
answer377
views -
0
votes2
answers469
viewsA: Show and hide according to another event
$(document).ready(function(){ var bt1 = $('#bt1'), //seleciona botão 1 bt2 = $('#bt2'); //seleciona botão 2 bt1.click(function(){ //define o display de acordo com o botão clicado…
-
1
votes3
answers2171
viewsA: Update page automatically?
A while ago I had created a function that basically takes the local time on the machine and updates the script/css to use the version of that time. Follows the function function getStringDate() {…
-
0
votes2
answers257
viewsA: Angular filter html
Dude, an option would be to do this only with css and jquery. You can leave by default the text hidden with display:none or leaving him invisible with visibility:hidden, ai in its condition, you…
-
0
votes5
answers8190
viewsA: Onclick event in image
function teste(){ console.log('fui clicado'); } <img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png" onclick="teste();"/> Try it like this and see if…
-
1
votes1
answer110
viewsQ: How to call compressed HTML file with gz?
I’m starting to use gzip, I compressed a JS file but when I call it in HTML, the error in the console. IN HTML <script…
-
1
votes1
answer1312
viewsQ: How to take the user’s location and compare with others to see which one is closest to him?
I need to capture the user’s location and compare all the cited locations in a list/array and see which one is closest and display a picture of the location. So far I’ve been able to handle bugs and…