Questions tagged as 'javascript'

3
answers

Get checkbox values with javascript

I have the following code in HTML: <input type="checkbox" id="Pacote_i" name="Pacote" value="Pacote i" onClick="soma()"> <input type="checkbox" id="Pacote_ii" name="Pacote" value="Pacote ii" onClick="soma()"> <input type="checkb...
asked by 31.08.2015 / 14:48
4
answers

Convert HTML into PNG

How to convert, via code javascript or php, the html ( DOM ) of the page being displayed for an image? I need the page shown to the user to be converted to an image file in png format so that it can be downloaded and started automatica...
asked by 05.10.2017 / 18:37
2
answers

Do not send via POST elements inside div "display none"

I want to remove the divs that are with display:none with the remove() function of jquery and when they are selected as display:block they come back .... since I want to send a form via POST that can not receive the elements...
asked by 18.11.2016 / 05:19
4
answers

Doubt over parameters and call functions

I created a function in JavaScript that when executed creates a tag <script> in <head> that loads an external JavaScript file. I want to make sure that after this tag is created, a second function located within that...
asked by 13.06.2014 / 01:24
2
answers

How to set printing options via javascript?

Is it possible? I would for example remove the default margin and remove header and footer. Now open the print window with these options set.     
asked by 03.06.2014 / 16:14
1
answer

Select elements in hierarchy with Javascript

I have a hierarchy as follows <li class="clear2 clearfix" id="field_id16"> <span class="row_title">Link: </span> <span class="row_data"> <div class="field_uneditable">http://3.bp.blogspot.com/-O7KAb62ChqU/Tb_w...
asked by 05.06.2014 / 15:22
3
answers

The 4th edition of the JavaScript book: Is the Definitive Guide still a reliable source?

I recently received the JavaScript book The Definitive Guide 4th edition, which covers version 1.5. I would like to know if it is still valid for learning the core of the language.     
asked by 23.12.2014 / 02:29
3
answers

How to leave empty textbox after an Ajax request via Post?

I have a registration application in .Net MVC and I'm using Ajax to send the contents of Forms to my Action that registers, when I save the value of the fields, in my view the values are still visible in the fields not leaving blank , as would t...
asked by 02.02.2015 / 15:03
2
answers

open new window php

On the site I have several banner ads. When I click on a banner, I'm redirected to a page that counts clicks on the banner. After this count I'm redirected to the page before the click on the banner and a new tab with the banner link opens. For...
asked by 11.08.2014 / 12:30
3
answers

Access negative index of an array

BUG? I was building a library for handling Arrays and I came across the following situation: When adding a value to a negative index within my Array, this index does not appear when using some methods: Example: var array = new Array("Mar...
asked by 04.08.2014 / 20:09