Questions tagged as 'javascript'

2
answers

Detect browser and redirect user

I have an animation problem in Safari and would like to know how to restrict the use of Safari of all versions without having to list one by one, for example if I were to redirect a version of < in> Internet Explorer would be: <!--[if IE...
asked by 05.11.2015 / 18:21
2
answers

How to concatenate in a string what was selected in a select multiple

Hello. I have the following code: <select id="idselect" class="ui-corner-all ui-widget-content" multiple="multiple" name="idPosto" style="padding: 3px 4px;"> <option value="1"></option> <option value="2"></option>...
asked by 01.07.2015 / 01:49
2
answers

Define a global error for Ajax requests

I have several Ajax requests, and I have not set an error option for any of them. Is there a way to set a global error for all requests? Just as there is sucess: {... only globally without me needing to go one by one and add error: {.....
asked by 30.06.2015 / 20:57
1
answer

Decrease fixed menu as the page scrolls

I want to know how to decrease the size of the menu when there is scrolling. This is my menu: header { position: fixed; width: 100%; box-shadow: 0 4px 20px -4px #ababab; background: rgba(249, 249, 249, .8); tr...
asked by 11.06.2015 / 21:37
2
answers

Enable select HTML with

I have a table, where fields start disabled, and in a checkbox I choose which field to enable. Tagged input , works perfectly. But when I try to use with select the same script does not work. I tried to add this method only to...
asked by 23.02.2015 / 13:10
2
answers

How to make button stay with another color when clicked and selected

I would like to know how I can use javascript to change the color of the button after it has been clicked; that is, below in the code has 2 formats. If you click on the A1 format, the button where the div is will change color and the color will...
asked by 10.02.2015 / 18:53
2
answers

Working with drag-drop REDIPS

I'm working with a library called REDIPS that enables you to create a simple and customizable drag-drop effect. I'm trying to create a function that causes the element being moved to be cloned more than once and is positioned to the le...
asked by 29.06.2015 / 05:50
2
answers

Hidden fields appear / modified with a select multiple

Hello, I have the following select: <select name="hierarquia[]" multiple> <option value="Usuário" selected> Usuário</option> <option value="Moderador" selected> Moderador</option> <option value="Adm...
asked by 01.03.2015 / 06:51
2
answers

Working with Iframe

How to run the tag: <iframe src="http://localhost.com/web-p/index2.aspx"></iframe> Waiting for the iframe to complete loading the page to proceed with other things. Example: function onIframeCompleto(){ alert('o site...
asked by 20.02.2015 / 19:20
1
answer

How are GMAP API requests counted?

In an internal system, there is a simple plot of an A-B route on one of the pages. Recently this page is receiving a larger number of requests and consequently requesting gmap more often. I want to implement a way to just request and render g...
asked by 08.09.2016 / 18:47