This topic is locked
[SOLVED]

Please wait screen for Add / Edit pages

11/5/2021 8:04:08 AM
PHPRunner General questions
J
JeffDeveloper author

I have searched through this forum but I am not getting definite answers tho.

I am aware that there is a Display "Loading box ..." on the list page, but it is specific to list pages.

To explain the process better:

  1. I click on "Add new" button. The add page will take a moment to load, but the users tends to want to quickly start putting information in.
  2. To make them wait before they can actually start putting information in, I need to get an image to pop up to show that the page is busy loading and once it is loaded, they can then start putting information in.

Any articles / advise will help?

Kind Regards

woodey2002 11/5/2021

Hi Jeff,

I have built some massive forms in the past and never needed to worry about this as runner built add/edit pages are usually loaded instantly in my projects.

I therfore wonder are you using some Javascript on the add page for example to hide a lot of fields hence the long loadtime?

If so you can try loading using the BeforeDisplay event to speed things up by hiding the control pre page load and taking out hide line in your JS.

BeforeDisplay --- $pageObject->hideField("your"); ---

(Apologies if you the JS is not causing your problem but its the only thing I can think if for you)

Cheers,
J

J
JeffDeveloper author 11/5/2021

Hi Woodey2002

Amazing, you can't even compare the speed. It is exactly as you said, I have too much javascript trying to hide the fields and doing this in the BeforeDisplay is far better.
I am going to revisit all those other slow loading javascript pages to implement this. You have taught me something valuable going forward.

Thank you, owe you one.

Jeff