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 8429895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:27:44+00:00 2026-06-10T05:27:44+00:00

Objective : To block the UI until the Ajax validation call returns. With some

  • 0

Objective : To block the UI until the Ajax validation call returns. With some dialog or message.

The problem: How in a Spine/MVC way, am i supposed to append and them remove the HTML content on the top of current view?

Half-baked solution: Inside Controller->
Bind the model ajaxSuccess function to remove the message HTML, and append the “loading” message on Saving the Model object.

Any ideas,?

Thanks.

  • 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-06-10T05:27:46+00:00Added an answer on June 10, 2026 at 5:27 am

    Quick answer: you should try to avoid it altogether. It’s annoying for the user and against the core philosophy of spine.js.

    http://spinejs.com/docs/introduction :

    Core values:

    […]

    Asynchronous interfaces – Too many JavaScript applications & frameworks don’t take full advantage of the power of client-side rendering. End-users don’t care if background requests to the server are pending, and don’t want to see loading messages and spinners. Users want unblocked interfaces, and instant interaction. To enable this, Spine stores and renders everything client-side, communicating with the server asynchronously.

    I understand that sometimes blocking just can’t be avoided. In those cases I would follow this pattern:

    In the controller:

    1. Add blocking overlay html
    2. Call model method that is asynchronous but needs blocking
    3. Wait for model to emit an event that signals that the action is finished, eg. validationDone

    In the model:

    1. Write asynchronous method as usual
    2. In both success and error handlers, emit the validationDone event
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the syntax to declare a C function that returns an Objective-C block?
In Objective-C, you can declare a block as being synchronized on some object by
I'm having trouble with Objective C. I'm trying to call a block after I've
I'm using selectors to dynamically call functions in Objective-C. My problem is that my
I'm trying to make a good block-based initializer for an objective-c class. I'm declaring
Objective-C uses a sophisticated message-passing system when one object calls a method on another
Objective Initialize a new addition problem for users to solve when they visit /task
I'm facing this problem with Java. I want to get some HTML informations from
When referencing a weak ivar inside of a block in Objective-C when ARC is
Block variable in objective-c is a reference and I learned from somewhere infer that

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.