[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Automatic Point-Splitter for the Lounge: FireFox-Version?

Asked by softplus in JavaScript

Tags: splitter, lounge, poink, how, point

Our local expert DanRollins created the following bookmarkable javascript to automatically split all points to all unique authors in an EE-Thread.  I see it uses some ActiveXObject-thingie, that certainly won't cut it with Firefox.. Also, finding the window isn't going to work, as FireFox uses tabs (usually, at least I do)... One idea might be to put it into a FireFox Extension, via the Context-Menu or something like that, but I'm a javascript-n00b, don't trust me.

** Can anyone create a FireFox'able-Version? **


Instructions (from wertyk):
  Put the code in a file with a .js extension, and place it in your bookmarks. Then you
  just have to click split points and then click the bookmark. the script will calculate how
  many points each person gets and will write that in the first post by each person, then
  it will tell you how many points did not distribute evenly and are left over for you to assign.

Code (from DanRollins + small mods by wertyk):

//////////////////////////////////////////////////////////////////////

var oShellApp= new ActiveXObject("Shell.Application");
var aoWins= oShellApp.Windows();
for( var j=0; j<aoWins.Count; j++) {   // find the right IE window
     owinIe= aoWins.Item(j);
     var sURL=new String( owinIe.LocationURL );
     var nOffset= sURL.indexOf("splitPoints.jsp" );
     if ( nOffset >= 0 ) {
          var sBody= owinIe.document.body.innerHTML;
          var nOffset= sBody.indexOf("Points must total " );
          var nPoinx=  parseInt( sBody.substr(nOffset+17, 4) );
          SplitEmUp( owinIe.document,nPoinx );
          break;
     }          
}
function SplitEmUp( oDoc, nPoinx ) {
     var aLizards=  new Array();
     var aEdBoxIDs= new Array();
     var nCnt= 0;
     for (j=0; j<oDoc.anchors.length; j++) {
          var s= oDoc.anchors[j].parentNode.outerHTML;
          // WScript.Echo( s );
          var n= s.indexOf('name=points_')
          if ( n != -1 ) {
               var sEdboxID= s.substr(n+5, 15 );
               s= s.substr( n+21 );
               var nNameStart= s.indexOf(">")+1;
               var nNameEnd=   s.indexOf("</");
               var sLzrd= s.substring(nNameStart,nNameEnd);
               // ---- if the Lizard is already listed, then skip the poink-hungry puke
               if ( aLizards.toString().indexOf(sLzrd) == -1 ) {
                    aEdBoxIDs[nCnt]= sEdboxID;
                    aLizards[nCnt++]= sLzrd;
               }
          }
     }
     // ---- sanity check
     if ( (aLizards.length==0) || (nPoinx==0) ) {
          WScript.Echo( "oh, pulleeeezzze" );
          return;
     }
     var nPoinxPerLizard= parseInt( nPoinx/ aLizards.length );
     for (j=0; j<aLizards.length; j++ ) {
          oDoc.all(aEdBoxIDs[j]).value= nPoinxPerLizard;
     }
     var nAssigned= nPoinxPerLizard * aLizards.length;
     if ( nAssigned != nPoinx ) {
          WScript.Echo( "Leftovers!  You need to assign " +(nPoinx-nAssigned)+ " poinx!!!"  );
     }
}


Thanks!
[+][-]06/06/05 01:31 PM, ID: 14156802Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: JavaScript
Tags: splitter, lounge, poink, how, point
Sign Up Now!
Solution Provided By: DanRollins
Participating Experts: 3
Solution Grade: A
 
[+][-]06/05/05 07:22 AM, ID: 14148588Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 09:17 AM, ID: 14154621Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 01:39 PM, ID: 14156900Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 01:45 PM, ID: 14156963Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 01:56 PM, ID: 14157066Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/06/05 02:46 PM, ID: 14157494Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 02:59 PM, ID: 14157590Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 03:03 PM, ID: 14157607Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/06/05 03:54 PM, ID: 14157869Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/06/05 07:39 PM, ID: 14158758Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/07/05 09:46 AM, ID: 14163741Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/07/05 09:32 PM, ID: 14167950Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/08/05 09:55 AM, ID: 14172461Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/08/05 11:01 AM, ID: 14173004Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93