Advertisement

02.28.2007 at 07:05AM PST, ID: 22418812
[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.6

I can't find this error

Asked by tmccar10 in JavaScript

Tags: , ,

I've got an html (with JS) inside some perl code.
I think that I'm good in that regard, but I'm getting a JS error that I've never seen, can't find, or understand:
Line:40
Char: 38
Error: Expected '/'
code:0
Based on my line count the errors in the middle of a line woth no path-type information or anything else that I'd expect to be missing a "/".

I'm putting the code below (the who script since I'm lost as to where it is.
If anyone can give me some help on locating and correcting the error, I'd appreciate it.
#####################
#!/usr/local/bin/perl

#require "cgi-lib.pl";  
                   
use CGI qw(:standard :shortcuts);

$category=param("category");
$topic=param("topic");

#MAIN:
#{
           
# Open text file where tab-delimited input is sent
#$path="../data/forum.txt";
$path="../data/$category/forum.txt";
#open (TXTFILE,$path)||die "cannot open $path\n";

print qq{
<html>
<head>
<title>AdHoc New Request Form</title>
</head>

<script>

function topicval(){
 if (forum.topic.value =="") {
     document.forum.topic.focus();alert ("A Topic is required.")
}
}

function priorityval(){
 if (forum.priority.value =="") {
     document.forum.priority.focus();alert ("High/Med/Low Priority required.")
}
}

function impactval(){
 if (forum.impact.value =="") {
      document.forum.impact.focus();alert ("Did you forget to comment?")
}
}

function submitNow(forum) {
     forum.submit();
}

function checkrtn(e)
{
  var key = window.event? event.keyCode: e.which;
  if (key == 13)
  {
    alert('Please use SUBMIT button to complete request');
    var textAreas = document.getElementsByTagName("textarea");
    for (var i = 0; i < textAreas.length; i ++)
    {
      var obj = textAreas[i];
      obj.value = obj.value.replace(/\r/," ").replace(/\n/, "");
    }
    return false;
  }
}


document.onkeyup = checkrtn;


</script>

<body bgcolor="wheat">

<table width=60%>
<tr><td align="left"><font size=3 color=red><B> Activity: $category</font> </td><td  align="right"><font color=red size=3><b>Comment Input</b></font></td></tr>
<tr><td align="left"><font size=3 color=navy>Keywords: $topic</b></font></td></tr>
</table>

<center>
<form name="forum" method="get" action="forum.cgi" onSubmit="checkform()">
                             
<table>
<tr>
<td><font color="blue" size=2>Topic:</font></td>
<td><font color="blue" size=2>Priority:</font></td>
<td><font color="blue" size=2>Requestors Name </font></td>
</tr>
<tr>
<td><INPUT NAME="priority" SIZE="3" onFocus="topicval()"></td>
<td><INPUT NAME="name" SIZE="20" onFocus="priorityval()"></td>
<td><INPUT NAME="name" SIZE="20"></td>
</tr>
</table>

<table>
<tr><td><A href = "#bi"><font color="blue" size=2> Comment</font> </A></td></tr>
<tr><td align=left><TEXTAREA NAME="impact" ROWS=4 COLS=100 WRAP="virtual" onFocus="impactval()"></TEXTAREA></td>



<td><INPUT TYPE="button" NAME="button" VALUE="Submit" onClick="submitNow(forum)" ></td></tr>
<!-- <input type ="reset" value="Reset Form"> -->


</table>
</form>

<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<center>
<font color="red">
<table width=65% cols=2 >
<TR> <TD colspan=2 align="center"> <font size=+2> <B>AdHoc Report Request Help</B></font></TD></TR>
<TR></TR><TR></TR><TR></TR><TR></TR><TR></TR><TR></TR><TR></TR><TR></TR><TR></TR>


<TR> <TD width=33% valign ="top"><A name="bi"><font size=+2>Business Impact/Benefit</font></A></TD>
           <TD width=66%>This is the business case for creating this report. Explain how the information on this report is going to be used to improve PS&L customer satisfaction, metrics   and/or processes. Requests that show how actual PS&L cost savings will receive a highr priority.  </TD>
</TR>


</table>


</body></html>

}
Start Free Trial
[+][-]02.28.2007 at 07:15AM PST, ID: 18625602

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 07:15AM PST, ID: 18625604

View this solution now by starting your 7-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: align, delimited, tab
Sign Up Now!
Solution Provided By: kelvinwkw
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.28.2007 at 07:18AM PST, ID: 18625645

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 07:20AM PST, ID: 18625667

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 07:28AM PST, ID: 18625752

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32