Questions tagged as 'jquery'

1
answer

Add multiple rows with jQuery using .text

I'm doing the project for school, I'm in the chat part and I have a question. In the part of sending messages in jQuery: socket.on('newMessage', function(data){ $chat.append(data.nick+' - ' + menssagem+ '<br/>' ); }); But the...
asked by 06.04.2016 / 19:43
1
answer

Are there security issues when using sessionStorage for data storage?

Is there a security issue for a web system that uses sessionStorage to store temporary data for a user? In practice, is using sessionStorage good practice? In my application, instead of always performing a request to the datab...
asked by 22.01.2016 / 23:12
0
answers

how do I check for a text file is empty in php and if it is finished executing?

I have a code that runs a simple query like this select * from tabela where coluna1 = 'valor'; Then I have a variable that brings a txt file $filename = "C:/Programfile/arquivo.txt"; Then I make this condition below if (file_exists($...
asked by 19.04.2016 / 14:14
0
answers

nicescroll error plugin in Chorme

I'm having problems with the plugin nicescroll of JQuery on Chrome I'm doing this: <script type="text/javascript" src="_global/_scripts/_funcoes/_js/jquery-2.1.4.min.js"></script> <script type="text/javas...
asked by 17.01.2016 / 22:10
0
answers

JQuery script does not load on mobile devices

I have a question. I have a site in wordpress, and only one page is not loading jQuery, and only on mobile! Can someone help me? Here is the script that is not opening: <script type="text/javascript"> jQuery(document).ready(function(...
asked by 03.03.2016 / 22:57
1
answer

Trying to make alert on every page href but only one is displayed

I'm doing some testing and I came across one this very annoying error. It's easy to explain: I want JQuery to give alert to all <a> of the page, but it only alert once and nothing else. Let's go to the codes: <...
asked by 21.02.2016 / 21:18
0
answers

$ .getJSON image upload

I need to upload the images along with the registration in the DB. $("#btnCriarConta").click(function() { if ($("#inputNomeCondominio").val() !== ""){ var nomeCondominio = "Tiago"; var foto1 = "/data/data/c...
asked by 19.12.2015 / 20:08
0
answers

AJAX request on the server

AJAX request does not work when on server ... locally runs normal ... Anyone have any idea what it can be? function SalvarPedido() { //Data var data = $("#Data").val(); //Cliente var cliente = $("#Cliente").val(); //Valo...
asked by 17.12.2015 / 21:31
0
answers

"Rain of images" effect in CSS3, JQuery or JavaScript. How to make?

What I have: -A div with background-bg class, whose image fills the entire screen. <div class"background-bg"></div> What I want to do: - Create a "rain / snow" effect (falling type) using 20 other small images (12...
asked by 05.12.2015 / 20:40
0
answers

Appearance of border not reported

var images = $("[data-img]"); images.mouseenter(function() { $(this.dataset.img).css('box-shadow', "inset 0 0 20px black"); }); images.mouseout(function(){ $(this.dataset.img).css('box-shadow', ""); }); h3 { margin-top: -21%;...
asked by 03.12.2015 / 17:57