Link to home
Create AccountLog in
Avatar of Errol Farro
Errol FarroFlag for Aruba

asked on

Coldfusion Overlapping Page

Prompt.cfm prompts for a date. After submit button has been pressed and date validated,  program2.cfm is evoked. Program2.cfm takes a long time to run.

Question: after submit button has been pressed, is it possible to keep showing prompt.cfm (with date selected) with message “…loading” until program2.cfm is done running ?
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Yes, you can use this library : https://github.com/barbajs/barba 
It use fetch and pushState

How it works?

BarbaJS makes your site work like a Single Page Application (SPA), allowing you to create smooth transitions without having to reload the whole site, reducing load delay, browser requests and enhancing user's web experience. Here is a small lifecycle diagram that describe Barba's main concept when navigating between two pages.

Another way would be to use Ajax (using jQuery) to load the next page, especially if both page share the same head section.
ASKER CERTIFIED SOLUTION
Avatar of SRIKANTH MADISHETTI
SRIKANTH MADISHETTI
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer