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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:40:10+00:00 2026-05-18T04:40:10+00:00

That title is a mouthful and a bit confusing, but you are still reading

  • 0

That title is a mouthful and a bit confusing, but you are still reading this so I guess there’s hope.

I have a workflow interface that has several different types of steps that can be added. I am creating each step type independently in its own PHP file. When a step needs to be loaded, I call $.post, passing some JSON, and get the response back to display in my workflow builder.

There are currently 5 types of steps. Getting the HTML/DOM from the $.post on demand is slow. I would like to get all of the step’s HTML/DOM by doing a $.post to each page up front, at the end of the page or the bottom of $.ready. That way, when a step needs to be loaded, I’ll pull the HTML/DOM out of the JSON storage object. I will have everything I need and the user won’t have to wait.

Here’s my question, as I’ve not done it this way before. If someone selects a step as soon as the workflow interface is rendered, there’s a good chance that step type won’t be in the JSON storage object yet. In that case, I’m thinking I’d have to go out and get it for rendering. I would then want to put in the array for later use.

I’m thinking through this and am wondering how this could work. Will my UI even be available while I build the JSON object that will hold the step’s HTML/DOM? If not, how can I make it available and do all that asynchronously? How do I ensure that I don’t try and write the same HTML to my JSON object at the same time? I’ve considered building all the steps in a separate HTML file so I’m only making one call, but it would be nice to have the HTML/DOM’s available as they are loaded.

Hope I’m making sense. I’ve done some research on this, but I’m hoping someone out there has done this and would save me some time.

Thanks gang!

  • 1 1 Answer
  • 2 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-18T04:40:11+00:00Added an answer on May 18, 2026 at 4:40 am

    In your instance, you might consider blocking your gui or disabling whatever interface it is that makes the requests for the workflow HTML. That would be one way of doing.

    I think that would be your safest option, because otherwise you will end up doubling up on requests and just wasting bandwidth that you might want to use for other AJAX requests etc.

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

Sidebar

Related Questions

Hope that title made sense but my issue is i have an object with
Title is a bit of a mouthful, but I'm a bit stuck on this
That title is presumably awfully worded. I have some PostgreSQL tables. There is a
That title may need some work. Perhaps after reading this, you may be able
(I realize that my title is poor. If after reading the question you have
I hope that title makes some sense. I have UIView (created in IB) where
I hope that title is clear enough. I have 2 projects, MyProject.Website (ASP.NET MVC3
I guess that title is self-explanatory. Is there any such effort been made? Some
Ok, that title is going to be a little bit confusing. Let me try
Wow, that title was a mouthful... I'm sure that sounds very confusing at first

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.