Questions tagged as 'javascript'

0
answers

Group code on a line [closed]

Well, I'd like to change my CSS code by adding the parameters that are "joinable" For example this code: { margin-top: -2px; -> juntável com MARGIN margin-right: 40px; -> juntável com MARGIN } margin-X , padding-X parame...
asked by 16.01.2016 / 18:23
0
answers

Add or Decrease columns and rows in table [closed]

I have a table where I want to add or subtract new rows and columns, through the click event on the button, I tried this way, according to the code below, but it is not working very well: Thisexampleofhowtogetbyclickingonitplusaddacolumnorrow.$...
asked by 28.11.2015 / 05:35
2
answers

Is it possible to zoom the browser with code?

Is there any way to change the browser zoom with JavaScript ? When loading script you would like to change the browser zoom to 100%, it can be using any (Angular, jQuery) framework. I would be very grateful if you could help....
asked by 10.11.2016 / 17:48
2
answers

How to get all parent elements except some

I'm in a situation where I need to get all the "parent" elements of a div, but I can not get all because it would not solve my problem. I wonder if I can put a limit on getting these elements. With an example it becomes clearer. Consider the s...
asked by 23.06.2016 / 22:07
3
answers

Pass values from a popup (child) to parent page

The parent window (jsp) has a popup (child) button. <input type="button" onclick="test();" value="Call Child Window" /> When you open the popup, there are text fields for the person to enter a word. These input are created dyn...
asked by 06.05.2016 / 16:31
2
answers

What is this code for?

I've seen this structure lately, in the javascript, I've tried to search for it but I have not been able to find concrete answers. I know it's an object, I think, but I'm a beginner and I do not understand how it works. Mainly the beginning -var...
asked by 28.10.2015 / 22:30
3
answers

How to send strings in the URL via JS or jQuery?

How do I transform a string, eg: minha string into minha+string to send in the URL? Can be in JS or jQuery     
asked by 14.01.2016 / 04:04
3
answers

How can I open a modal window with window.open ()? [closed]

How can I open a modal window with window.open() in chrome, IE, etc.? Is it possible to do this?     
asked by 29.07.2015 / 01:45
2
answers

Get the first few characters of a string

How do I replace a string in JavaScript? I'm getting the page name. var str = window.location.pathname; The url name is "/checkout/9/finalizacao" I want to change to "/checkout/" In case the first 10 characters. I kno...
asked by 19.05.2015 / 15:35
3
answers

Make you refresh the page and then see the message

Hello, How do I send a contact form for example, give a refresh on the page and show the sending message? Code: Javascript: function showAlert(type, message) { if (message !== '') { if (type === '') { typ...
asked by 31.12.2015 / 05:57