Questions tagged as 'ajax'

3
answers

facebook style button

How to create a favorite button like facebook style that after clicking is marked and sends the request to the database in the background, something like this: Thefirstbuttonisthenormalstateandthesecondisafterbeingclickedandinsertedintotheda...
asked by 27.06.2016 / 18:58
1
answer

Is it possible to redirect a page and send a value of a field at the same time in jQuery?

I needed to get a value from a clicked option and send it to another page, but I would like to be redirecting to that same page. I'm using jQuery from the mobile library, below is my code in jQuery and the option: <script> $(document).r...
asked by 24.06.2016 / 19:40
1
answer

file upload with error on return json

I'm uploading a file with jquery + ajax using the jquery plugin plugin. The processing of the form is all ok, the file goes up and the data is saved in the database. The problem is in return with the answer in json. This is printing the answe...
asked by 28.07.2016 / 21:00
1
answer

NHibernate is modifying property when returning by Web Api

I have a web service api where a query is made to the database through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it's because of the nhibernate proxy. HowcanIbedoingtofixthisproblem?Follo...
asked by 21.07.2016 / 16:15
1
answer

How to fix the "charset" of an XML document?

I have this code $.ajax({ url: "https://crossorigin.me/http://www.acidigital.com/rss/rss_santo.php", crossDomain: true, contentType: "application/xml; charset:utf-8", type: "GET", dataType: "xml", success: function (re)...
asked by 04.08.2016 / 17:46
2
answers

Moving character and map with canvas + js

Well I have a question, I would like to know how I could use the image at normal size, but I can navigate it with the directional left and right, eg I have a canvas of size 968 width and 643 height, and I have one image of 643 tall and 2000 width...
asked by 18.06.2016 / 04:39
1
answer

Facebook API - Get photo (with defined size) with other information (name, email, id)?

I need to get the id, name, email and photo of the person upon clicking. I'm doing it this way so far but it's in trouble: <script type="text/javascript"> function statusChangeCallback(response) { if (response.status === 'connec...
asked by 23.05.2016 / 21:17
1
answer

Receiving an ajax request with laravel

I'm having trouble retrieving the data sent by my ajax to laravel . My ajax looks like this: var id = $(this).siblings(':hidden').val(), qtd = $(this).val(), dataUser = { "id": id, "qtd": qtd}; $.ajax({ type: 'POS...
asked by 20.10.2016 / 02:16
3
answers

Return DB values via ajax

I have a screen where I should populate with database values using ajax. When I click the button to fill in the fields the following error appears:    Failed to load resource: the server responded with a status of 500   (Internal Server Er...
asked by 18.10.2016 / 20:13
2
answers

Remove record in database without giving refresh

Good! I looked for some topics about the same doubt as mine - and I found, but I could not understand how to do it ... I have the following code snippet: $c = array(); $c = buscaUsuario($conexao); while($b = mysqli_fetch_assoc($c)) {?>...
asked by 04.05.2016 / 20:53