Questions tagged as 'jquery'

1
answer

How to prevent the user from closing a page without sending the form, but without using a dialog?

I have an HTML page that has a form. I need to prevent that after the user completes this form, it click on another button of the page that is not the "Save". I found a script that solved this, but it can easily be circumvented. In this scrip...
asked by 06.01.2016 / 17:57
1
answer

Does anyone know with enable functionality to export PDF in DataTables

I'm using the js DataTables plugin but I'm not sure how to enable the export functionality for PDF or Excel. Can anyone help me? As of now, thanks.     
asked by 06.01.2016 / 18:40
1
answer

Receive URL parameter by JS (jQuery)

I need to capture a parameter from a URL, for example: http://site.com/paginas/**nome-da-pagina** I need to capture page-name with JS or jQuery.     
asked by 06.01.2016 / 14:00
4
answers

How to identify the focus on a div?

Galera I set up an input system with the same android layout. Everything works fine in% with% plots, but input provider is within input , as I have to add a button in place of x. The problem is that when I hold the mouse over...
asked by 19.02.2016 / 11:09
2
answers

Execute code only if the user is not on the tab

I would like to know how I can do to run a script (in this case it is those desktop notifications) only if the user does not have the open tab , ie I want to send a desktop notification to it only if it does not have the site open (I'm doing th...
asked by 18.02.2016 / 18:38
2
answers

Hide certain quantity

Assuming I have 10 div class="code" in my document! How do I add a button, so that when loading the page only 5 of these items is displayed, and the other 5 are hidden, and after clicking the other 5 buttons is also the display     
asked by 21.02.2016 / 22:41
2
answers

Pass values from the JQuery Mysql option

I'm having a hard time submitting a specific field in the case of <select> with 3 <option> . When I get the field to insert some data into the database, it does not have the value, but rather the Undefined or Object info...
asked by 30.12.2015 / 13:54
1
answer

How to convert an html page into Image and download IE and Safari?

I need to convert an HTML page to an image and download that image. I got it for Chrome and Firefox, but in IE it does not work at all in either version. In Safari 5 I could not download, clicking the link opens the image in the browser. Does...
asked by 25.02.2016 / 15:22
1
answer

How do I include a column with a checkbox for all rows in the DataTable?

I would like to put a column at the end with a checkbox or toggle switch button for all lines coming from an ajax call. I was able to put by sDefaultContext and mRender, but the checkbox does not work, it does not recognize the click. Does...
asked by 07.12.2015 / 14:40
1
answer

Download file via ashx

I need to do a Javascript method that calls an ashx (generic handler) that returns an array of bytes (a file). This file can be XML, TXT or PDF. Until then I solved the problem, but when the file does not exist, I'm redirected to another page, b...
asked by 02.12.2015 / 20:35