Questions tagged as 'jquery'

1
answer

Problem with JS code (Uncaught SyntaxError: missing) after argument list)

Well, I have a code from a pop-up chatbox, but it is giving the following error:    Uncaught SyntaxError: missing) after argument list Code: //Variáveis a editar var imagen_chatbox_desplegable = "http://i45.servimg.com/u/f45/17/45/19/7...
asked by 16.09.2015 / 16:26
2
answers

Change variable value in Ajax

The Problem I have the flagExistenciaArquivo variable, and need to be updated if the file exists or not. I call the verificaExistenciaArquivo function inside another function by setting the folder of that file and filename ....
asked by 28.08.2015 / 15:59
2
answers

Handling Ajax data

Personal oops. I have a page that receives JSON data from an Ajax request from time to time in this format: { "status":"success", "total":4, "0":{ "id_user":"11", "posicao":0, "nick":"Usuario", "premium":"0...
asked by 19.08.2018 / 15:09
3
answers

jQuery - Field with a maximum of 4 digits and complete with 0 to the left

I need a field where a maximum of 4 numbers can be entered and, if the user enters less than 4 digits, the 4 digits are filled with leading zeros, and do not accept values such as 0, 00, 000, or 0000 . I made the code below by setting a 4-dig...
asked by 21.08.2018 / 16:19
2
answers

Set file name in the dialog of an input file

Good morning, I wonder if there is any way to set a default name in the input type="file"... dialog. And also if there is how to define the way in which this dialog will open. Eg "/ Downloads /", (I would always like to open that path)....
asked by 17.11.2015 / 12:02
2
answers

Make div close when clicking outside it

I have a li with id buscaBT , when I click on it, it leaves a div within that li ( formularioBusca ) as display:block , so far, quiet, everything working. I did so: $( "#buscaBT" ).click(function() { $( '.fo...
asked by 11.07.2014 / 05:21
5
answers

Is it possible to make a file upload system without using PHP?

I have to make a video upload system, at first, without using the "server side". I would like to know if you have how to do this without using php, using SQLLite or Local Storage. I already researched several sites and did not find much (and I'm...
asked by 28.07.2014 / 16:17
2
answers

I can not remove the fields I just placed

I need to insert some fields dynamically and I found a video lesson that showed how to do it. However, after doing everything right, my code does not remove the ones I just inserted. Where is the error? Here is the code: <script typ...
asked by 15.04.2014 / 04:13
3
answers

Do not add values

I'm trying to add two values, for example: a = 400; b = 200; I try to sum by means of "a + b", however instead of jQuery returning "600" it returns me "400200". The actual code is this: var startField = $dialogContent.find("input[name...
asked by 05.10.2014 / 00:30
1
answer

Why is this script returning me an object?

I'm working with jQuery to register information in the database through Ajax and I'm not sure why this code is returning me an object type variable. The project I'm working on is being developed over a Admin Panel with the entire interfac...
asked by 15.11.2014 / 23:46