Questions tagged as 'ajax'

3
answers

Difference between $ .ajax (), $ .get () and $ .load ()?

What is the difference between $.ajax() , $.get() and $.load() ? What is the best to use and in what conditions?     
asked by 24.09.2018 / 18:36
2
answers

How to access JSON values coming from ajax in a PHP page?

I passed these values via ajax: $.ajax({ url: '/loterias/cadastro.php', type: "POST", data: "{'numeros': '" + numeros + "', 'jogo':'" + jogo + "'}", dataType: 'application/json; charset=utf-8', success: function (data) {...
asked by 27.09.2014 / 17:32
3
answers

How to force a download with ajax?

I'm using the PHP DOMPDF class to generate accounts with dynamic filters. The user selects the filters in a form and asks to generate, so far so good. But it will have the option of exporting what it has filtered into PDF. Today, I have th...
asked by 03.05.2014 / 15:29
2
answers

AJAX Javascript Pure Asynchronous

I am trying to retrieve a data coming from Ajax to use in another function, but I am not succeeding. In jQuery I do this using a parameter called async: false . But in pure JS I can not do it. The parameter is false in the .op...
asked by 10.03.2016 / 12:16
2
answers

What is the best way to upload files with Ajax?

I could get a code on the internet paste here and try an answer but I'd rather have it help me with the logic and programming of a script to upload images in Ajax. I do not know how to start, I'm a beginner but I already know some things about j...
asked by 05.08.2014 / 15:23
3
answers

Use ajax with ActionLink

I want to change the ActionLink and URL to work with Ajax , but I do not know how to do that. Follow my code with ActionLink and URL . <ul class="nav" id="side-menu"> <li> <a href="...
asked by 12.06.2014 / 14:57
1
answer

Send data in json format to php

I know that sending json from PHP to JS is totally viable, but is it possible to send my data via json ajax to PHP?     
asked by 18.12.2015 / 12:05
1
answer

Send data to upload images through ajax

<script type="text/javascript"> $(function(){ $("#oformulario").submit(function(e){ e.preventDefault(); var nome = $("#nome").val(); var email = $("#email").val(); var obs = $("#obs").val();...
asked by 20.08.2014 / 23:54
2
answers

Send checkbox with ajax jquery php

I have the form to send / work perfect with the other fields, but I can not receive the checkbox selections. I need help getting / manipulating in php: HTML: <div class="input-group"> <label for="servicos">NECESSITA EMBALAGE...
asked by 10.05.2016 / 21:33
1
answer

Ajax in different project

I have a project in Asp.Net MVC with the following method: public ActionResult ObterCursos() { List<curso> cursos = new List<curso>(); curso curso_ = new curso(); curso_.Nome = "Análise"; curso_.Periodo = 3; cu...
asked by 05.06.2015 / 04:18