Questions tagged as 'jquery'

0
answers

How to make a jQuery function respond to two distinct events

The jQuery function I created makes asynchronous requests as follows: var meuObjeto = (function () { return { minhaFuncaoAjax: function (url, linkContent) { $.ajax({ url: url, type: 'GET...
asked by 30.10.2018 / 00:17
0
answers

Do not stop submitting with e.preventDefault ();

I have this function below, but it is not stopping in e.preventDefault(); , it executes and executes submit of the page. Here's how I'm doing: $('#ClienteEditar').submit(function (e) { e.preventDefault(); var url = "/Clie...
asked by 30.10.2018 / 21:21
1
answer

Jquery beforeunload is called when I click on link

I want to execute a function only when the user closes the browser, however when I click on a link the event is triggered anyway. $(window).bind('beforeunload', function(e) { $.ajax({ url: "php/phpPerfil/brownserClosed.php" });...
asked by 13.08.2015 / 23:12
0
answers

Filter function returns undefined - Jquery

Hello Can anyone tell me what's wrong? Using the filter function, I'm seeing an undefined return. Javascript var enum_toastr_type = { success: 1, info: 2, warning: 3, error: 4 } /***# PAGELOAD START #***/...
asked by 29.10.2018 / 20:19
2
answers

HTML does not recognize jQuery (imported or internal)

I have already researched several topics and have not found the problem. The jQuery function does not work on my page, and when I give f12 in the chrome browser, it informs that jquery is not imported (Uncaught ReferenceError: $ is not defined j...
asked by 26.10.2018 / 19:28
1
answer

Placing in alphabetical order an array of objects [duplicate]

I have an array of objects and I want to put them in alphabetical order but I'm not getting through the javascript, I'll put how the array is structured and the code to call the page var json = [ { "ID":"1", "TÍTULO":"Algum...
asked by 25.10.2018 / 18:42
0
answers

Refresh comments without loading page

Reformulating the question: Foreachpost,Ihaveafeedbackform.WhatIneedtodoispasstheformidtothescriptsoIcanhandlethecommentinthepost.However,topassthevaluetothedivprocess,Iwouldneedtosomehowputtheidofthenewcommentonthatdiv,sowhenthereisanotherc...
asked by 01.11.2018 / 05:46
1
answer

How to prevent a link from working on a child element? (jQuery)

Imagine the following code below: <a id="link" href="/nova_pagina.php"> <div id="abrir-nova-pagina" >Linha_1</div> <div id="nao-abrir-nova-pagina" >Linha_2</div> <a/> I want the # link element...
asked by 16.11.2018 / 19:07
2
answers

Mirror inputs with their values

Is it possible for jquery to understand the elements of an array value coming from the html? ps: I do not know if it is correct to say that in html there is an array. I am creating with html and jquery a dynamic input that is having the v...
asked by 30.01.2018 / 19:59
2
answers

How to change the image when changing the status in the Mysql database without refresh with jquery

I have the following listing: HowwouldIdothatbyclickingtheexclamationicon,changetothecheckiconandviceversaandalsochangethestatusinthedatabase?ThePHP/MysqlcodeIknowhowtodo,butthejquerythatdoesnotbagmuch.SincethestatusiscomingfromtheDB,thecode...
asked by 24.10.2018 / 22:58