Questions tagged as 'javascript'

1
answer

How to redirect the ID of a current cadastre for printing

I want to redirect an id that I will get only after clicking on register, at this moment I perform the insertion in the database in php and soon after I want to redirect via javascript to a page of printing data that I own, my problem is that it...
asked by 05.11.2014 / 20:13
1
answer

Uncaught Error SyntaxError: Unexpected token = [closed]

I'm working on a payroll and the function that calculates the IR (income tax) is with some mistake that I honestly can not find at all. If anyone can help me. function desconto_ir() {var salario = document.getElementById("salario_bruto").v...
asked by 14.11.2015 / 23:46
2
answers

How to pass another parameter and value with another variable via post?

I need to send a new variable, using jQuery , to the neighborhood.php file, how do I? I have a hidden input that contains the idcl variable that contains client data: <input type="hidden" name="idcl" id="idcl" value="<?php echo...
asked by 10.12.2015 / 10:45
2
answers

Use of callback parameter in JS functions

I'm trying to use a callback parameter (I do not know if it's the correct term here) inside my constructor, which calls a function I defined, but every time I try to run the code it displays an error in the console. Here is the button build...
asked by 06.12.2015 / 18:22
1
answer

Insert result of a script or the code of a script into a div

How do I load a script into a page, the result appears in div ? Example: <script type="text/javascript"> /* conteúdo do script */ </script> <div id="script" class="000000"></div> The goal is for scr...
asked by 18.08.2014 / 01:40
1
answer

Script code function

Someone could explain to me what this code means in the part that says: document.cookie = 'useHTML5=; expires=Thu, 01 Jan 1970 00:00:01 It appears more than once, I would like to know if it is something related to a valid date of the script...
asked by 16.08.2014 / 04:22
3
answers

Validation of select

I have the following HTML <select class="cadastroDireitaInput cadastroSiteSexo" id="sexo" name="sexo"> <option value="">Selecione</option> <option value="Feminino">Feminino</option> <option value="Masculi...
asked by 11.08.2014 / 19:18
2
answers

Put a value inside the 'val' of jquery [closed]

What is the right way to mount this line? $("#rastreo").val('BR'<?php echo date("hYmdi"); ?>json[0].estado); The crawl ID is an input field.     
asked by 28.09.2015 / 19:43
2
answers

Validate email with angularjs

I have the following field for email: <input type="email" class="form-control" id="email" name="email" ng-model="fields.email" required="true" /> In the div where the field is, I have the following validation: ng-class="{ 'has-error...
asked by 19.09.2014 / 00:11
1
answer

Streaming Server .. Listen / Download / Upload Audio [closed]

I'm now starting to study PHP, and wanted to know how it is possible, or if someone has a tutorial that teaches how to make a system that has how to upload music, and automatically created a page, giving option to download or to listen directly...
asked by 29.09.2015 / 10:10