Questions tagged as 'javascript'

1
answer

Nice Scroll does not work

I need to leave my page with smooth scrolling. Searching the community I found the plugin called nice scroll . I implemented it and it only worked on Google Chrome and Opera, but not on Mozilla Firefox and Safari. Here is my code below:...
asked by 22.05.2015 / 13:56
1
answer

Prevent insertion of Zalgo Text into Inputs

I have a Aplicação Web that has a user registry, I would like to know how do I prevent the user from sending as a name, email (cadastral data) a Zalgo Text .    Zalgo Example Text: ̵̵̵̵̵̴̷̷̢̢̢̢̢̡̢̢̥͍̫̻͚̦͖͇͖̩͙͖̩͙̼̙̳̼̙̳̼̙̳̟̗̹̻̜...
asked by 22.05.2015 / 14:54
2
answers

Does not show users name in Jquery alert

I want to access the text content inside the div and show it in an alert (), but for this I have a list of users selected from the database, I did a little trick to add a counter in each div class that contains the user name, see example:...
asked by 08.02.2015 / 20:16
1
answer

How to make menu work for external link

I am using the following script to make a sliding effect between the sections of my site (links with anchors, P.E. #contact). While on my menu it has an external link, how do I make it work? $(function() { var navH = $('body > .nav').outer...
asked by 19.01.2015 / 18:00
3
answers

How to retrieve the attribute of a dynamically created element?

Elements are dynamically generated, so it does not exist in the DOM. My case is the following: <div class="ui-grid-a">'; <div class="ui-block-a">'+row.nome_item+' id '+row.id_item_conta+'<div class="valor_quantidade" quantidade_...
asked by 15.01.2015 / 20:58
1
answer

Load external scripts in modal being loaded via ajax

By default, I have a configuration file of various plugins and actions of my system A simple example is the use of tooltip: $(".bn-tooltip").tooltip({ track: true }); Datepicker: $('.bn-datepicker').datepicker({ autoclose: true...
asked by 19.01.2015 / 16:07
2
answers

Switch between hiding / displaying divs from links

I'm trying to adapt this script , which I found in this excellent #, so that when the link is clicked, divs will alternate. On the page there are several divs, and each one will appear when you click the respective link, and this d...
asked by 27.05.2015 / 04:58
1
answer

Interacting with the linux system

Is there any function or way of getting javascript / angularjs to communicate with linux? For example: <!doctype html> <html ng-app="myApp"> <head> <link rel="stylesheet" type="text/css" href="lib/bootstrap/...
asked by 26.05.2015 / 19:24
1
answer

Assign the id according to the content of the text

I do not know if Javascript is better, PHP, or even the sublime text, but, I copied the cf text and pasted it into a txt (to get rid of those strange tags) Then in the sublime text, I: I selected everything crt + to alt...
asked by 20.04.2015 / 23:12
3
answers

Close div on exit link or click off

Hello, I have the following code. function abreConteudo(element) { alert($(element).attr('class')); alert($(element > "div.descricaoobs").text()); } $(document).ready(function () { $("div.botao_melhor_leitura").clic...
asked by 08.01.2015 / 19:41