Skip to content

Commit

Permalink
Fixed javascript bugs in Ranking Type question (wasn't working on Moz…
Browse files Browse the repository at this point in the history
…illa1.2 and Opera7.1)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@230 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 16, 2003
1 parent 2d4a1e7 commit e156a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.php
Expand Up @@ -839,7 +839,7 @@
echo "\t\t\t\t\t\t\$b += '';\n";
echo "\t\t\t\t\t\t\$inputname=\"RANK\"+\$b;\n";
echo "\t\t\t\t\t\t\$hiddenname=\"fvalue\"+\$b;\n";
echo "\t\t\t\t\t\t\$cutname=\"CUT\"+i;\n";
echo "\t\t\t\t\t\t\$cutname=\"cut\"+i;\n";
echo "\t\t\t\t\t\tdocument.getElementById(\$cutname).style.display='none';\n";
echo "\t\t\t\t\t\tif (!document.getElementById(\$inputname).value)\n";
echo "\t\t\t\t\t\t\t{\n";
Expand Down Expand Up @@ -916,7 +916,7 @@
$ranklist .= "'";
}
$ranklist .= " onFocus=\"this.blur()\">\n";
$ranklist .= "\t\t\t\t\t\t<input type='hidden' name='fvalue$i' value='";
$ranklist .= "\t\t\t\t\t\t<input type='hidden' name='fvalue$i' id='fvalue$i' value='";
$chosen[]=""; //create array
if ($_SESSION[$myfname])
{
Expand All @@ -929,7 +929,7 @@
{
$ranklist .= "style='display:none'";
}
$ranklist .= " id='cut$i' name='cut$i' onClick=\"deletethis(RANK$i.value, fvalue$i.value, RANK$i.name, this.name)\"><br />\n";
$ranklist .= " id='cut$i' name='cut$i' onClick=\"deletethis(document.phpsurveyor.RANK$i.value, document.phpsurveyor.fvalue$i.value, document.phpsurveyor.RANK$i.name, this.id)\"><br />\n";
}

$choicelist .= "\t\t\t\t\t\t<select size='$anscount' name='CHOICES' id='CHOICES' onClick=\"rankthis(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text)\" style='background-color: #EEEFFF; font-family: verdana; font-size: 12; color: #000080; width: 150'>\n";
Expand Down

0 comments on commit e156a5d

Please sign in to comment.