Questions tagged as 'ajax'

2
answers

How to use the date parameter of the $ .ajax

Is it possible to send two JSONs at the same time as the data parameter value of jQuery.ajax ()? Is there any way to call these two arguments, since I need to call these two json and display on the screen? Follow the code below: var to...
asked by 27.01.2015 / 00:29
1
answer

AJAX sends information to PHP but fails to INSERT only one

See this code for me: HTML: <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="js/criaEvento.js"></script> <form method="post"> <table width="420" align...
asked by 06.02.2015 / 21:22
1
answer

(ASP NET MVC4 or 5) How to pass a custom name through XMLHttpRequest?

Personally the question is as follows, I have a <input type="file" id="fileupload"/> and a <input type="text id="Nome"/> field. To pass it to my controller, I do the following: var data = $("#fileupload").get(0).files...
asked by 04.06.2014 / 23:26
2
answers

Getting information from the database without refreshing the page

I have a system in which it takes information from the database. And this database is getting direct data, so I wanted to know how to get this data and display it on the page, but without this page being updated. This system is in php.     
asked by 12.06.2014 / 16:24
2
answers

Check fields when giving submit and case error return to field

I have a very extensive form and I would like to click submit and the field is in error, that the page can scroll (jQuery) to this field so that the person knows exactly what has error. I started like this: $("#sdEmpresa").removeClass("hidden"...
asked by 13.08.2014 / 04:13
1
answer

Restricting access to data with REST

I would like to know if it is possible to restrict access to the data of my REST application. For example, I have the xml / json that it returns in link >, where it returns me to my list of users. So anyone who discovers the url, c...
asked by 25.07.2014 / 22:17
1
answer

jQuery Ajax does not work in IE8 and IE9

I'm using Internet Explorer 9 for testing and ajax requests do not work (in all other browsers they work). I have this code: $.ajax({ type: "GET", url: "http://cep.correiocontrol.com.br/60441145.json", dataType: "json", succ...
asked by 16.04.2014 / 23:07
2
answers

How to handle a "redirect" after an Ajax call with JQuery?

Use JQuery to make an Ajax call (GET). When "redirect" occurs, code 302, for a valid response the JQuery returns error instead of redirect to the new URL. Do you have any other way to handle this?     
asked by 07.02.2014 / 19:39
1
answer

How to make Footer stand in the footer after using AJAX?

I have already made several applications and have always used the method below to regulate the height of footer . Always using Bootstrap. HTML <div id="footer"> <div class="navbar navbar-fixed-bottom"> <div id="r...
asked by 19.08.2014 / 18:44
2
answers

C # route redirecting to wrong action

I have an action that returns a PartialView [HttpPost] public ActionResult SelectCidadesPorCodigoUF(int idUF) { //It do something and returns a PartialView } This action is mapped as follows: routes.MapRoute( name: "SelecionarCi...
asked by 08.11.2017 / 17:50