Log In

Log In



Not registered yet?


Reset password Activation link

How to show Form loading or Database loading message while form or database iframe loading

It is possible to show form or database loading message to your web-users if you have big form or database, which loads not fast enought

How to show Form loading or Database loading message while form or database iframe loading

 

 

Sometimes, if you have big form or big database iframe loads not very fast. In this blog post we'll give you step by step instructions on how to show "Form loading" or "Database loading" message. So your users will not leave and will wait for form or database to load.

 

1. Paste this JavaScript into your web-page <head></head> or into your main .js file

 

<script type="text/javascript"> function hideProgress(){ document.getElementById('loader').style.display = 'none'; } </script>

 

2. Before iframe code paste "loading" message

 

<h1 id="loader">Database loading…please, wait...</h1>

 

3. And in iframe code paste this call

 

onload='hideProgress()'

 

i.e., if you have such iframe code

 

<iframe src="https://quintadb.com......" />

 

change it to

 

<iframe onload='hideProgress()' src="https://quintadb.com......" />

 

Hope it helps!

 


Please, login to QuintaDB to be able to post comments
Share the discussion in the social networks: