Questions tagged as 'ajax'

2
answers

AJAX, get the data returned through the POST request in PHP

I have a form with four selects, the selects send data using a POST method to a page called prices.php, once there, prices are calculated and an integer is returned indicating the price. The thing is that I would like to show the result insid...
asked by 18.12.2018 / 02:01
2
answers

How to use ajax with django forms?

My models.py # -*- encoding: utf-8 -*- from django.db import models from general.models import BaseUnique, BaseTitle, Empresa, Arl from recurso_humano.models import Persona, Sucursal # ===================== HEALTH BASIC ======================...
asked by 25.02.2016 / 06:57
2
answers

Error verifying if a record exists in the database

The following code gives me the error: Notice : Trying to get property of non-object in ... What it does is verify if a user exists in the database. $cate = $_POST['cat']; $veri = "SELECT * FROM category WHERE name = '$cate' "; $result = $...
asked by 13.02.2017 / 02:23
1
answer

How to empty the values of the attributes of an object in VUEJS2?

In vuejs2 I have a variable datos which is an object that already has some properties set and that are initially empty. I'm doing a series of validations that are very repetitive, an example of this is to send a request, if it br...
asked by 12.12.2018 / 20:09
2
answers

Show ajax query in gridview or VB.NET table

I'm making an AJAX application in VB.NET that shows the records of a query in a gridview, so far I can only show the data in a JSON string but I do not know how to show them in a gridview or a table. Currently he only shows me this:...
asked by 10.01.2016 / 06:09
2
answers

Is it correct to have the ajax script in the same html form?

Hi, I'm new to Ajax and I want to know if the way of working is correct. I have the ajax script in the same html or should I have it in a separate document? <!DOCTYPE html> <html> <head> <title>insertar da...
asked by 04.11.2018 / 01:39
2
answers

When using jade extends, is it ajax or does it pretend to be ajax?

For example, I render this view: html head body form(action="/buscar" method="POST") label(for="nombre") Nombre input(type="text" name="nombre") input(type="submit") block contenido h1 usuarios Then in another ro...
asked by 26.07.2016 / 05:49
1
answer

Print a DIV keeping the CSS

I try to print a "div" in which there is a "proof of an order, I can not keep the CSS styles when I open the print window. This is my function: function printDiv(divVer) { var printContents = document.getElementById(divVer).innerHTM...
asked by 30.08.2018 / 10:32
2
answers

Display a div when clicking with ajax

Good day to all, I would like you to support me with this, I have a html I have ajax and css, I want to click on the clicks (that already does) but at the time of clicking I am visualized a div that I have it with invisible ... this is my code...
asked by 13.08.2018 / 17:11
2
answers

How can I avoid Duplicate Registration in MySQL?

I'm trying to make a validation to avoid that the user or users avoid double posts, that is to say that the mail data in the user table within MYSQL PHPMYADMIN does not repeat, my code is as follows <?php require_once "Conexion....
asked by 12.08.2018 / 22:41