Questions tagged as 'javascript'

2
answers

Error when requesting Ajax

When I try to make a request ajax using the command $.post of jQuery, an error appears in the netWork of the chrome someone knows what that error might be Code:Iamusingthecodeigniterframework$.post('/pages/entradaprodutos/carregar_no...
asked by 20.02.2014 / 15:32
1
answer

Cycle2 plugin does not work when I use api () .html

p> $(function(){ $('.bl6-conteudo').html([ '<div class="cycle-slideshow"', 'data-cycle-fx="fade"', 'data-cycle-timeout="240000"', 'data-cycle-slides="> .dicas"', 'da...
asked by 07.02.2014 / 04:24
1
answer

Consume Javascript JSON data [closed]

I need a help with javascript. I'm trying to show in my index.html the data I'm consuming from a json. However when opening the index and waiting for the document to be loaded the items come with undefined. $(document).ready(function () {...
asked by 05.01.2019 / 15:07
1
answer

jQuery not working in Internet Explorer

I made a little play on Codepen, to share on Github. That is an effect of the elements appearing when you scroll on them. By codepen, it was working perfectly both in IE and other browsers, however, when I moved to HTML page to play in GItH...
asked by 01.02.2014 / 17:11
1
answer

How do the 'request' and 'response' events in Node.js work?

Everyone knows how to use request and response properly as http.createServer callback parameters, and that we use these two parameters as objects within the callback. I searched the DOC's API and there it says that both a...
asked by 13.01.2015 / 18:58
2
answers

How to retrieve a value inside the setTimeout function with jquery? [closed]

I'm trying to retrieve a value inside the setTimeout function to make a calculation plus the result is totally different than I expected. var aux = '1.056,00'; //Retiro a formatação da moeda. aux = aux.replace('.', ''); aux = aux.replace(',',...
asked by 30.12.2014 / 17:17
2
answers

dynamic background - jQuery

I'm testing an image slide, I'm dynamically changing the background using the "css" function of jquery by changing the url ("image path"); But I realized that whenever there is the exchange, it lowers the image again. Do you have the background...
asked by 09.06.2014 / 19:26
1
answer

Generate pdf with Javascript or AngularJS

Does anyone know a way to generate pdf from a page via javascript without the use of a library or at most with the use of angular JS?     
asked by 06.06.2014 / 19:24
3
answers

Problem with return false in JavaScript

I need to develop an accordion menu and am having trouble with the click event. My script: $(document).ready(function(){ $('.dropdown').click( function(){ $(this).find("ul").slideToggle(); return false;...
asked by 08.06.2014 / 02:57
2
answers

Click and add id in the array. If you click again, remove this id

I have a problem, I have a list and when the user clicks it adds the id of this <li> to an array, but I want it when I click again on that <li> , that id is removed from the id. Here's the JSFIDDLE . HTML: <ul&g...
asked by 26.07.2015 / 20:51