Questions tagged as 'ajax'

2
answers

how to represent a monetary field with semicolons in javascript jquery

I have a huge doubt. I need to get the values that are in the database with decimal places of 3 (for example: 56826.497) and display 56,826,497 on the screen. I already tried using maskMoney and priceformat , but they did not work. mas...
asked by 08.12.2014 / 12:06
4
answers

Error net :: ERR_BLOCKED_BY_CLIENT when requesting Ajax

I came across a strange error when I tried to run an ajax request, and I was not very successful in finding solutions. Here is the error: Line199offorms.jsis$.ajax({in:$.ajax({type:"POST", url: _url, cache: false, data: {...
asked by 10.03.2014 / 21:06
2
answers

Upload image by selecting it and showing thumbnail without refresh on page

How do I make a code to send an image when I select it during registration? And after sending a thumbnail appears on the form, then the user will continue filling in the rest of the form. Similar to what is done in this link .     
asked by 13.02.2014 / 10:49
3
answers

How to block adblock? [duplicate]

I'm building a site that works with ads and so I can not allow a user to enter adblock, I tried to use the www.antiblock.org script but it only works on one page, another page where I work with navigation without refresh using ajax it blocks t...
asked by 17.04.2016 / 20:27
1
answer

Interruption of an asynchronous request

What happens when the user, for example, reloads the page with an asynchronous request in progress? Does the server continue to run the script? And how can I interrupt a request in progress via JS?     
asked by 26.06.2014 / 21:07
2
answers

How to create a single method to handle errors with ajax

I have a web app that runs several ajax calls . My faculty professor challenged me to create a generic message and unite the entire error handling in a single function. Can anybody help me ? function getShoes() { $.get( "/Shoes/List", fu...
asked by 04.09.2015 / 04:45
9
answers

Search via ajax during typing in input text (autocomplete)

I made a search using ajax that when clicking a button triggers a request with the searched term and returns with data that fills combobox html ( select ). So far so good. However, I found it interesting to change this behavi...
asked by 02.01.2017 / 17:39
1
answer

What is PJAX and how to detect a PJAX call on the backend?

I've been reading some things about PJAX , but it's a bit confusing for its framework-independent operation, I've seen articles but all focused on YUI or plugins for jQuery, . If I understand the PJAX it is the DOM interaction (via javascr...
asked by 02.05.2016 / 01:47
3
answers

Is there an application security vulnerability when using AJAX?

I'm a HTML/CSS/PHP programmer for a few years and incredible and impossible to look at, I'm just entering the Javascript world with jQuery and AJAX now. My question is whether the security level is affected when we pass para...
asked by 30.08.2014 / 22:06
2
answers

Do not prompt for credentials if user is not authenticated

I have a system with two sites in the same domain. The two sites are in separate folders of the same domain, something like this: http://renan/foo http://renan/bar The first site (let's call it " foo ") has a page that accesses data f...
asked by 19.09.2014 / 16:28