Domino Blog dot com - Free Blog Toolkit for Domino

 web design framework for Lotus Domino  
 
Navigation
 
Site:
 ›home
 ›about
 ›news
 ›the author
 ›hire the author
 ›donate to site
 ›live! project cam
 ›projects
 
Issue Archive:
 ›may 2003
 ›april 2003
 ›march 2003
 ›february 2003
 ›january 2003
 ›december 2002
 ›november 2002
 ›october 2002
 
Technical:
 ›articles
 ›downloads
 ›links
 
DXFramework:
 ›about
 ›articles
 ›screenshots
 ›demos
 ›licencing
 ›take part
 ›documentation
 

ok heres a real quick one - I got asked this question just last week so whilst its real simple I felt it worthwhile to share with you.

 

The problem: You have a complex page that can take a little loading and you have an impatient user who wants to click what they can asap.

 

On your page/form - whatever - place the following as near to the top as possible:

 

<script>

var pageloaded=false

</script>

 

At the top of your onload script insert the following:

 

pageloaded=true

 

Then whereever you have a function call from a button/link etc surround your code like so:

 

function buttonclick(){

if(pageloaded){

alert('Button has been clicked')

}

}

 

Thats all there is to it -simple but effective if your application/site suffers from this.

 

 

Questions? - steve.castledine@projectdx.org

 
 
copyright 2002-2003 - Steve Castledine - ProjectDX.org