Questions tagged as 'javascript'

2
answers

Image Modal only works with the first

I have a modal of images but it only works with the first, can anyone help me? see the modal here: link     
asked by 18.11.2016 / 18:03
5
answers

Change onclick function

Personal I have a question. I have a button: <button type="button" class="btn btn-success btn-xs" onclick="vincularContato($(this))"><span class="glyphicon glyphicon-ok"></span></button> And two functions, one lin...
asked by 14.08.2017 / 21:59
1
answer

Problems with select component

I have a problem submitting my list of items from my select. In my HTML I use ng-repeat to list all items, and when my screen loads my first and only item is: {{list.name}} , when I click on that item {{list.name} , then load the list corre...
asked by 13.06.2017 / 21:28
2
answers

How to get this scrolling effect - when scrolling the page? [closed]

On this site, when you make any scrolling movement at the beginning, it scrolls to the end of the section. I would like to know how this effect is executed correctly. link Can anyone help me?     
asked by 08.05.2017 / 16:26
1
answer

How do prototypes work in JavaScript?

It seems to me that the concept of prototype is fundamental in JavaScript and even in several places I have read that it is one of its strengths. However, this does not seem like a simple concept to understand for those who come from other langu...
asked by 08.05.2014 / 22:02
0
answers

How does Ajax pagination work? [closed]

I'm using script to do pagination through Ajax , which works assíncrona , the situation made me curious, because until then I had only used php+mysql , never php+mysql+ajax . If my bank has 30 registros a...
asked by 31.12.2015 / 00:46
0
answers

JointJS: Embed Parents and Children [closed]

Good, I'm working with JointJS but in a dynamic way. At this point I'm trying to embed the 'parent' and 'child' elements. After doing the select with the info of the child and parent, I make a get to go get this information: QUERY <...
asked by 04.12.2015 / 16:14
5
answers

How to trigger a jQuery SEM event?

In jQuery, when I want to trigger an existing event, I do so: $(function (){ $('#button').on('click', function () { console.log('olá mundo'); }); $('#button').trigger('click'); }) <script src="https://ajax.googleapis.c...
asked by 06.10.2017 / 15:00
3
answers

Do I need to insert an HTML tag with jQuery to encapsulate the code below?

How to insert an HTML element after opening and before tag closing with jQuery? This within a each : $("#main_div").append('<div class="Ftitulo">'+item.titulo+'</div>') $("#main_div").append('<div class="Fdescricao">...
asked by 04.08.2014 / 22:40
4
answers

Feed variable within variable

In JS I have the following line: var recebeMensagem = ''; var mensagemBot = '<div class="bot_mensagens">'+recebeMensagem+'</div>'; // 1ª mensagem recebeMensagem = 'Olá'; $('.recebe_as_mensagens').append(mensagemBot); But when I...
asked by 08.10.2018 / 21:57