Questions tagged as 'jquery'

1
answer

Data loss in session

I'm doing a form with steps in Ajax. The idea is at every step to get the form data, play an array, and store the array in the session, so I can manipulate all the data in the last step: Ajax form1: $('.next').click(function(){ $.post(...
asked by 18.05.2016 / 18:18
1
answer

Inappbrowser using Phonegap build

I have an application that runs on mobile compiled in PG build Cli 5.2.0 in this app I have some external links to open. I implemented the inappbrowser to be able to close the open browser and return to the app. however there are several differe...
asked by 07.07.2016 / 17:27
0
answers

Error, status 200 load Ajax

I have a call ajax that falls in callback error and brings me a status 200 and statusText load . Follow the ajax: $.ajax({ type: "GET", crossDomain: "true", dataType: "jsonp",...
asked by 01.04.2016 / 20:10
1
answer

Change Meta Tags dynamically angular

I'm trying to change the content of the meta tag Keyword dynamically. I have: <meta name="keywords" id="selKeyword" content=""> and I'm doing it as follows: $("meta[name='keywords']").attr("content", "hello"); I put...
asked by 04.04.2016 / 21:11
2
answers

Improve the code to just get the value of the localstorage [closed]

I have the following code: jQuery.ajax({ type: "POST", data: $(accent_color).serialize(), success: function(data) { console.log(data); } }); How do I get this code to take the value below: var accent_color = localStorage.getIte...
asked by 06.04.2016 / 18:26
0
answers

Ajax returning HTML along with JSON

The code I did was working normally but suddenly, it behaved differently. I've made all possible debugs, take a look $( function(){ // When submit it $('.frms').not('#form-newsletter').on('submit', function(){ e.preventDefault(...
asked by 29.01.2016 / 15:21
1
answer

Regarding jQuery functions, is it risky to use them in inline elements?

You have a good question here in Stackoverlow that talks about the issue of practices Why is it bad practice to use Javascript inline? But now, not wanting to look at bad or good practice itself, I'd like to know if it's troublesome to u...
asked by 10.03.2016 / 19:13
1
answer

Registration insertion with webservice returns error but inserts into the database

Hello, I have a javascript function that makes an ajax call to a php file that should insert the records into the MySQL database. Well, I'm getting the records but the function is returning an error. Does anyone know the reason for the error? Tha...
asked by 28.09.2016 / 15:40
0
answers

UPDATE PDO, AJAX, PHP Object Oriented

I have the following function within my class public function update(){ try{ $stmt = $this->conn->prepare("UPDATE Tabela SET Dado1 = :Dado1, Dado2 = :Dado2, Dado3 = :Dado3 WHERE DadoId = :DadoId");...
asked by 27.09.2016 / 22:34
2
answers

How to call a function only once with mouse scroll?

I need when the user rolls the mouse scroll up or down, a specific function is triggered only once ... I'm using the following code but it does not meet my needs: var stopScroll = false; $(window).scroll(function (event) { var scrollAt...
asked by 20.05.2016 / 21:32