Questions tagged as 'javascript'

1
answer

PHP and Javascript - Sending HTML attachment in email

I created a function on my client's website that issues an event certificate and sends it via email. How the function is at the moment: private static function setLayoutCertificado(){ class_exists('Email') || include_once LIBRARY_CLASS_PAT...
asked by 12.12.2016 / 13:13
1
answer

How do I delete the last div added by the DOM?

I'm doing a notes webapp, I used DOM to add notes and remove, but when I remove it, it removes the first note and not the last one. <script async> function novaNota() { var div = document.createElement("div");...
asked by 06.11.2016 / 00:45
1
answer

Detect SHIFT key and click the right mouse button

Hello I need to create a shortcut where when I press the SHIFT + mouse LEFT button, it displays an alert. How can I do this very simple and using Jquery? Thank you     
asked by 01.11.2016 / 00:09
1
answer

AngularJs - directives do not work via ajax

I have a page: index.php and app.js . on my app I make a load to main.php which is the initial loading of the site. within main it will get select , div with ng-repeat , ng-source...
asked by 02.11.2016 / 07:27
1
answer

How to replace the contents of an array?

I have a div (mosaic of users) that inside it has a array (javascript) with photos of users (data coming from the bank). The number of user photos must be less than or equal to 15. If array has less than 15 users (photos), i...
asked by 01.11.2016 / 14:31
1
answer

how to call the .js file function

I'm not able to call a javascript function from a file. Ex: File: javascript within folder raiz/scripts/javascript.js function responsivo () { $('#responsivo').popover({ //trigger: 'manual', placement: 'bot...
asked by 26.12.2016 / 15:54
2
answers

Disable paging and display all records when starting to search the datatable

I'm using servers in the datatable JQuery. PHP plus JQuery. The data is pulled from the database. I have specified that 9 records appear on each page (of pagination). But I need it when I start looking for something I want the paging to cease...
asked by 23.12.2016 / 15:16
1
answer

Return the data to the View using Json.net or javascript- asp.net mvc

I need to return the data to fill a script, public JsonResult BuscaImagens() { List<Object> resultado = new List<object>(); resultado.Add(new { IdImagem = 1,...
asked by 23.10.2016 / 23:05
2
answers

use google maps on my site [closed]

Hello, I have a system, and I need every time I open this box, change the address of google maps according to the address that appears for each record as follows: This is a box that shows various information of a record, and one of the res...
asked by 24.10.2016 / 12:44
1
answer

JQUERY functions with named callbacks

I would like to create a function with Jquery so that I could only pass the callback name and function specification, as well as the $ .ajax function, which as an example, I do: $.ajax({ ... success: function(){ alert("Sucesso") } err...
asked by 21.10.2016 / 17:55