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

01/11/2001 at 10:48PM PST, ID: 20030914
[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.0

NEED SCRIPT TO CHANGE SIZE,  FONT, AND STYLE (BOLD, ITALIC) OF TEXT

Asked by wiz_kid in CGI Scripting, Font Creator

I have a javascript script that edits the desired text using a form which is then submitted onto a cgi/perl script and shows the changed text. However, I can get the script to change the color and type of font but not the style (bold, underlined, italic) or size of the text.

Here is the form:

html>
                     <head>
                     <title>TRANSFER INFO</title>
                         
                   
                    <script LANGUAGE="JavaScript">
<!-- Begin
function preview(form)  {
                       
                      var e = document.FrontPage_Form1.text_color.selectedIndex;
                      var f = document.FrontPage_Form1.text_type.selectedIndex;
                      var g = document.FrontPage_Form1.text_style.selectedIndex;
     
  var abc = document.FrontPage_Form1.the_message.value;
  var abe = document.FrontPage_Form1.text_color.options[e].value;
  var abf = document.FrontPage_Form1.text_type.options[f].value;
  var abg = document.FrontPage_Form1.text_style.options[g].value;
   
                                                               document.write("<html><head><title></title></head>");
                                          document.write("<tr><td><center><font size='6', face='" + abf + "', color='" + abe + "'><" + abg + ">" + abc + "</" + abg + "></font></center><p><p>");
                                          document.write("</td></tr></table><p><p><P>");  
                                          document.write("</body></html>");
                                          }
                     //--></script>
                     </head>

                     <body>
                     <table>
                     <TR><TD>
                     <form NAME="FrontPage_Form1" METHOD="post">
                       <p><input TYPE="TEXT" NAME="the_message" SIZE="25">  Text</p>
                       <p><select NAME="text_color" size="1">
                         <option value="black">black</option>
                         <option value="red">red</option>
                         <option value="blue">blue</option>
                         <option value="green">green</option>
                       </select>  Text Color </p>
                       <p><select NAME="text_type" size="1">
                         <option VALUE="arial">Arial</option>
                         <option VALUE="Century Gothic">Century Gothic</option>
                         <option VALUE="hobo">Hobo</option>
                         <option VALUE="symbol">Greek</option>
                       </select> Text Font </p>
                       <p><!--WEBBOT bot="Validation" B-Disallow-First-Item="TRUE" --><select NAME="text_style" size="1">
                         <option VALUE="center">plain</option>
                         <option VALUE="i">italic</option>
                         <option VALUE="u">underlined</option>
                       </select> Font Style </p>
                       <p><!--WEBBOT bot="Validation" B-Disallow-First-Item="TRUE" --><select NAME="D1" size="1">
                        <OPTION value="10">10</OPTION>
                         <option VALUE="12">12</option>
                         <option VALUE="14">14</option>
                         <option VALUE="16">16</option>
                       </select>  Size </p>
                       <p><input TYPE="submit" onClick="preview(this.form)" VALUE="Click to make card"></p>

                     </form>
                     </TD></TR>
                           </table>
                     
                     </body>



</html>


Problem Part of CGI SCRIPT:

<P>
<CENTER>
<FORM METHOD="POST" ACTION="$PROGNAME">
<INPUT TYPE="HIDDEN" NAME="action_code" VALUE="SENDCARD">
<INPUT TYPE="HIDDEN" VALUE="$fields{'pic_select'}" NAME="pic_select">
<INPUT TYPE="HIDDEN" VALUE="$fields{'the_message'}" NAME="the_message">
<INPUT TYPE="HIDDEN" VALUE="$fields{'text_color'}" NAME="text_color">
<INPUT TYPE="HIDDEN" VALUE="$fields{'text_type'}" NAME="text_type">
<INPUT TYPE="HIDDEN" FACE="$fields{'text_style'}" NAME="text_style">
<INPUT TYPE="HIDDEN" VALUE="$ENV{'HTTP_REFERER'}" NAME="parent">
<INPUT TYPE="submit" VALUE="SEND">  
</FORM>
</CENTER>
 </FONT>
 </TD>
 </TR>
</TABLE>
__END_OF_PARAMS__
}

I am using <I> , <U>, and <B>, for the value on the text_style option which I think is the problem.

 


 
[+][-]01/12/01 09:01 AM, ID: 106732

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/12/01 12:10 PM, ID: 107726

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/12/01 12:14 PM, ID: 107732

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/12/01 05:45 PM, ID: 108222

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/12/01 08:37 PM, ID: 108422

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/12/01 11:59 PM, ID: 108642

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/13/01 12:36 AM, ID: 108661

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/13/01 08:36 AM, ID: 108959

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/13/01 10:21 AM, ID: 109066

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/13/01 10:29 AM, ID: 109077

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.

 
[+][-]03/16/01 06:04 PM, ID: 5936640

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.

 
[+][-]04/06/01 07:56 PM, ID: 5994210

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

Zones: CGI Scripting, Font Creator
Sign Up Now!
Solution Provided By: maneshr
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04/11/01 07:39 AM, ID: 6002666

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.

 
[+][-]04/11/01 09:14 AM, ID: 6002949

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.

 
[+][-]04/13/01 09:01 AM, ID: 6007227

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.

 
[+][-]04/13/01 09:06 AM, ID: 6007240

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