Questions tagged as 'javascript'

2
answers

Problems with jQuery print function

Galera I put a code in jQuery to make some changes to my layout by hiding some div and printing the page. It works fine, however I'm having the following problem. When I have an image on my page, the system prints before loading images. How d...
asked by 13.09.2016 / 22:33
1
answer

Fill in a list with Json's return

I wanted to populate a textarea or anything that looks like a list, with the items the guy selects from a dropdow. So I thought so, but I do not know how to feed the list ... <textarea cols="1" id="lista"> <ul> </ul&g...
asked by 02.12.2016 / 04:06
2
answers

How to identify the end of the monitor with jquery

I'm putting together a Tooltip using jquery. It is 100% working, the problem is that when I put it on the right side of the monitor it does not appear. How do I make it identify if it has space? And if it does not have it open it on the left sid...
asked by 02.12.2016 / 12:15
1
answer

Add point to every three numbers (thousands) in a tooltip of the input range?

How do I add a "thousand point" in numbers, R$1000 to R$1.000 in a tooltip of the input range: Code: var mySlider = $("input#valores"); $('#valores-credito, #valores-parcela').slider({ formatter: function(value) { r...
asked by 02.09.2016 / 22:15
1
answer

Convert String from a div to int and do a math operation

I'm trying to do the following function: <span id="our_price_display">R$ 71,90</span> function calculaParcela(){ var regex = /\d+,\d+/g; var texto = $(".our_price_display").text(); //id da div com o texto R$ 71,90...
asked by 24.11.2016 / 20:56
2
answers

focus () of JQuery in Firefox

Good morning, I have a problem with firefox. I have a method that clears an input with a value that I consider invalid there in the sequence I give focus to that input. In Internet Explorer and Chrome it works. The methods I use is this:...
asked by 30.11.2016 / 13:51
1
answer

Responsive Menu with dropdown submenu

I'm working on a model menu and need to adjust the display of the submenu. I can not make the submenu overlap the original menu. When I hover the mouse over the submenu link, it is displayed, however, it expands not only the submenu, but also th...
asked by 15.08.2016 / 18:04
1
answer

How will this if be interpreted?

I have a function that performs different actions on the page according to the callback passed to it, I am using if to check which callback was called in function('callback') but now I had to do an update on it and now it is like t...
asked by 22.12.2016 / 22:46
1
answer

How to use RegisterStartupScript one after the other?

Is it possible to use ScriptManager.RegisterStartupScript one followed by the other? I need to use one as tabChange(); and another to display the modal, but in case it only runs the first. Code: ScriptManager.RegisterSta...
asked by 23.12.2016 / 14:50
1
answer

Protect script with user data?

Currently on my page I load some scripts returned by PHP as follows: $(".div").html($("<script />", { src: 'http://www.dominio.com/functions/dados.php?user='+xxxx+'&acao='+xxxx+'' })); Within data.php I am already checking if...
asked by 22.12.2016 / 23:34