Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  DNN Busy Box
Previous Previous
 
Next Next
New Post 3/25/2006 6:58 AM
User is offline Bill Cunnien
44 posts
10th Ranked


DNN Busy Box 

Mark Wagner posted a very nice busy box on his blog (http://blogs.crsw.com/mark/articles/642.aspx).  It utilizes the onbeforeunload method as part of its implementation:

<body onbeforeunload=" if(UseOnBeforeUnload()) busyBox.Show();" ms_positioning="GridLayout">

I would rather keep my hands off of any DNN code, so I do not want to edit any default.aspx pages to introduce this function.

The busy box feature is quite slick and I would like to integrate it into my custom modules.  It would be perfect for one of my label modules where a user enters data, then clicks a print button.  The form is posted back to the server to process the data and forward a print request to a shared printer on the LAN.  In about 15 seconds, the user has a nicely formatted label; however, that few seconds can seem like a long time to some impatient users and so they click the print button again.  If I had a processing box show up, they would be far less inclined to click that button again.  Actually, it would covered up, anyway.  By the way, no one pays attention to the browser status bar (it can even be turned off in some cases), so I cannot rely on that even with training.

Can this kind of thing be used in DNN?  Is there something already built-in that I am not aware of (client-side API, perhaps?)? 

Thanks!
Ling

 
New Post 3/27/2006 2:14 PM
User is offline Bill Cunnien
44 posts
10th Ranked


Re: DNN Busy Box 

Mark has addressed the issue in his documentation.  I didn't read far enough.  It says:

Alternatives to Using the OnBeforeUnload Event

The onbeforeunload is supported by Internet Explorer 6, Netscape 7.2 (not 7.1), and Firefox 1.0.  The onbeforeunload event may not be the best solution for your particular needs.  Another solution is to place the busybox.Show() method in the onclick event of the html elements (button, link etc.) that need to cause the busy box to appear.  If the particular html tag does not have an onclick event, you can wrap your control in a span tag and use the onclick event of the span tag.  I use this all the time.

Example:

<span onclick="busyBox.Show();">
	<a href="anypage.htm">Any Page</a>
</span>

This allows you to specifically control which buttons and/or links cause the busy box to appear.

Another issue surfaced by users of the pervious version was the busy box appearing and remaining on the screen when a popup window was launched.  This assumes your are using the onbeforeunload event, and you want to prevent the busy box from appearing.  You can prevent this from happening by placing a "return false;" after the popup statement in your javascript event code.

Example:

<A onclick="window.open('anypage.htm'); return false;" href="#"> Open window</A>

The implementation has been surprisingly easy.  I downloaded the server control for the busybox and found it to be a rather simple thing to use.  Thanks a bunch to all who are/were involved in this little project.  Our users will find this a very friendly addition to the intranet DNN project.

Ling

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  DNN Busy Box
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP