In a simple way, I can write an asynchronous request like:
$.ajax({
url: url,
dataType: 'json',
type: 'GET',
success: function (_user){
alert (_user)
}
});
that alerts me to the _user return. Also, I write...
I have an operation that I need to perform synchronously, but some of the information I need can only be obtained via Ajax.
I tried to make everything synchronous with a wait for the Ajax return. The problem is that while any function is runn...
Should I close the PHP <?php tag with ?> ? A friend with more experience advised me not to close saying it was a "good programming practice", I never understood why, but I follow the recommendation ever.
Is this really a g...
I'm trying to upload a file via Upload to a certain folder but I'm not able to make or understand the error being accused by the script, I'll try to be as clear as possible in describing the problem.
Here is the excerpt from Upload Upload:
//...
I'm developing an HTML page for mobile and I have the following question: can you load one page inside another?
For example:
pagina.html :
<div class="container22">
<div id="sidebar">
<ul>...
If I have a huge question form, would sending via AJAX be the best way?
<form id="formulario" method="POST">
<!--vários Questionarios aqui-->
</form>
JavaScript:
$.ajax({
type: "POST",
data: $("#formulario")....
I tested Google Plus, turned on Firebug and inserted a post.
When analyzing Firebug I retrieved the URL where it was executed via AJAX.
I copied the URL and ran it in the browser with the active session.
It turned out to be an error:
F...
I'm finishing building a site in PHP with the MVC architecture, the next step is to integrate the application (which only has the interface) with the core ( controller ) site, to fetch information from the database. data. Thi...