Questions tagged as 'jquery'

2
answers

Passing parameters to Modal in jQuery

I have the following button: echo '<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-cliente='.$r->idCliente.' data-datainicial='.$_GET['data_inicial'].' data-datafinal='.$_GET['data_final'].' data-target="#myMod...
asked by 27.11.2015 / 02:37
1
answer

Get File Size in Bytes in Java Script

I'm validating the attached file size on my page before upload using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size); if(tamanhoArquivo > 2097152){ //MAX_FILE_SIZE = 2097152 Byte...
asked by 26.11.2014 / 15:09
1
answer

PHP, AJAX and jQuery

Hello. I have the following hierarchy of folders: Parent folder, with the following: file submit.php, with the following code: <?php ini_set('display_errors',1); ini_set('display_startup_erros',1); error_reporting(E_ALL); include("libs...
asked by 11.12.2014 / 23:39
1
answer

Change pages url with ajax and load in another browser

I'm having the following problem, I'm developing a web application in java and would like to know how do I change the URL of a page when I click on a link in the menu. For example: Access a website www.example.com.br this is the main link and...
asked by 29.12.2014 / 19:21
1
answer

How to compare two dates in Javascript or jQuery

I'm trying to compare two dates coming from fields text , turning them into object Date , as follows (the first function is to format the field input with XX/XX/XXXX ): function formatar(mascara, documento){...
asked by 07.06.2015 / 01:11
2
answers

Click on Notification Desktop and go to the same window without refreshing the page

I am developing a chat with WebSocket and I have a problem, when I send a message to a friend, he receives the desktop notification (from the Browser he is) and when he clicks on the notification he goes to the conversation window of the person...
asked by 10.05.2015 / 17:56
1
answer

How to change the position of Ticks elements in JqPlot?

I need to know how to change the position of the Ticks to be diagonal rather than vertical, because as shown in the attached image, the names overwrite one another when they reach a certain size. <script type="text/javascript"> $(doc...
asked by 18.02.2014 / 14:09
2
answers

How to select / deselect a multiple select input at each mouse click? (without Ctrl)

I'm trying to make a script to select multiple options of a <select multiple> with each mouse click. So far so good, I've got and follows the code: var numSelected = 0; var valSelectedArray = []; $(document).on('mouseup',...
asked by 12.02.2014 / 17:14
1
answer

Scrolling effect with Parallax using video

I'm studying effects with Parallax and I'm trying to display a video in the background instead of an image. So I was able to create a nice effect using background image. Here is my jQuery code: $('[data-parallax]').each(function(){ var...
asked by 05.03.2014 / 05:33
1
answer

Subtract date from input with current date

I'm trying to subtract a date that the user types in the input with the current date. var data1 = $("#data_viagem").val(); var data1 = data1.split("/"); var viagem = new Date(data1[2], data1[1], data1[0]); var dateObj = new Date(); var m...
asked by 17.08.2017 / 17:01