Questions tagged as 'ajax'

2
answers

Request of type Options

My question is, whenever I make a request before it is actually sending a request of type Options is sent, I wanted to know what exactly it is for. What impact can I have when removing this request both in performance (internet) in both security...
asked by 14.11.2017 / 17:40
1
answer

Cookies or Session by JavaScript

I'm working on a project, and the backend (java) is completely separate from the front-end , and they communicate with REST . > My question is, let's start working in the authentication area, and was wondering if you can control authenticatio...
asked by 02.07.2014 / 19:48
1
answer

Ajax crashes the computer

Review the code below function update(){ $.ajax({ url : 'http://localhost/sistema', type : 'get', dataType : 'json', success : function( data ){ console.log('Mostrar dados: '+.data.dado); } }) } setInterval(fun...
asked by 24.04.2018 / 16:07
1
answer

PDO showing connection data if trigger of catch within the alert (result)

Because in my% ajax%, the catch of alert(result) is showing my connection information to the database as shown in the following image: link Code: $pdo = new PDO("mysql:host=localhost; dbname=meubanco", "meuuser", "minhasenha");...
asked by 30.08.2014 / 20:49
1
answer

How to repeat an ajax query that gave error?

The problem is that sometimes the query runs out of time or gives a real error, so I want to automate it. $.ajax({ type: "GET", url: 'inserindodados.prisma', data: $('#FormularioDescoberta').serialize...
asked by 20.08.2017 / 21:42
1
answer

How to change content inside the div with Ajax / Jquery?

Here you list all the records that when you click edit opens a modal with a description value. <?php foreach ($beneficios as $v): ?> <tr> <td><?= $v->id; ?></td&...
asked by 31.03.2017 / 16:31
2
answers

How to return function correctly? (Scope of Variables)

I have the following function that performs a request to an API using the Angular and would like the function to return the data, but I'm having variable scope problems: var buscarVagasPorEndereco = function(){ var enderecosVagas = [];...
asked by 02.06.2017 / 21:58
2
answers

Check if email is registered in the DB

I'm doing a search in my DB to check for email, avoiding the registration of it again, but I'm having a problem with the return, the script below sends and treats the return. if (sender.getFieldName() == 'Email') { if (sender.getValue()) {...
asked by 10.08.2017 / 20:26
1
answer

Pass the return (integer) of a method from Controller to View

I have this method in a controller : int GetSpot() { List<CompanyDetail> topCompanies = GetTopCompanies(); CompanyDetail topCompany1 = topCompanies.Where(x => x.Company.TopCompany == 1).FirstOrDefault(); if (topCompany1 ==...
asked by 08.02.2017 / 19:28
1
answer

Editable table with jquery and php?

I'm trying to make a PivotTable for editing the data without refresh, but by double-clicking the line nothing happens, it follows the JQuery code $(document).ready(function(){ $('#tblEditavel tbody tr td.editavel').dblclick(function(){...
asked by 31.01.2017 / 20:26