Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 594813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:59:38+00:00 2026-05-13T15:59:38+00:00

In my backend I’m using jquery 1.4.1 and the newest UI 1.8rc1. I defined

  • 0

In my backend I’m using jquery 1.4.1 and the newest UI 1.8rc1. I defined a couple of buttons that do things… one is create a certain type of page using serialize functions calling a php file and then reloading the entire page. locally this always works like a charm! but as soon as i put it on my providers webserver, it only works in about 5% of times. Heres the code:

    buttons: {
'Seite erstellen': function() {
$.post("webadmin/pages.create.serialize.php",$("#page-form").serialize());
$(this).dialog('close');
location.reload(true);
},
'Abbrechen': function() {
$(this).dialog('close');
}
},

Where it gets interesting is, when I put in an alert just before the location.reload part – it will always work. So there seems to be a timing issue that the serializing is executed but can’t finish before the page reloads. i know the meaning of using the serialzing is not to have to reload the page, but i build a navigation etc. so i need to reload. (thinking about that now… i could really serialize everything… anyway) Is there a simple solution to this? is there something like a little timer i could build in to make it wait until the serialization is done? is this a normal behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:59:38+00:00Added an answer on May 13, 2026 at 3:59 pm

    You need to take advantage of the callback in the $.post() method:

    $.post(
           "webadmin/pages.create.serialize.php",
           $("#page-form").serialize(),
           function(data, textStatus, xhr) {  
               alert("I'm done loading now!");
           }
    );
    

    Not exactly sure what “this” refers to inside of the callback function so I’ll leave the implementation as an exercise to the reader. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got C++ backend application that interacts with webpage using fastcgi. Webpage uses jQuery
I've built a backend with a couple of models, one of them, Products, supports
I've built a backend with a couple of models, one of them, Products, supports
in the silverstripe backend I´m managing certain PageTypes via a ModelAdmin. That works fine
I know the backend detail,that it works using long polling. I am more interested
I'm developing the backend server for a turn based game using App Harbor and
I have built a backend system that allows a user to add multiple content
I have a backend class that has to raise an event with no arguments.
I'm using MongoDB as a backend for my project, but I don't specifically want
I recently added an extra authentication backend to allow users to login using either

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.