Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - little private messenger bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

little private messenger bug?

 Post Reply Post Reply Page  <12
Author
Zamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 27 February 2003
Location: Netherlands
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zamal Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2003 at 4:42pm

A solution is changing the checkall script to this.

function checkAll(){
 if (document.frmDelete.chkDelete.length > 0) {
  for (i=0; i < document.frmDelete.chkDelete.length; i++){
   document.frmDelete.chkDelete[i].checked = document.frmDelete.chkAll.checked;
  }
 }
 else {
  document.frmDelete.chkDelete.checked = document.frmDelete.chkAll.checked;
 }
}

Enjoy

Edit: disabled forum codes to get a correct display of the script



Edited by Zamal
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2003 at 11:46am

Umm--1 question on this one. Why do you need a delete all function for 1 message? It takes the same amount of "work" to click the check box for the 1 message as it does for the delete all.

Dunno...but maybe I'm missing something here?

Back to Top
Zamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 27 February 2003
Location: Netherlands
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zamal Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2003 at 4:32pm
Originally posted by xeerex xeerex wrote:

Umm--1 question on this one. Why do you need a delete all function for 1 message? It takes the same amount of "work" to click the check box for the 1 message as it does for the delete all.

Dunno...but maybe I'm missing something here?

You're right it's not really necessary, but personally I just like the checkall box to work always. Even when there is just one message.

Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2003 at 8:55pm

I can appreciate that. However, in defense of the board, it techincally does work. Check "all" implies a plurality which is not true in the case of one message. Maybe thats why the function didn't feel like working since it knows that there is not an "all" but a one.

Hmmm...maybe it should be renamed to 'check each'?

I'm just kidding around Zamal...you do have a point.

Back to Top
Zamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 27 February 2003
Location: Netherlands
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zamal Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2003 at 3:18am

I could even take this a bit further

IMO the checkall box should reflect the status of the underlying boxes. If all delete boxes are checked, the checkall box should be checked. If one of the delete boxes isn't checked, the checkall box shouldn't be.
Of course as it is now, changing one of the delete boxes doesn't affect the checkall box.

But that's an imperfection i can live with

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.