Questions tagged as 'ajax'

1
answer

Partially change a page via Javascript [duplicate]

I wanted this code to only update one part of the site and not the whole site. Because when I run the function in a div, it updates the whole site. <script type="text/javascript"> function Ajax(){ var xmlHttp; try { xmlHttp=new...
asked by 13.02.2016 / 22:44
2
answers

how do I compare a session?

I would like to know how to compare a session of a page php with ajax for the simple reason to display a alert more beautiful to the client the comparison that I have and the following it compares not part in php...
asked by 29.12.2015 / 19:59
3
answers

Get variable from a PHP using AJAX [closed]

I do this request with AJAX, but when I give echo to variable $_GET it does not display anything, I gave print_r and dump to it and it's empty, it's simply an array empty. However, in sucess , console.log...
asked by 11.07.2017 / 20:56
4
answers

Problem assigning HTML with .text () and .html ()

I need to insert the HTML that refers to a hyperlinked image received through an ajax function on the page, however for security reasons I can not simply insert directly, so I'm passing this HTML code through .text () for a created div, and only...
asked by 31.05.2014 / 16:50
2
answers

Convert php code to reply to ajax

Here I am again with my silly questions but that give me the biggest headache .. Come on, I have a script that takes the data that the user typed and sends it to the server, it works perfectly, however I wanted to pass it through ajax for severa...
asked by 09.07.2016 / 10:35
2
answers

Navigation without refresh

the problem and when I edit "in the browser url bar" I have to press 2x enter to load the desired page ... and it should only be with 1x enter the other problem and that there is error: 0 when browsing ... I do not understand why ... <!D...
asked by 21.10.2014 / 16:24
1
answer

Confirm before making the change

When I change the event in the calendar, before changing ask to confirm: the code: function edit(event){ start = event.start.format('YYYY-MM-DD HH:mm:ss'); if(event.end){ end = event.end.format('YYYY-MM-...
asked by 10.09.2018 / 12:55
1
answer

Location.href is not transferring from page in ASP.NET MVC

I'm doing a login screen in ASP.NET MVC. The framework makes all processes complete without errors: go to the database, query the login and return with an OK (user exists, I can authenticate). When the flow returns from the bank and passes throu...
asked by 18.08.2016 / 04:16
1
answer

Upload Ajax and PHP

I'm trying to upload images via AJAX and PHP, but to no avail. I've reviewed, updated, anyway, codes hit all the other codes I searched, I really do not understand. HTML: <form class="photo_change" method="post" enctype="multipart/form-d...
asked by 26.06.2018 / 01:27
1
answer

update a div without refresh on page, after insertion via ajax

I need to build a new (table-like) structure containing the information that has just been inserted into mysql via ajax without the page being updated. To specify better, I currently have a while that creates the div's from the database's reg...
asked by 07.03.2016 / 22:31