Print Page | Close Window

little private messenger bug?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2487
Printed Date: 01 April 2026 at 2:32am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: little private messenger bug?
Posted By: zjieb
Subject: little private messenger bug?
Date Posted: 07 May 2003 at 1:51pm

I searched this forum about this, but I couldn't find an answer...

I use WWF v7 and one of my users noted the following: when you've got a private message in your inbox and you check 'delete all' nothing happens. NOTE: this occurs only when there's ONE single message in your inbox. When you've got TWO or MORE, all messages get checked and deleted.

Is this 'problem' known? Is there a solution?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 07 May 2003 at 3:08pm
Thats been like it for years, it's just a JavaScript thing, as JavaScript doesn't like arrays with only one position.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: zjieb
Date Posted: 07 May 2003 at 4:11pm
so, nothing I can do about it?


Posted By: Trevni
Date Posted: 08 May 2003 at 12:43am
Yes you can, you can debug the Java interpreter that comes with the browser and change the way it handles arrays with only one element. I would use a single-process, multi-thread code-level debugger for 32-bit programs like SoftIce if I was to do something crazy like this. Oh and knowledge of x86 assembly language required. Remember to push your dwords

Did that answer your question?

-------------
Resident immature brat...


Posted By: zjieb
Date Posted: 08 May 2003 at 4:36am

you're not even close to funny...

Hotmail and other boards use routines like these and it works with these sites/boards.



Posted By: WebWiz-Bruce
Date Posted: 08 May 2003 at 7:03am
Well if you can write a better JavaScript function to do this then please post it here.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: PrimeraRacer
Date Posted: 08 May 2003 at 11:09am

I guess you could write a script to check how many mails are in the PM box and then if theres only one to select it, if not select all, That would be how I would go about it.

I guess this is something you need to look into yourself though mate as its not really a bug as such!!



Posted By: Trevni
Date Posted: 08 May 2003 at 1:32pm
Originally posted by zjieb zjieb wrote:

you're not even close to funny...


Hotmail and other boards use routines like these and it works with these sites/boards.



Well then, I'm sorry.

-------------
Resident immature brat...


Posted By: Zamal
Date 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



Posted By: xeerex
Date 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?



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: Zamal
Date 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.



Posted By: xeerex
Date 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.



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: Zamal
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net