Questions tagged as 'javascript'

1
answer

Javascript basic help (timers)

My question is as follows: <!DOCTYPE html> <html dir="ltr" lang="pt-BR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Joguinho</title> <link rel="stylesheet" href="...
asked by 01.03.2015 / 15:43
1
answer

Print PDF from Firefox

I am using the following command to print a PDF that is inside the iFrame, and the PDF is included locally on the same server: window.frames["imprimirpdf"].focus(); window.frames["imprimirpdf"].print(); Does anyone know how to fix...
asked by 06.03.2015 / 20:51
1
answer

How do I delete cookies from a site?

I have a link that creates multiple cookies with different domains like: link and link . How can I make JavaScript to delete cookies from the domain ?     
asked by 03.02.2015 / 14:46
1
answer

Display a button based on the action of another

I'm a beginner in ASP.NET MVC I have a project. And within a given view I have two buttons. However, one of them can only appear if the other is executed. 1 > Save (save car) 2 > Associate a dealership (it can only be activated wh...
asked by 17.10.2015 / 22:38
1
answer

State Machine with AngularJS

I'm having trouble implementing a state machine using AngularJS .. On my first try, I tried to use this made in JS: link I could not make it work as I wished. I followed the examples and got no results. What I tried was to create a few s...
asked by 09.10.2015 / 17:08
1
answer

Method ignoring the callback function in a jQuery plugin

I'm developing a plugin in jQuery and the problem or difficulty is: I created the methods init , show and hide ; (function( $ ) $.fn.tooltip = function(method, onClick, onBefore, onAfter) { var default...
asked by 20.10.2015 / 19:28
2
answers

JSON API Callback

I have a question on how to filter results from a API , and would like to know if anyone has had this problem before. Let's say that we have to access a API that is on a server other than ours and returns a response in JSON...
asked by 18.10.2015 / 05:44
2
answers

How to add cloned events, right after cloning

I have a code that I'm developing, but I'm encountering 3 difficulties. 1ª I would like to make a calculation of 11% + the totalTotal cost. 2nd In the fields totalValue and totalValue perform the entire sum of cloned fields totalreference...
asked by 12.08.2015 / 21:50
2
answers

Javascript + Ajax is not returning as expected

I'm trying to send the data from this page to the server, but Js does not return the Message variable ... I know little of JS and would like some way to call the variable as soon as the server receives the data.     
asked by 10.08.2015 / 22:16
2
answers

Problem with accentuation in .js after concat and uglify in Gulp

I'm trying to optimize the website of the organ where I work and I'm having problems after concatenating and minifying the javascripts. Our Apache server uses ISO-8859-1 and all of my files in PHPStorm are configured on the same charset. A...
asked by 10.08.2015 / 16:26