[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.

12/22/2005 at 12:30AM PST, ID: 21672869
[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!

6.6

2nd attempt at solving my Firefox problem

Asked by hatap in JavaScript

Tags: firefox, javascript

Been racking my brains for hours over this, if I fix it for Firefox the problem then appears in IE and visa-versa.

I run a forum called E-Blah and have a test site at: http://www.warlock.4you.za.org/blah95/Blah.pl?

The forum is perl based with some javascript functions

When posting a thread if you highlight some given text and then hit a code tag button, lets say B
It should replace the highlighted text with [b]the text[/b]. This works perfectly in IE and Opera but in Firefox I get thetext[b][/b], it ignores the selected text and places the code tags at the end.

Here is the code from bc.js

function use(u,c) {
     var bb_obj = document.msend.message;

     if(document.all && window.navigator.userAgent.toLowerCase().indexOf('opera')) {
          bb_obj.focus();
          selecttext = document.selection.createRange().text;

          if((selecttext && c) || bb_obj.isTextEdit) {
               if(bb_obj.isTextEdit && !selecttext) {
                    var sel = document.selection;
                    var nrn = sel.createRange();
                    nrn.colapse;
                    nrn.text = u;
                    if(c) { nrn.text = c; }
               } else {
                    document.selection.createRange().text = u+selecttext+c;
               }
          } else {
               bb_obj.value += u;
               if(c) { bb_obj.value += c; }
          }
     } else {
          if(!c) { c = ''; }
          bb_obj.value += u+c;
     }
     bb_obj.focus();
     selecttext = '';
}

function openuse(u) {
     var bbo_obj = opener.document.msend.message;
     bbo_obj.value += u;
}

function AddNewValue(bc,thenewvalue) {
     if(bc != '' && thenewvalue != '') {
          use("["+bc+"="+thenewvalue+"]","[/"+bc+"]");
          document.msend.color.value = '';
          document.msend.face.value = '';
          document.msend.size.value = '';
          document.msend.glow.value = '';
          document.msend.shadow.value = '';
     }
}

function funclu (lookup) {
     document.getElementById('about').innerHTML = eval('func_'+lookup);
}

and the code from Post.pl
The bc.js file is called at the begining of a sub

<script language="JavaScript" src="$bcloc" type="text/javascript"></script>

The rest of the code follows this format:

         <td><img src="$images/bold.gif" border="0" alt="$var{'10'}" $ghand onClick="use('[b]','[/b]');" onMouseOver="funclu('b');">
         <img src="$images/italics.gif" border="0" alt="$var{'11'}" $ghand onClick="use('[i]','[/i]');" onMouseOver="funclu('i');">

etc etc

See this post also: http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21671865.html

Can anyone help to solve this as a lot of my members are switching to Firefox.
If you need anymore info then please ask. if you need to look at this in action on the test site the username = tester  password = tester

Many thank's in advance.

Martin
[+][-]12/22/05 01:00 AM, ID: 15532659

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.

 
[+][-]12/22/05 01:26 AM, ID: 15532724

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.

 
[+][-]12/22/05 09:23 AM, ID: 15535539

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.

 
[+][-]12/23/05 02:17 AM, ID: 15540993

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.

 
[+][-]12/23/05 03:47 AM, ID: 15541338

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.

 
[+][-]12/23/05 03:58 AM, ID: 15541406

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: firefox, javascript
Sign Up Now!
Solution Provided By: AmigoJack
Participating Experts: 1
Solution Grade: B
 
 
[+][-]12/23/05 04:14 AM, ID: 15541499

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.

 
[+][-]12/23/05 04:45 AM, ID: 15541691

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.

 
[+][-]12/26/05 06:06 AM, ID: 15550600

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.

 
[+][-]01/02/06 01:36 PM, ID: 15593849

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.

 
[+][-]01/02/06 03:59 PM, ID: 15594671

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.

 
[+][-]01/02/06 11:33 PM, ID: 15596946

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.

 
[+][-]01/03/06 08:36 AM, ID: 15600052

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.

 
[+][-]01/04/06 12:32 AM, ID: 15606006

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...
20090824-EE-VQP-74