Questions tagged as 'jquery'

6
answers

What is the difference between .on ("click", function () {}) and .click (function () {})?

I usually use, because I learned that it was the most correct , the assignment of events as follows: $('seletor').on('click', function(){}); However, I see many developers using the following syntax: $('seletor').click(function (){});...
asked by 11.02.2014 / 13:32
2
answers

Send and receive array via jQuery

I can not send and read an array via jQuery, could you help me? My submission looks like this: var tipoAtividade = $('#arrayTipoAtividade:checked').serialize(); The activity type variable is receiving this data: tipo_atividade%5B%5D=AGUA...
asked by 10.03.2017 / 13:51
1
answer

AngularJS 1.6 with asynchronous content loading of the jQuery Steps plugin

I have a problem that after loading HTML content dynamically asynchronously with the jQuery Steps plugin: / p> <section data-mode="async" data-url="test.html"></section> AngularJS does not detect the content and thus al...
asked by 25.03.2017 / 01:24
0
answers

Sending an object from one page to another without nodejs

My question is the following I know there are nodejs to connect servers to clients. How can I get a json object from one page to another? It would be something emit client to client I solved with peerjs I'll leave the site to anyone...
asked by 25.03.2017 / 22:21
0
answers

serializeToJSON does not send variables to php

I have a While loop in my php that contains to get variables through POST with the serializeToJSON plugin. It works in part, but it always takes the last result of the PHP loop with the inputs, when it should get all inputs from the loop, f...
asked by 29.03.2017 / 14:45
1
answer

How to keep option after refresh - asp.net

I have a select, some options and a jquery code that does not change the select, updates the screen with the data of the chosen option. The question is, how do I maintain the option after the window.location? Note: I'm using Asp.Net Code...
asked by 30.03.2017 / 22:39
1
answer

Differences between $ ('body') on ('click', ...) and $ ('selector').

I have a question in the click declaration of an element with jQuery, I know you can do it in the following ways: $('body').on('click', '...selector...', function () {...}) or $('...selector...').click(function () {...}) I know the f...
asked by 30.03.2017 / 16:32
1
answer

PrimeFaces DragDrop does not trigger event

I'm trying to do exactly what is in the documentation about DataGrid I drag the components and drop into p:droppable , but nothing happens, it gives a revert and does not create the table as in the documentation example. My...
asked by 21.02.2017 / 13:38
0
answers

SEO in a 100% dynamic site?

I've never developed a website before, I've always worked with systems, so I'm having problems in what should be the easiest part of developing HTML pages. I'm in the middle phase of project development, which is a platform encompassed by ERP...
asked by 27.07.2017 / 18:55
0
answers

Group elements based on values

JSON: var obj = { 'itemA' : { 'x' : '300', 'y' : '200' }, 'itemB' : { 'x' : '305', 'y' : '210' }, 'itemC' : { 'x' : '442', 'y' : '210' } }; What I need to do is pick up...
asked by 21.02.2017 / 21:50