0
Dear, how do I make the page reload so it doesn’t "blink"? I can leave a GIF on the screen while the page is reloaded?
$('#objetivos-form').live('submit',function(){
var form = $(this);
// validando
if (
form.find('input[name="objetivo[]"]:checked').val() == '' ||
form.find('input[name="objetivo[]"]:checked').val() == null
){
message.erro('Escolha um objetivo!', '#result');
} else {
$.post( form.attr('action'), form.serialize(), function(result){
$(".descubra-objetivo").fadeOut();
// location.reload();
$(".descubra-alterar").fadeIn();
});
}
return false;
});
Thank you for the @Sergio reply. The problem is that I am obliged to reload the page because there is a small snippet of PHP code where it queries for metadata and displays on the page.
– Marcelo de Andrade
@Marcelodeandrade, you can upload data via ajax without having to reload the page. Knew it?
– Sergio
Yes, @Sergio. I’m just looking for some alternatives to what I need. I am using the [http://elgg.org/] Elgg framework and testing the possibilities.
– Marcelo de Andrade
@Marcelodeandrade I answered in response to the information you put in the question. If you have another problem or a more specific problem put it in the question or create a new question. From the link you sent me it seems to me that a partial page Reload solution (ajax) is ideal.
– Sergio